/* ======================
   ZÁKLADNÍ REŽIMY
   ====================== */

/* Light + dark přepnutí podle systému */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0e0e;
        --fg: #f8f8f8;
        --accent: #ff3c3c;
        --accent-hover: #e00000;
        --secondary: #1a1a1a;
        --link: #ff6f6f;
    }
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff;
        --fg: #111111;
        --accent: #ff3c3c;
        --accent-hover: #c00000;
        --secondary: #f3f3f3;
        --link: #c20000;
    }
}

/* ======================
   RESET A ZÁKLAD
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
        background-color: #222;
    color: var(--fg);
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
}

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

/* ======================
   HEADER
   ====================== */
.header {
    background: var(--secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    animation: slideDown 0.6s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.nav-link {
    color: var(--fg);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* ======================
   BUTTONS
   ====================== */
.btn {
    background-color: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ======================
   SECTIONS
   ====================== */
.main-content {
    padding-top: 3rem;
    animation: fadeIn 1s ease-in-out;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease both;
}
.section h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}
.section p {
    margin-bottom: 1rem;
}
.section a {
    color: var(--link);
}
.section a:hover {
    text-decoration: underline;
}

/* ======================
   FOOTER
   ====================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
}
.footer img {
    width: 30px;
    height: auto;
    margin: 0 10px;
}
.footer p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--fg);
}

/* ======================
   ANIMACE
   ====================== */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   RESPONSIVE
   ====================== */
@media screen and (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 1rem;
    }
}
@media screen and (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 1rem;
    }
}
