@font-face {
    font-family: 'Helvetica-Neue';
    src: url('./helvetica-neue/HelveticaNeue-Light-08.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans Condensed'; 
    src: url(./opensans/OpenSans_Condensed-Bold.ttf) format('truetype');
    font-weight: 700; /* Přidáno */
    font-style: normal;
}

/* --- CSS Proměnné pro Dark/Light mód --- */
:root {
    --bg-color: #ffffff;
    --element-color: #000000;
    --green-color: #29FD53;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --element-color: #ffffff;
}

/* --- Reset odkazů --- */
a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

/* --- Základní reset a barvy --- */
html {
    scrollbar-gutter: stable; /* Zabraní nechtěnému posunu kvůli scrollbaru */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--element-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Hlavní kontejner menu (Liquid Glass Efekt) --- */
.top-menu {
    position: sticky;       /* Přichycení při scrollu */
    top: 20px;              /* Mezera od horního okraje obrazovky, když se menu přichytí */
    z-index: 1000;          /* Zajištění, že menu bude vždy navrchu nad ostatním obsahem stránky */
    max-width: 1100px;
    height: 60px;
    margin: 50px auto 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 20px;
    box-sizing: border-box;
    
    /* Přechod pozadí adaptivní na dark/light mód podle Figmy (95% -> 75% -> 95%) */
    background: linear-gradient(90deg, 
        color-mix(in srgb, var(--bg-color) 75%, transparent) 0%, 
        color-mix(in srgb, var(--bg-color) 65%, transparent) 25%, 
        color-mix(in srgb, var(--bg-color) 55%, transparent) 50%, 
        color-mix(in srgb, var(--bg-color) 65%, transparent) 75%, 
        color-mix(in srgb, var(--bg-color) 75%, transparent) 100%
    );
    
    /* Rozmazání pozadí (Blur 10) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Zaoblení a rámeček */
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--element-color) 20%, transparent);
    
    /* Vnitřní stíny pro 3D skleněný efekt */
    box-shadow: 
        inset 0px 2px 4px rgba(255, 255, 255, 0.40),
        inset 0px -2px 4px rgba(0, 0, 0, 0.20);
        
    /* Zajištění plynulosti při přepnutí módu */
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* --- Nadpis --- */
.title {
    position: static; /* Zrušení původního absolutního pozicování */
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    line-height: 1;
    color: var(--element-color);
}

/* Zelená tečka v nadpisu */
.title .dot {
    color: var(--green-color);
}

/* --- Skupina tlačítek napravo --- */
.right-group {
    position: static; /* Zrušení původního absolutního pozicování */
    display: flex;
    align-items: center;
    gap: 40px; /* Přesná mezera 40px z tvého rozpadu z Figmy */
}

/* --- Textové tlačítko "O mně" --- */
.text-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600; /* Změna na SemiBold */
    color: var(--element-color);
    margin: 0;
}

/* --- Společné styly pro tlačítka --- */
button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    transition: opacity 0.2s ease;
}

/* --- Hover Efekty --- */
@media (hover: hover) {
    button:hover,
    .text-btn:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }

    #theme-toggle:hover {
        transform: scale(1.1);
    }
}

#contact-btn:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- Textové tlačítko "O mně" --- */
.text-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Ponecháno na 18px */
    font-weight: 600;
}

/* --- Ikonová tlačítka --- */
.icon-btn svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
    fill: currentColor;
}

/* --- Oddělovač --- */
.separator {
    width: 2px;
    height: 36px;
    background-color: var(--element-color);
    transition: background-color 0.3s ease;
}

/* --- Kontejner pro ikony (tlačítko tmavého/světlého módu) --- */
#theme-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: var(--element-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Společný styl pro obě SVG --- */
#theme-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity 0.4s ease, transform 0.5s ease;
    overflow: visible;
}

/* --- Výchozí stav (Light Mode) --- */
.slunce-svg {
    opacity: 0;
    transform: rotate(90deg);
}

.mesic-svg {
    opacity: 1;
    transform: rotate(0deg);
}

/* --- Dark Mode stav --- */
[data-theme="dark"] .slunce-svg {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .mesic-svg {
    opacity: 0;
    transform: rotate(-90deg);
}

#back-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, opacity 0.2s ease;
}

#back-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* =====================================================
   MOBILNÍ HEADER — náhrada top-menu na mobilu a tabletu
   Zobrazí se místo stávajícího menu; desktop ho nevidí.
   ===================================================== */

.mobile-header-content {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-header-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mobile-header-logo svg {
    height: 100%;
    width: auto;
    color: var(--element-color);
    opacity: 8%;           /* ← Uprav průhlednost dle potřeby */
}

.mobile-header-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--element-color);
    line-height: 1;
    letter-spacing: -0.01em;
}

.mobile-header-dot {
    color: var(--green-color);
}

/* =====================================================
   HAMBURGER TLAČÍTKO — skryté na desktopu
   ===================================================== */
.hamburger-btn {
    display: none;
    position: relative;
    width: 24px;
    height: 24px;
    overflow: visible;
    z-index: 1000;
}

.hamburger-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hamburger-btn .ham-icon {
    fill: currentColor;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.hamburger-btn .close-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
}

.hamburger-btn.is-active .ham-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
}

.hamburger-btn.is-active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* =====================================================
   MOBILNÍ MENU OVERLAY
   ===================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, background-color 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 6vw, 40px);
}

.mobile-nav .text-btn {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 700;
    color: var(--element-color);
    transition: opacity 0.2s ease;
}

.mobile-nav .text-btn:hover {
    opacity: 0.7;
}

.mobile-nav .separator {
    width: clamp(80px, 22vw, 140px);
    height: 2px;
    background-color: var(--element-color);
}

.mobile-nav .icon-btn svg {
    width: clamp(26px, 7vw, 36px);
    height: clamp(23px, 6.2vw, 32px);
    fill: currentColor;
    transition: opacity 0.2s ease;
}

.mobile-nav .icon-btn:hover {
    opacity: 0.7;
}


/* --- KONTEJNER GALERIE (p1.css logiky) --- */
.portfolio-gallery {
    max-width: 1120px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- SAMOTNÁ KARTA OBRÁZKU --- */
.portfolio-card {
    position: relative;
    width: 100%;
    height: 480px;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

/* --- TMAVÝ PŘEKRYV --- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.card-overlay h2 {
    color: #ffffff;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    transform: translateY(15px);
    transition: transform 0.3s ease-out;
}

/* --- HOVER EFEKTY KARET --- */
.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover h2 {
    transform: translateY(0);
}

.portfolio-card:hover img {
    transform: scale(1.02);
}


/* --- KONTEJNER PRO SOCIÁLNÍ SÍTĚ --- */
.social-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* --- JEDNOTLIVÉ POLOŽKY (Ikona + Text) --- */
.social-item {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.social-item .icon-svg {
    width: 24px;
    height: 24px;
    color: var(--element-color);
    transition: color 0.4s ease;
}

.social-item .text-btn {
    text-decoration: none;
    color: var(--element-color);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.social-item .text-btn:hover {
    opacity: 0.7;
}

.social-item a:has(.icon-svg) {
    display: flex;
    color: var(--element-color);
    transition: opacity 0.3s ease;
}

.social-item a:has(.icon-svg):hover {
    opacity: 0.7;
}

/* --- ROZDĚLOVACÍ ČÁRY --- */
.social-sep {
    height: 44px;
    width: 2px;
    background-color: var(--element-color);
    margin: 0 80px;
    transition: background-color 0.4s ease;
}

/* =====================================================
   COPYRIGHT SEKCE
   ===================================================== */
.copyright-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.copyright-line {
    width: 100%;
    max-width: 1000px;
    height: 1px;
    border: none;
    background-color: var(--element-color);
    opacity: 0.25; /* 25% průhlednost */
    margin: 0;
    margin-bottom: 50px;
}

.copyright-text {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 300; /* Font weight 300 odpovídá Light řezu */
    font-size: 16px;
    color: var(--element-color);
    opacity: 0.5; /* 50% průhlednost */
    text-align: center;
    line-height: 1.6; /* Výška řádku pro hezký odstup obou řádků od sebe */
    margin: 0;
}


/* =====================================================
   RESPONSIVITA — mobil (max. šířka 768 px)
   ===================================================== */
@media (max-width: 768px) {

    /* --- Hlavička — nový mobilní design ---
       Na mobilu nahrazujeme floating-pill menu fullwidth headerem
       s centrovaným textem "Portfolio." a SVG logem na pozadí.
       Referenční zařízení: iPhone 14 Pro Max (430 px šířka, text 40 px).
       Text i výška headeru se proporčně škálují s šířkou viewport. */
    .top-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        height: clamp(80px, 25vw, 130px);
    }

    /* Skrýt původní title a pravou skupinu */
    .top-menu .title,
    .top-menu .right-group {
        display: none;
    }

    /* Zobrazit nový mobilní header */
    .mobile-header-content {
        display: flex;
    }

    /* Velikost textu: 40 px @ 430 px → 9.3 vw */
    .mobile-header-title {
        font-size: clamp(24px, 9.3vw, 40px);
    }

    #back-btn {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
    }

    #theme-toggle {
        display: grid;
        place-items: center;
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
        overflow: visible;
    }

    #theme-toggle svg {
        position: static;
        grid-area: 1 / 1;
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
        overflow: visible;
    }

    .icon-btn svg,
    .hamburger-btn svg {
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
    }

    /* --- Galerie z p1.css pro mobily --- */
    .portfolio-gallery {
        max-width: 100%;
        margin: 0;
        padding: 0;
        gap: 4px;
    }

    .portfolio-card {
        width: 100%;
        height: auto; /* Výška se odvíjí od přirozeného poměru stran fotky */
    }

    /* Obrázek se roztáhne na plnou šířku a zachová poměr stran */
    .portfolio-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: unset;
    }

    .portfolio-card .card-overlay {
        opacity: 1; /* Overlay zobrazen napevno */
    }

    .portfolio-card h2 {
        transform: translateY(0);
        font-size: clamp(20px, 6vw, 32px);
    }

    .portfolio-card:hover img {
        transform: none;
    }

    /* --- Footer — sociální sítě --- */
    .social-footer {
        width: 70%; 
        margin: clamp(20px, 5.5vw, 40px) auto; 
        justify-content: space-between;
    }

    .social-item {
        width: auto; 
        gap: 0;      
    }

    .social-item .text-btn {
        display: none;
    }

    .social-item .icon-svg {
        width: clamp(18px, 5.5vw, 24px);
        height: clamp(18px, 5.5vw, 24px);
        margin-right: 0;
        overflow: visible; /* <--- PŘIDEJ TENTO ŘÁDEK */
    }

    .social-sep {
        height: clamp(16px, 6vw, 28px);
        margin: 0;
    }

    /* --- Copyright sekce ---
       Referenční zařízení: iPhone 14 Pro Max (430 px šířka, text 10 px).
       Vertikální centrování: padding-bottom sekce = margin-bottom čáry → text přesně uprostřed. */
    .copyright-section {
        padding-bottom: clamp(28px, 8vw, 44px);
    }

    .copyright-line {
        max-width: 90%;
        margin-bottom: clamp(28px, 8vw, 44px);
    }

    .copyright-text {
        font-size: clamp(10px, 2.8vw, 14px);
        line-height: 1.7;
        padding: 0 clamp(12px, 4vw, 24px);
    }
}


/* =====================================================
   RESPONSIVITA — tablet (769 px – 1399 px)
   ===================================================== */
@media (min-width: 769px) and (max-width: 1399px) {

    /* --- Hlavička — nový tabletový design --- */
    .top-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        height: clamp(130px, 17vw, 200px);
    }

    /* Skrýt původní title a pravou skupinu */
    .top-menu .title,
    .top-menu .right-group {
        display: none;
    }

    /* Zobrazit nový mobilní/tabletový header */
    .mobile-header-content {
        display: flex;
    }

    /* Font roste proporčně s šířkou tabletu */
    .mobile-header-title {
        font-size: clamp(40px, 5.5vw, 80px);
    }

    .hamburger-btn {
        display: none;
    }

    .text-btn {
        font-size: clamp(14px, 1.8vw, 18px);
    }

    .right-group .separator {
        height: clamp(24px, 3.5vw, 36px);
    }

    .icon-btn svg {
        width: clamp(20px, 2.8vw, 24px);
        height: clamp(20px, 2.8vw, 24px);
    }

    #theme-toggle {
        display: grid;
        place-items: center;
        width: clamp(20px, 2.8vw, 24px);
        height: clamp(20px, 2.8vw, 24px);
        overflow: visible;
    }

    #theme-toggle svg {
        position: static;
        grid-area: 1 / 1;
        width: clamp(20px, 2.8vw, 24px);
        height: clamp(20px, 2.8vw, 24px);
        overflow: visible;
    }

        /* --- Galerie z p1.css pro tablet --- */
    .portfolio-gallery {
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        gap: 8px;
    }

    .portfolio-card {
        width: 100%;
        height: auto; /* Výška se odvíjí od přirozeného poměru stran fotky */
    }

    /* Obrázek se roztáhne na plnou šířku a zachová poměr stran */
    .portfolio-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: unset;
    }

    /* Overlay necháme na dotykových displejích rovnou zobrazený */
    .portfolio-card .card-overlay {
        opacity: 1; 
    }

    .portfolio-card h2 {
        transform: translateY(0);
        /* Font se plynule zvětšuje z 32px na 40px */
        font-size: clamp(32px, 4vw, 40px);
    }

    /* Vypneme zoom efekt při najetí myší (na tabletu zbytečné) */
    .portfolio-card:hover img {
        transform: none;
    }

    /* --- Footer --- */
    .social-footer {
        width: 70%; 
        margin: clamp(20px, 5.5vw, 40px) auto;
        justify-content: space-between;
    }

    .social-item {
        width: auto; 
        gap: 0;
    }

    .social-item .text-btn {
        display: none;
    }

    .social-item .icon-svg {
        width: clamp(20px, 3vw, 28px);
        height: clamp(20px, 3vw, 28px);
        margin-right: 0;
        overflow: visible; /* <--- PŘIDEJ TENTO ŘÁDEK */
    }

    .social-sep {
        height: clamp(20px, 4vw, 44px);
        margin: 0;
    }

    /* --- Copyright sekce ---
       Na tabletu text roste od 12 px (769 px šířky) k 16 px (desktop).
       Vertikální centrování: padding-bottom sekce = margin-bottom čáry → text přesně uprostřed. */
    .copyright-section {
        padding-bottom: clamp(36px, 4.5vw, 54px);
    }

    .copyright-line {
        max-width: min(90%, 1000px);
        margin-bottom: clamp(36px, 4.5vw, 54px);
    }

    .copyright-text {
        font-size: clamp(14px, 1.5vw, 16px);
    }
}

/* =====================================================
   SPODNÍ NAVIGAČNÍ MENU
   Viditelné pouze na mobilu (≤768px) a tabletu (769–1399px).
   Na desktopu (≥1400px) je skryté.
   Přizpůsobeno dark/light módu stránky.
   ===================================================== */

/* --- Odsazení stránky, aby obsah nepřepadal pod menu --- */
@media (max-width: 1399px) {
    body {
        padding-bottom: 80px;
    }
}

/* --- Kontejner menu --- */
.bottom-nav {
    display: none; /* Skryté na desktopu */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;

    /* Liquid Glass — stejný přístup jako .top-menu, gradient vertikální (zdola nahoru) */
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg-color) 85%, transparent) 0%,
        color-mix(in srgb, var(--bg-color) 75%, transparent) 50%,
        color-mix(in srgb, var(--bg-color) 85%, transparent) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid color-mix(in srgb, var(--element-color) 20%, transparent);

    /* Vnitřní stíny pro 3D skleněný efekt (zrcadlově k top-menu) 
    box-shadow:
        inset 0px -2px 4px rgba(255, 255, 255, 0.40),
        inset 0px  2px 4px rgba(0, 0,   0,   0.20);

    transition: background 0.3s ease, border-color 0.3s ease; */

    /* Safe area pro zařízení s výřezem (iPhone X a novější) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 68px;
    position: relative;
}

/* --- Jednotlivé položky --- */
.bottom-nav__item {
    position: relative;
    flex: 1;
    height: 68px;
    z-index: 1;
}

.bottom-nav__item a,
.bottom-nav__item button.bottom-nav__theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--element-color);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- Ikona --- */
.bottom-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease,
                opacity 0.3s ease;
    color: var(--element-color);
    opacity: 0.45;
}

.bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    transition: inherit;
    fill: currentColor;
}

/* Ikona sdílení (Sociální sítě) je čistě stroke-based — fill musí zůstat none.
   CSS má vyšší prioritu než SVG presentační atributy, proto explicitně
   přepisujeme přímo na child elementech s vyšší specificitou. */
.bottom-nav__icon .ionicon {
    fill: none;
}
.bottom-nav__icon .ionicon circle,
.bottom-nav__icon .ionicon path {
    fill: none;
    stroke: currentColor;
}

/* --- Popis --- */
.bottom-nav__text {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: color-mix(in srgb, var(--element-color) 45%, transparent);
    transition: opacity 0.35s ease, color 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
}

/* --- Aktivní stav --- */
.bottom-nav__item.active .bottom-nav__icon {
    transform: translateY(-10px);
    color: var(--element-color);
    opacity: 1;
}

.bottom-nav__item.active .bottom-nav__text {
    opacity: 1;
    color: var(--element-color);
}


/* --- Hover efekt na dotykových zařízeních (hover: none) není třeba,
       na desktopu se menu nezobrazuje --- */
@media (hover: hover) {
    .bottom-nav__item:not(.bottom-nav__item--center):not(.active) a:hover .bottom-nav__icon,
    .bottom-nav__item:not(.bottom-nav__item--center):not(.active) button:hover .bottom-nav__icon {
        color: color-mix(in srgb, var(--element-color) 70%, transparent);
        transform: translateY(-4px);
    }
}

/* --- Indikátor (zelený proužek za aktivní ikonou) --- */
.bottom-nav__indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Šířka se nastaví přes JS na šířku jedné položky */
    height: 3px;
    background-color: var(--green-color);
    border-radius: 0 0 3px 3px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
    pointer-events: none;
}

/* --- Zelený stroke kolem střední (chat) ikony při jejím aktivování --- */
.bottom-nav__icon--center.stroke-active {
    box-shadow: 0 0 0 3px var(--green-color),
                0 4px 16px color-mix(in srgb, var(--element-color) 25%, transparent);
    transition: box-shadow 0.3s ease,
                transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease;
}

/* --- Přepínač tématu uvnitř menu — sdílí SVG ikony z hlavičky --- */
.bottom-nav__theme-btn .bottom-nav__icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.bottom-nav__theme-btn .bottom-nav__icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.bottom-nav__theme-btn .bottom-nav__icon .mesic-svg {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.bottom-nav__theme-btn .bottom-nav__icon .slunce-svg {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

[data-theme="dark"] .bottom-nav__theme-btn .bottom-nav__icon .slunce-svg {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="dark"] .bottom-nav__theme-btn .bottom-nav__icon .mesic-svg {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* --- Zobrazení menu na mobilu a tabletu --- */
@media (max-width: 1399px) {
    .bottom-nav {
        display: block;
    }
}