:root {
    /* Konfigurace */
    --navbar-height: 70px;
    --transition-speed: 0.3s; /* Zkrátil jsem zpět pro svižnější pocit */
    --transition: var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Barvy (Modern Dark Palette) */
    --c-bg:       #141619;
    --c-nav:      #0f1114;
    --c-card:     #1f2329;
    
    --c-text:     #edf2f7;
    --c-text-mut: #a0aec0;
    
    --c-accent:   #3182ce;
    --c-accent-hover: #4299e1;
    
    --c-green:    #2ecc71;
    --c-red:      #e53e3e;
    --c-warning:  #d69e2e;

    --c-border:   #2d3748;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: 'Segoe UI', Inter, sans-serif;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ========================================= */
/*          HLAVIČKA & NAVIGACE              */
/* ========================================= */
.main-header {
    background-color: var(--c-nav);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--c-border);
    height: var(--navbar-height);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}
.navbar-logo a { display: flex; align-items: center; font-size: 1.5rem; font-weight: 600; color: var(--c-text); }
.navbar-logo img { height: 40px; margin-right: 12px; }
.navbar-links { display: flex; list-style: none; gap: 1.8rem; font-weight: 500; align-items: center; }
.navbar-links a { padding: 0.5rem 0; transition: color var(--transition-speed); color: var(--c-text-mut); }
.navbar-links a:hover, .navbar-links a.active { color: var(--c-accent-hover); }

/* ========================================= */
/*       ROZBALOVACÍ MENU (CLICK)            */
/* ========================================= */
.dropdown { position: relative; display: inline-block; }

/* Styl pro tlačítko, aby vypadalo jako odkaz */
.dropbtn {
    background: none;
    border: none;
    color: var(--c-text-mut);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-speed);
}
.dropbtn:hover, .dropbtn.active { color: var(--c-accent-hover); }

/* Styl pro šipku vedle textu */
.arrow-down {
    border: solid var(--c-text-mut);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s, border-color var(--transition-speed);
}
.dropbtn:hover .arrow-down, .dropbtn.active .arrow-down { border-color: var(--c-accent-hover); }
/* Otočení šipky, když je menu aktivní */
.dropbtn.active .arrow-down { transform: rotate(225deg); }

.dropdown-content {
    position: absolute;
    background-color: var(--c-card);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--c-border);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    pointer-events: none; 
    transition: all var(--transition-speed) ease-in-out; 
}

/* Třída .show, kterou přidá JavaScript, menu zviditelní */
.dropdown-content.show {
    opacity: 1;
    visibility: visible; 
    transform: translateY(0); 
    pointer-events: auto; 
}

.dropdown-content a { color: var(--c-text-mut); padding: 12px 16px; display: block; text-align: left; transition: background-color 0.2s, color 0.2s; }
.dropdown-content a:hover { background-color: var(--c-accent); color: var(--c-text); }

/* Ostatní styly zůstávají stejné */
.navbar-lang-switcher select { background-color: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: border-color var(--transition-speed); }
.navbar-lang-switcher select:hover { border-color: var(--c-accent); }
    /* CSS PRO PATIČKU */
    .site-footer {
        background-color: #0f0f0f;
        /* Velmi tmavá šedá/černá */
        color: #a0a0a0;
        padding-top: 60px;
        border-top: 1px solid #333;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 0.95rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Horní část patičky - Nadpis a Intro */
    .footer-intro {
        text-align: center;
        margin-bottom: 40px;
        border-bottom: 1px solid #222;
        padding-bottom: 30px;
    }

    .footer-intro h2 {
        color: #fff;
        font-size: 1.8rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .footer-intro p {
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Mřížka odkazů (Grid) */
    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-bottom: 50px;
    }

    .footer-column h3 {
        color: #fff;
        font-size: 1.1rem;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-column p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .footer-btn {
        display: inline-block;
        color: #3b82f6;
        /* Modrá */
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s;
        border: 1px solid #333;
        padding: 8px 15px;
        border-radius: 5px;
        background: #1a1a1a;
    }

    .footer-btn:hover {
        background: #3b82f6;
        color: #fff;
        border-color: #3b82f6;
    }

    /* Spodní lišta - Copyright */
    .footer-bottom {
        background-color: #050505;
        /* Ještě tmavší pro spodek */
        padding: 20px 0;
        text-align: center;
        margin-top: 20px;
        border-top: 1px solid #222;
    }

    .footer-bottom p {
        margin: 5px 0;
        font-size: 0.85rem;
    }

    .footer-bottom strong {
        color: #e0e0e0;
    }

    .footer-bottom a {
        color: #3b82f6;
        text-decoration: none;
    }

    .footer-bottom a:hover {
        text-decoration: underline;
    }

    .footer-version {
        opacity: 0.5;
        font-size: 0.75rem !important;
    }

    /* Responzivita */
    @media (max-width: 768px) {
        .footer-links-grid {
            grid-template-columns: 1fr;
            /* Na mobilu pod sebou */
            text-align: center;
        }

        .footer-column h3 {
            justify-content: center;
        }
    }