/* Import moderního a čistého písma z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- 1. BAREVNÁ PALETA A PROMĚNNÉ --- */
:root {
    /* Výchozí (Dark) režim */
    --bg: #121212;
    --secondary: #1e1e1e;
    --fg: #e0e0e0;
    --fg-muted: #888888;
    --accent: #e53935;
    --accent-hover: #c62828;
    --accent-glow: rgba(229, 57, 53, 0.3);
    --border-color: #333;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f5;
        --secondary: #ffffff;
        --fg: #212121;
        --fg-muted: #616161;
        --accent: #d32f2f;
        --accent-hover: #b71c1c;
        --accent-glow: rgba(211, 47, 47, 0.25);
        --border-color: #e0e0e0;
    }
}

/* --- 2. GLOBÁLNÍ STYLY A RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    /* Živé, pomalu se měnící pozadí pro prémiový vzhled */
    background: linear-gradient(315deg, var(--bg) 0%, #2c2c2c 50%, var(--bg) 100%);
    background-size: 400% 400%;
    animation: animated-gradient 20s ease infinite;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 3. HLAVIČKA A NAVIGACE --- */
.header {
    background: var(--secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo img {
    height: 65px;
    display: block;
    transition: transform 0.3s ease;
}
.header-logo:hover img {
    transform: scale(1.05);
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
/* Stupňovaná animace pro načtení položek menu */
.nav-list > li {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.nav-list > li:nth-child(1) { animation-delay: 0.2s; }
.nav-list > li:nth-child(2) { animation-delay: 0.3s; }
.nav-list > li:nth-child(3) { animation-delay: 0.4s; }
.nav-list > li:nth-child(4) { animation-delay: 0.5s; }
.nav-list > li:nth-child(5) { animation-delay: 0.6s; }
.nav-list > li:nth-child(6) { animation-delay: 0.7s; }
.nav-list > li:nth-child(7) { animation-delay: 0.8s; }
.nav-list > li:nth-child(8) { animation-delay: 0.9s; }
.nav-list > li:nth-child(9) { animation-delay: 1.0s; }

/* Konzistentní design pro všechny odkazy v menu */
.nav-link, .lang-switcher a {
    color: var(--fg-muted);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover, .lang-switcher a:hover {
    color: var(--fg);
}
.nav-link.active {
    color: var(--accent) !important;
}
.lang-switcher a.active {
    color: var(--fg);
    cursor: default;
}

/* Animované podtržení pro hover a aktivní stav */
.nav-link::after, .lang-switcher a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-link:hover::after, .lang-switcher a:hover::after,
.nav-link.active::after, .lang-switcher a.active::after {
    transform: scaleX(1);
}

.lang-switcher {
    margin-left: 2rem;
    display: flex;
    gap: 1rem;
}

/* --- 4. GLOBÁLNÍ KOMPONENTY (TLAČÍTKA, KARTY) --- */
.btn {
    background-color: var(--accent);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Základní styl pro obsahové "karty" (použije se v index.css) */
.card-style {
    background-color: var(--secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Interaktivní hover efekt pro všechny karty */
.card-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 15px var(--accent-glow);
}

/* --- 5. PATIČKA --- */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.footer img {
    width: 32px;
    margin: 0 10px;
    filter: grayscale(20%) opacity(0.7);
    transition: all 0.3s ease;
}
.footer a:hover img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px);
}
.footer p {
    margin-top: 1rem;
    color: var(--fg-muted);
}

/* --- 6. GLOBÁLNÍ ANIMACE --- */
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* NOVÁ VERZE: Prvky se nyní načítají shora dolů */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); } /* Začíná nahoře */
    to { opacity: 1; transform: translateY(0); }   /* Končí na své pozici */
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 7. RESPONSIVITA PRO GLOBÁLNÍ PRVKY --- */
@media screen and (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}
@media screen and (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}