/* ===== CSS VARIABLES ===== */
:root {
    --bg-body: #f3f5f7;
    --bg-card: #ffffff;
    --bg-card-soft: #f8fafb;
    --accent: #7bb93c;
    --accent-dark: #5a8b2a;
    --accent-soft: #e5f4d9;
    --text-main: #222531;
    --text-muted: #6b7280;
    --border-soft: #e0e4eb;
    --shadow-soft: 5px 5px 15px rgba(15, 23, 42, 0.15);
    --offline-bg: #fee2e2;
    --offline-color: #991b1b;
}

/* ===== RESET / BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    font-family: "Google Sans Flex", system-ui, sans-serif;
    margin-top: 0;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;

    &.section-grey {
        background: #eef1f5;
    }
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.layout-two-cols {
    display: grid;
    gap: 2.5rem;

    @media (min-width: 900px) {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
        align-items: flex-start;
    }
}

.col {
    min-width: 0;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1rem;
        padding-bottom: 1rem;
        /* padding: 0.85rem 0; */

        @media (max-width: 640px) {
            flex-wrap: wrap;
            row-gap: 0.5rem;
        }
    }

    .logo {
        display: flex;
        align-items: baseline;
        gap: 0.12rem;
        font-family: "Google Sans Flex", system-ui, sans-serif;
        font-weight: 700;
        letter-spacing: 0.12em;

        .logo-main {
            padding: 0.15rem 0.25rem 0.15rem 0.35rem;
            border-radius: 0.2rem;
            background: var(--accent);
            color: #fff;
        }

        .logo-sub {
            padding: 0.15rem 0.35rem 0.15rem 0.15rem;
            color: var(--text-main);
        }
    }

    .main-nav {
        display: flex;
        gap: 1.25rem;
        align-items: center;
        font-size: 0.9rem;

        a {
            position: relative;
            padding-bottom: 0.15rem;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -2px;
                width: 0;
                height: 2px;
                background: var(--accent);
                transition: width 0.16s ease-out;
            }

            &:hover::after {
                width: 100%;
            }

            &.nav-cta::after {
                display: none !important;
            }
        }

        .nav-cta {
            padding: 0.45rem 1rem;
            border-radius: 999px;
            background: var(--accent-soft);
            border: 1px solid var(--accent);
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;

            &:hover {
                background: #d9edc3;
                border-color: var(--accent-dark);
            }
        }

        @media (max-width: 640px) {
            width: 100%;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
    }
}

/* ===== HERO ===== */
hero {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;

    .hero-bg {
        width: 100%;
        background-image: url("herobg.png");
        background-size: cover;
        background-position: center 75%;
        height: 410px;

        @media (max-width: 640px) {
            height: 170px;
        }
    }

    .hero-inner {
        position: relative;
        margin-top: -90px;
        padding-bottom: 2rem;

        @media (max-width: 640px) {
            margin-top: -60px;
        }
    }

    .hero-layout {
        gap: 1.75rem;

        @media (min-width: 900px) {
            align-items: center;
        }
    }

    .hero-content {
        max-width: 420px;
        background: var(--bg-card);
        box-shadow: var(--shadow-soft);
        border-radius: 1.2rem;
        padding: 1.6rem 1.8rem;

        @media (max-width: 640px) {
            padding: 1.3rem 1.4rem;
        }

        .hero-kicker {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-bottom: 0.35rem;
            color: var(--accent-dark);
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 0.3rem;
        }

        .hero-subtitle {
            margin-bottom: 0.75rem;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .hero-schedule {
            margin-bottom: 1.1rem;
        }

        .hero-actions {
            display: flex;
            justify-content: flex-end;
        }
    }

    .hero-status {
        width: 100%;
        align-self: end;

        .hero-status-title {
            margin-bottom: 0.9rem;
        }
    }
}

/* ===== HERO SCHEDULE BADGE ===== */
.schedule-pill {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.9rem;
    background: var(--accent-soft);
    border: 1px solid rgba(90, 139, 42, 0.28);
}

.schedule-icon {
    font-size: 1.1rem;
}

.schedule-text {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
}

.schedule-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--accent-dark);
}

.schedule-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.13s ease-out, box-shadow 0.13s ease-out,
        background 0.13s ease-out, color 0.13s ease-out, border-color 0.13s ease-out;

    &.btn-primary {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 10px 22px rgba(90, 139, 42, 0.4);

        &:hover {
            background: var(--accent-dark);
            transform: translateY(-1px);
            box-shadow: 0 14px 26px rgba(90, 139, 42, 0.55);
        }
    }

    &.btn-secondary {
        background: #fff;
        color: var(--accent-dark);
        border-color: var(--accent);

        &:hover {
            background: var(--accent-soft);
        }
    }

    &.btn-outline {
        background: #fff;
        color: var(--accent-dark);
        border-color: var(--accent);

        &:hover {
            background: var(--accent-soft);
        }
    }
}

/* ===== SERVER STATUS ===== */
.status-card {
    margin-top: 0;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    .status-left {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
        align-items: center;
    }

    .status-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        transition: background 0.3s ease, color 0.3s ease;

        &.status-pill--online {
            background: var(--accent-soft);
            color: var(--accent-dark);
        }

        &.status-pill--offline {
            background: var(--offline-bg);
            color: var(--offline-color);
        }

        .status-dot {
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 999px;
            transition: background 0.3s ease, box-shadow 0.3s ease;

            &.dot-online {
                background: #22c55e;
                box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
            }

            &.dot-offline {
                background: #dc2626;
                box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
            }
        }
    }

    .status-detail {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    @media (max-width: 640px) {
        flex-direction: column;
        align-items: flex-start;

        .status-right {
            width: 100%;

            .btn {
                width: 100%;
            }
        }
    }
}

/* ===== ABOUT / TAGS ===== */
.lead {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;

    li {
        padding: 0.25rem 0.7rem;
        border-radius: 999px;
        background: #e5e7eb;
        font-size: 0.75rem;
    }
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.45rem;

        &:nth-child(1) {
            grid-column: span 3;
            grid-row: span 2;
        }
    }

    @media (max-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 90px;

        img:nth-child(1) {
            grid-column: span 2;
        }
    }
}

/* ===== CARD LISTS (Pravidla) ===== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;

    li {
        padding: 0.9rem 1rem;
        background: var(--bg-card-soft);
        border-radius: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.25);

        h3 {
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
        }

        p {
            margin: 0;
            font-size: 0.87rem;
            color: var(--text-muted);
        }
    }
}

/* ===== HOW-TO STEPS (Jak začít) ===== */
.steps-card {
    background: var(--bg-card-soft);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.6rem 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps-list li {
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list h3 {
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
}

.steps-list p {
    margin: 0;
    font-size: 0.87rem;
    color: var(--text-muted);
}

.howto-cta {
    margin-top: 1.25rem;
    text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2rem 0;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.85rem;
    margin-top: 2rem;

    .footer-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
        align-items: center;
        justify-content: space-between;
    }

    .footer-socials {
        display: flex;
        gap: 1rem;

        a {
            color: #9ca3af;
            font-size: 0.85rem;

            &:hover {
                color: #f9fafb;
            }
        }
    }
}