/*
Theme Name: Hasiči Velké Opatovice
Author: Vojtěch Nekouš
Description: Téma pro webové stránky hasičského sboru Velké Opatovice.
Version: 6.3
*/

/* --- 1. FONTS & ICONS --- 
   Načteno přes assets.php:
   - Google Fonts (Montserrat, Open Sans)
   - Font Awesome 6.4.0 (sociální sítě)
   - Material Symbols Rounded (UI ikony)
*/

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 1;
    user-select: none;
}

/* --- 2. PROMĚNNÉ A ZÁKLADNÍ RESET --- */
:root {
    --primary: #e62222;
    --primary-dark: #b71c1c;
    --bg: #090a0e;
    --bg-gradient: 
        radial-gradient(ellipse 90% 65% at 50% -10%, rgba(230, 34, 34, 0.35) 0%, rgba(230, 34, 34, 0.10) 35%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 95% 35%, rgba(245, 124, 0, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 5% 75%, rgba(230, 34, 34, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #13151d 0%, #0c0d12 40%, #07080b 100%);
    --card-bg: rgba(255, 255, 255, 0.045);
    --glass: rgba(18, 19, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.11);
    --text: #ffffff;
    --text-dim: #b0b4c0;
    --radius: 1.1rem;
    --shadow: none;
    --container-width: 76rem;
    --container-padding: 1.5rem;
    --section-padding: 2.5rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LEAN HARDWARE-ACCELERATED THEME TRANSITION --- */
.theme-transitioning,
.theme-transitioning body,
.theme-transitioning .navbar::before,
.theme-transitioning .nav-links,
.theme-transitioning .card,
.theme-transitioning .zasahy-card,
.theme-transitioning .theme-switcher-segmented,
.theme-transitioning .dropdown {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

/* --- LIGHT MODE VARIABLES --- */
html[data-theme="light"] {
    --bg: #e6eaf3;
    --bg-gradient: 
        radial-gradient(ellipse 90% 65% at 50% -10%, rgba(230, 34, 34, 0.25) 0%, rgba(245, 124, 0, 0.12) 35%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 95% 35%, rgba(230, 34, 34, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 5% 75%, rgba(245, 124, 0, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #f4f6fb 0%, #e9edf5 35%, #dde3ef 100%);
    --card-bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.09);
    --text: #14151a;
    --text-dim: #505360;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #e6eaf3;
        --bg-gradient: 
            radial-gradient(ellipse 90% 65% at 50% -10%, rgba(230, 34, 34, 0.25) 0%, rgba(245, 124, 0, 0.12) 35%, transparent 65%),
            radial-gradient(ellipse 70% 50% at 95% 35%, rgba(230, 34, 34, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 70% 50% at 5% 75%, rgba(245, 124, 0, 0.10) 0%, transparent 55%),
            linear-gradient(180deg, #f4f6fb 0%, #e9edf5 35%, #dde3ef 100%);
        --card-bg: #ffffff;
        --glass: rgba(255, 255, 255, 0.92);
        --glass-border: rgba(15, 23, 42, 0.09);
        --text: #14151a;
        --text-dim: #505360;
        --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- UTILITY CLASSES --- */
.card-base,
.info-card,
.quick-link-item,
.contact-grid,
.vehicle-container,
.member-card,
.members-legend,
.zasahy-filter,
.no-results {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: none;
    transition: var(--transition);
    transform: translateZ(0);
}

.hover-lift:hover,
.info-card:hover,
.quick-link-item:hover,
.member-card:hover,
.info-list li:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: none;
}

.icon-box,
.card-icon,
.quick-link-icon,
.error-icon,
.contact-item .material-symbols-rounded {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 34, 34, 0.1);
    color: var(--primary);
    transition: var(--transition);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

html {
    scroll-behavior: smooth;
    overflow-anchor: none;
    font-size: clamp(15px, 0.8vw, 16px);
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 1400px) {
    html {
        font-size: clamp(14px, 1.1vw, 16px);
    }
}

@media (max-width: 1200px) {
    html {
        font-size: clamp(14px, 1.3vw, 16px);
    }
}

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background-color: var(--bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}


.site-main {
    flex: 1;
    width: 100%;
    padding-top: 4.375rem;
}

body.admin-bar .site-main {
    padding-top: 6.375rem;
}

/* Ensure inputs and buttons inherit theme font */
input,
button,
select,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

h1,
.h1,
.entry-content h1,
.page-title,
.header-center h2,
.error-content h1 {
    font-size: clamp(1.85rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
    font-weight: 900;
    text-transform: uppercase;
}

h2,
.h2,
.entry-content h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    font-weight: 800;
}

h3,
.h3,
.entry-content h3 {
    font-size: clamp(1.18rem, 2.2vw, 1.65rem);
    font-weight: 800;
}

h4,
.h4,
.entry-content h4 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
}

h5,
.h5,
.entry-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

h6,
.h6,
.entry-content h6 {
    font-size: 0.95rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.red-text {
    color: var(--primary);
}

.text-dim {
    color: var(--text-dim);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container .container {
    padding: 0;
    max-width: 100%;
}

.container-text {
    max-width: var(--container-width);
}

/* --- ACCESSIBILITY (a11y) --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--primary);
    border-radius: 8px;
    clip: auto !important;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    height: auto;
    left: 20px;
    line-height: normal;
    padding: 12px 20px;
    position: fixed;
    text-decoration: none;
    top: 20px;
    width: auto;
    z-index: 100000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --- 3. NAVIGACE --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    padding: 0.625rem 0;
    height: 4.375rem;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 17, 0.58);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .navbar::before {
    background: rgba(244, 246, 251, 0.65);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.admin-bar .navbar {
    top: 32px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 3.75rem;
    width: auto;
    display: block;
    transition: 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-main,
.logo-sub {
    text-transform: uppercase;
    margin: 0;
}

.logo-main {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    color: #ffffff;
    line-height: 1;
    transition: color var(--transition);
}

html[data-theme="light"] .logo-main {
    color: #1d1d1f;
}

.logo-sub {
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--primary);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.2vw, 1rem);
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: clamp(0.85rem, 1.8vw, 2rem);
    align-items: center;
    list-style: none;
    flex-shrink: 0;
}

.mobile-close-wrap {
    display: none;
}

.nav-links>li {
    position: relative;
}

.nav-links li a {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 4px;
    background: var(--primary);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    box-shadow: 0 0 10px rgba(230, 34, 34, 0.7);
}

.nav-links li a:hover {
    color: var(--text);
}

.nav-links li:hover>a::after {
    width: 18px;
}

.nav-links li.active>a {
    color: var(--text);
    font-weight: 800;
}

.nav-links li.active>a::after {
    width: 20px;
}

.nav-links li.has-dropdown>a {
    padding-right: 2px;
}

.nav-links li.has-dropdown>a .material-symbols-rounded {
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 1.15rem;
    color: var(--text-dim);
}

.nav-links li.has-dropdown:hover>a .material-symbols-rounded {
    transform: rotate(180deg);
    color: var(--primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(14, 16, 24, 0.85);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    overflow: hidden;
    isolation: isolate;
}

html[data-theme="light"] .dropdown {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

/* Bridge to prevent losing hover when moving mouse to dropdown */
@media (min-width: 769px) {
    .has-dropdown::after {
        content: '';
        position: absolute;
        top: 80%;
        left: -10px;
        right: -10px;
        height: 45px;
        display: block;
        z-index: 5;
    }
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown li {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.nav-links .dropdown li a {
    padding: 11px 16px;
    text-transform: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    border-radius: 11px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.dropdown li a::after {
    display: none !important;
}

.nav-links .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    padding-left: 18px;
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-links .dropdown li.active a {
    background: rgba(230, 34, 34, 0.12);
    color: #ff4d4d;
    font-weight: 700;
    border-color: rgba(230, 34, 34, 0.25);
}

html[data-theme="light"] .nav-links .dropdown li a {
    color: #475569;
    background: transparent;
    border-color: transparent;
}

html[data-theme="light"] .nav-links .dropdown li a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
    padding-left: 18px;
    border-color: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .nav-links .dropdown li.active a {
    background: rgba(230, 34, 34, 0.08);
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(230, 34, 34, 0.2);
}

.nav-links li a.nav-btn {
    background: linear-gradient(135deg, #ff3333 0%, #cc1818 100%);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.38), 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 0;
}

.nav-links li a.nav-btn:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #b71414 100%);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 34, 34, 0.55), 0 3px 8px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.nav-links li a.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 34, 34, 0.4);
}

.nav-links li a.nav-btn::after {
    display: none;
}

.mobile-theme-item {
    display: none;
}

/* --- 6. TLAČÍTKA --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff3333 0%, #cc1818 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(230, 34, 34, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.nav-links li a.nav-btn:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #b71414 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 34, 34, 0.55), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .btn-glass {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
    color: #17181c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .btn-glass:hover {
    background: #f4f5fa;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 34, 34, 0.15);
}

.post-footer-actions {
    margin-top: 28px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

/* --- 7. SEKCE --- */
.header-center {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 15px;
    padding: 0;
}

.header-center h2 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.header-center p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* --- 10. COMPACT MODERN FOOTER --- */
footer.site-footer {
    width: 100%;
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 0 0 0;
    transition: background var(--transition), border-color var(--transition);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-main,
.footer-logo-sub {
    text-transform: uppercase;
    margin: 0;
}

.footer-logo-main {
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.14rem;
    color: #ffffff;
    line-height: 1;
}

html[data-theme="light"] .footer-logo-main {
    color: #1d1d1f;
}

.footer-logo-sub {
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.1;
    color: var(--primary);
}

.footer-tagline {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

html[data-theme="light"] .footer-info-item {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.footer-info-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--text-muted);
}

.footer-info-item.footer-emergency {
    background: rgba(230, 34, 34, 0.08);
    border-color: rgba(230, 34, 34, 0.25);
    color: var(--text);
}

.footer-info-item.footer-emergency .material-symbols-rounded {
    color: var(--primary);
}

.footer-info-item.footer-emergency strong {
    color: var(--primary);
    font-weight: 800;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .footer-social-btn {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: #1e293b;
}

.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 16px 0;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition), transform var(--transition);
}

.footer-back-to-top .material-symbols-rounded {
    font-size: 16px;
}

.footer-back-to-top:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- 11. CONTENT --- */
.entry-content {
    padding: 0;
    max-width: 100%;
    overflow: visible;
    margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
    margin: 0;
}

.entry-content .wp-block-heading,
.entry-content>h1,
.entry-content>h2,
.entry-content>h3,
.entry-content>h4,
.entry-content>h5,
.entry-content>h6 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 800;
}

.entry-content .wp-block-heading:first-child,
.entry-content>h1:first-child,
.entry-content>h2:first-child,
.entry-content>h3:first-child {
    margin-top: 0;
}

.entry-content h3.has-text-align-center,
.entry-content .wp-block-heading.has-text-align-center {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 24px;
    text-align: center;
}

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
    max-width: 100%;
}

.alignleft {
    float: left;
    margin: 0 25px 25px 0;
}

.alignright {
    float: right;
    margin: 0 0 25px 25px;
}

.aligncenter {
    display: block;
    margin: 0 auto 25px auto;
    text-align: center;
}

.wp-block-image .alignleft,
.wp-block-image .alignright,
.wp-block-image .aligncenter {
    display: table;
}

.wp-block-image .alignleft {
    margin: 5px 25px 20px 0;
}

.wp-block-image .alignright {
    margin: 5px 0 20px 25px;
}

.wp-block-image figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}

.entry-content .wp-block-quote,
.entry-content blockquote {
    color: var(--text);
    padding: 20px 24px;
    margin: 28px 0;
    font-style: normal;
    background: var(--card-bg);
    border-radius: 0 16px 16px 0;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.entry-content .wp-block-quote p,
.entry-content blockquote p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    font-style: inherit;
    margin-bottom: 12px;
}

.entry-content .wp-block-quote p:last-child,
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content .wp-block-quote cite,
.entry-content blockquote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 10px;
}

.entry-content strong,
.entry-content b {
    color: var(--primary);
}

/* --- 12. JEDNOTLIVÉ STRÁNKY --- */
.page-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

.page-content.single-post-page {
    padding-bottom: 24px;
}

.home .page-content {
    padding-bottom: 0;
}

.page-title {
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    display: block;
}

.entry-header {
    margin-top: 30px;
    width: 100%;
}

.text-page .entry-content p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.text-page .entry-content h2.wp-block-heading {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.3;
}

.text-page .entry-content ul,
.text-page .entry-content ol {
    margin-bottom: 24px;
    padding-left: 22px;
}

.text-page .entry-content ul.info-list {
    padding-left: 0;
}

.text-page .entry-content li {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.text-page .entry-content li strong {
    color: var(--text);
}

.text-page .entry-content li::marker {
    color: var(--primary);
    font-weight: 800;
}

/* --- EMPTY STATE PAGES (404-STYLE) --- */
.empty-state-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    text-align: center;
    padding: 60px 0 80px;
}

.empty-state-content {
    max-width: 800px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: rgba(230, 34, 34, 0.1);
    color: var(--primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(230, 34, 34, 0.15);
    border: 1px solid rgba(230, 34, 34, 0.2);
}

.empty-state-icon .material-symbols-rounded {
    font-size: 3.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-state-glitch {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-transform: uppercase;
}

html[data-theme="light"] .empty-state-glitch {
    background: linear-gradient(180deg, #1e293b 0%, rgba(30, 41, 59, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state-content h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 900;
    color: var(--text);
}

.empty-state-content p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 35px;
    max-width: 600px;
}

.empty-state-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-actions .btn {
    min-width: 220px;
}

/* Fallback for inline empty state card inside grids */
.empty-state-card {
    max-width: 620px;
    margin: 30px auto 60px;
    padding: 55px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

/* --- ERROR 404 PAGE --- */
.error-404-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 80px 0;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-icon {
    width: 100px;
    height: 100px;
    background: rgba(230, 34, 34, 0.1);
    color: var(--primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.error-icon .material-symbols-rounded {
    font-size: 4rem;
}

.error-content h1 {
    font-size: clamp(6rem, 15vw, 10rem);
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.error-content h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.error-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.error-actions .btn {
    min-width: 250px;
}

/* --- POST STYLES --- */
.post-date {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- 17. HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 5px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- 18. REVEAL ANIMATION --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: none;
}

.zasahy-filter.reveal.active {
    transform: none !important;
    will-change: auto !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

@media (max-width: 768px) {
    .reveal {
        transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .js-enabled .reveal {
        transform: translateY(14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- 18. TABLET LANDSCAPE & DESKTOP OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1400px) {
    .container {
        padding: 0 1.5rem;
    }

    .site-logo {
        height: clamp(3rem, 4vw, 3.75rem);
    }

    .nav-links {
        gap: clamp(10px, 1.5vw, 1.5rem);
    }

    .nav-links li a {
        font-size: clamp(0.75rem, 1vw, 0.85rem);
        padding: 8px 0;
    }

    .quick-links-grid {
        gap: 10px;
    }

    .quick-links-grid.links-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-link-item {
        padding: 15px;
        min-height: auto;
        gap: 15px;
    }

    .quick-link-icon {
        width: clamp(2.2rem, 3vw, 3rem);
        height: clamp(2.2rem, 3vw, 3rem);
        border-radius: 10px;
    }

    .quick-link-icon .material-symbols-rounded {
        font-size: clamp(1.4rem, 2vw, 1.8rem);
    }

    .quick-link-item .quick-link-title {
        font-size: clamp(0.85rem, 1.4vw, 1.25rem);
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .quick-link-subtitle {
        font-size: clamp(0.65rem, 0.9vw, 0.8rem);
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .quick-link-item .arrow {
        font-size: 1.2rem;
    }

    .logo-main {
        font-size: 0.75rem;
    }

    .logo-sub {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: clamp(1rem, 2vw, 2.2rem);
    }
}

/* --- 19. MOBILE CONSOLIDATION (768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        height: 60px;
    }

    .site-main {
        padding-top: 60px;
    }

    body.admin-bar .site-main {
        padding-top: 92px;
    }

    .site-logo {
        height: 45px;
    }

    .logo-main {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .logo-sub {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100dvh - 60px);
        box-sizing: border-box;
        background: rgba(10, 11, 17, 0.62);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-left: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transform: translate3d(100%, 0, 0);
        -webkit-transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease, background 0.3s ease;
        padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 16px)) 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1050;
        box-shadow: none;
    }

    html[data-theme="light"] .nav-links {
        background: rgba(244, 246, 251, 0.68);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-left: none;
    }

    body.admin-bar .nav-links {
        top: 92px;
        height: calc(100dvh - 92px);
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        padding: 6px;
        margin: 10px 0 14px 0;
        border-radius: 14px;
        flex-direction: column;
        gap: 3px;
        transition: none;
    }

    html[data-theme="light"] .dropdown {
        background: rgba(255, 255, 255, 0.65);
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    }

    .dropdown li {
        border-bottom: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dropdown li:last-child {
        border-bottom: none !important;
    }

    html[data-theme="light"] .dropdown li {
        border-bottom: none !important;
    }

    html[data-theme="light"] .dropdown li:last-child {
        border-bottom: none !important;
    }

    .nav-links .dropdown li a {
        padding: 12px 16px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        text-transform: none;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: normal;
        color: var(--text-dim);
        background: transparent;
        border: 1px solid transparent;
        transition: all 0.18s ease;
    }

    .nav-links .dropdown li a:active,
    .nav-links .dropdown li a:hover {
        background: rgba(255, 255, 255, 0.07);
        color: var(--text);
        padding-left: 16px;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .nav-links .dropdown li.active a {
        background: rgba(230, 34, 34, 0.12);
        color: #ff4d4d;
        font-weight: 700;
        border-color: rgba(230, 34, 34, 0.25);
    }

    html[data-theme="light"] .nav-links .dropdown li a {
        color: #475569;
        background: transparent;
        border-color: transparent;
    }

    html[data-theme="light"] .nav-links .dropdown li a:active,
    html[data-theme="light"] .nav-links .dropdown li a:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #0f172a;
        padding-left: 16px;
        border-color: rgba(0, 0, 0, 0.04);
    }

    html[data-theme="light"] .nav-links .dropdown li.active a {
        background: rgba(230, 34, 34, 0.08);
        color: var(--primary);
        font-weight: 700;
        border-color: rgba(230, 34, 34, 0.2);
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links>li>a {
        padding: 16px 0;
        display: flex;
        font-size: 1.05rem;
        color: var(--text);
        justify-content: space-between;
        align-items: center;
    }

    .nav-links li a::after {
        display: none;
    }

    .has-dropdown.dropdown-open .dropdown {
        display: flex;
    }

    .has-dropdown.dropdown-open>a .material-symbols-rounded {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .nav-links li.nav-btn-item {
        width: 100%;
        display: block;
        border-bottom: none;
    }

    .nav-links li a.nav-btn {
        width: 100%;
        display: flex;
        margin: 20px 0 0 0;
        background: linear-gradient(135deg, #ff3333 0%, #cc1818 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 16px rgba(230, 34, 34, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-sizing: border-box;
    }

    .page-content.single-post-page {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .entry-content .wp-block-quote,
    .entry-content blockquote {
        font-size: 0.96rem;
        line-height: 1.65;
        padding: 16px 18px;
        margin: 20px 0;
        border-radius: 0 14px 14px 0;
    }

    .entry-content .wp-block-quote p,
    .entry-content blockquote p {
        font-size: 0.96rem;
        line-height: 1.65;
        margin-bottom: 8px;
    }

    .entry-content .wp-block-quote p:last-child,
    .entry-content blockquote p:last-child {
        margin-bottom: 0;
    }

    .text-page .entry-content h2.wp-block-heading {
        font-size: 1.25rem;
        margin-top: 26px;
        margin-bottom: 12px;
    }

    .entry-content p,
    .text-page .entry-content p {
        font-size: 0.94rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .text-page .entry-content li {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    footer.site-footer {
        padding: 28px 0 0 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 22px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .footer-logo-link {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .footer-logo-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        line-height: 1.1;
    }

    .footer-logo-main {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.14rem;
        text-align: left;
    }

    .footer-logo-sub {
        font-size: 1.15rem;
        font-weight: 900;
        text-align: left;
    }

    .footer-tagline {
        font-size: 0.76rem;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .footer-info-item {
        font-size: 0.76rem;
        padding: 7px 14px;
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
        gap: 12px;
    }

    .footer-social-btn {
        width: 42px;
        height: 42px;
    }

    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .copy-toast {
        bottom: 25px;
        width: auto;
        min-width: 200px;
        max-width: 90vw;
        justify-content: center;
        padding: 10px 20px;
    }

    .nav-links li.mobile-theme-item {
        display: block;
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 24px;
        padding-bottom: 0;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
        border-bottom: none;
    }
}


/* --- TOAST NOTIFICATION --- */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-toast .material-symbols-rounded {
    font-size: 1.2rem;
}

/* --- THEME TOGGLE --- */
.theme-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Moderní, plynule se otevírající desktopový přepínač */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn:hover {
    border-color: rgba(230, 34, 34, 0.4);
    color: var(--primary);
    background: rgba(230, 34, 34, 0.12);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.25);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: rgba(13, 14, 20, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 6px;
    min-width: 155px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .theme-menu {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-dim);
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

html[data-theme="light"] .theme-option {
    color: #6e6e73;
}

html[data-theme="light"] .theme-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
}

.theme-option.active,
.theme-option.active *,
.theme-option.active span,
html[data-theme="light"] .theme-option.active,
html[data-theme="light"] .theme-option.active *,
html[data-theme="light"] .theme-option.active span,
.theme-switcher-segmented .theme-option.active,
.theme-switcher-segmented .theme-option.active *,
.theme-switcher-segmented .theme-option.active span,
html[data-theme="light"] .theme-switcher-segmented .theme-option.active,
html[data-theme="light"] .theme-switcher-segmented .theme-option.active *,
html[data-theme="light"] .theme-switcher-segmented .theme-option.active span {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 34, 34, 0.25);
}

.theme-option .material-symbols-rounded {
    font-size: 1.25rem;
}

/* Nový integrovaný segmentový přepínač pro mobilní menu */
.theme-switcher-segmented {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin: 18px 0 0 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

html[data-theme="light"] .theme-switcher-segmented {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

.theme-switcher-segmented .theme-option {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

html[data-theme="light"] .theme-switcher-segmented .theme-option {
    color: rgba(0, 0, 0, 0.5);
}

.theme-switcher-segmented .theme-option:hover {
    color: var(--text);
}
