/* Reset a základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Barevné schéma - CSS proměnné pro light/dark mode */
:root {
    --primary-color: #009EC5;
    --secondary-color: #06c;
    --accent-color: #34c759;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-footer: rgba(0, 0, 0, 0.3);
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0086A7;
        --secondary-color: #0a84ff;
        --accent-color: #32d74b;
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-footer: rgba(255, 255, 255, 0.3);        
        --bg-primary: #000000;
        --bg-secondary: #1d1d1f;
        --border-color: #424245;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

/* Plynulý scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigace - Apple styl */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(29, 29, 31, 0.8);
    }
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

nav .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero sekce s parallax */
.hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.3), rgba(255, 211, 182, 0.3)),
                url('./images/ordinace.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 48px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0px 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7);
}

/* Kontejner pro sekce */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sekce */
section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

section h3 {
    font-size: 1.8rem;
    margin-top: 25px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

section p, section ul {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

section ul {
    padding-left: 20px;
}

section ul li {
    margin-bottom: 10px;
}

section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: var(--secondary-color);
}

/* Alert box pro aktuality */
.alert-box {
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow);
}

.alert-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Info box */
.info-box {
    background: var(--bg-secondary);
    padding: 25px 25px 30px 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.info-box.alter {
    background: var(--bg-primary);
}

.info-box h3:first-child {
    margin-top: 0;
}

.info-box p:last-child {
    margin-bottom: 5px;
}

/* Tabulky */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-primary);
    font-size: 1rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--bg-secondary);
}

td.right, th.right {
    text-align: right;
    font-weight: 600;
}

/* Emergency notice */
.emergency {
    background: rgba(255, 0, 0, 0.5);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Kontakt sekce */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Patička */
footer {
    background: var(--bg-primary);
    padding: 30px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

footer p {
    color: var(--text-footer);
    font-size: 0.95rem;
    margin: 8px 0;
}

footer .creator {
    font-size: 0.9rem;
    margin-top: 12px;
}

footer .creator a {
    color: var(--text-footer);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer .creator a:hover {
    color: #7fc8b8;
    text-decoration: underline;
}

/* Responzivita - mobilní zařízení */
@media (max-width: 860px) {
    /* Mobilní menu */
    nav ul {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(230, 230, 230, 0.95) !important;
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 16px 16px;
        gap: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        color: #333333 !important;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.08);
        color: #000000 !important;
    }

    /* Dark mode pro mobilní menu */
    @media (prefers-color-scheme: dark) {
        nav ul {
            background: rgba(40, 40, 40, 0.95) !important;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }

        nav ul li a {
            color: #ffffff !important;
        }

        nav ul li a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff !important;
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero sekce */
    .hero {
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* Sekce */
    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    section h3 {
        font-size: 1.5rem;
    }

    /* Tabulky */
    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px 15px;
    }
}
