/* =========================================
   STYLE.CSS - PEŁNA WERSJA (MOBILNA + DESKTOP)
   ========================================= */

:root {
    --primary: #0055ff;
    --accent: #00d4ff;
    --bg: #050a18;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a0aec0;
    --success: #00ff88;
    --danger: #ff4d4d;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* TŁO STRONY Z PRZYCIEMNIENIEM (1.jpg) */
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   NAVBAR (MENU NAWIGACJI)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { height: 45px; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: #fff; }

/* PRZYCISK HAMBURGERA (Domyślnie ukryty na PC) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* LINKI W MENU (DESKTOP) */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--accent);
}

.admin-btn {
    padding: 8px 16px !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: 0.3s;
}
.admin-btn:hover { border-color: var(--accent); background: rgba(0, 212, 255, 0.1); }

/* =========================================
   RESPANSYWNOŚĆ (TELEFON - DO 900px)
   ========================================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: block; /* Pokaż ikonę menu */
    }

    .nav-links {
        /* Ukryj menu domyślnie */
        display: none;
        
        position: absolute;
        top: 100%; /* Zaraz pod paskiem */
        left: 0;
        width: 100%;
        background: #0f172a; /* Ciemne tło rozwijanego menu */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* Klasa 'active' dodawana przez JS po kliknięciu */
    .nav-links.active {
        display: flex; /* Pokaż menu jako kolumnę */
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links .admin-btn {
        margin-top: 15px;
        width: 80%;
        display: inline-block;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =========================================
   SEKCJA GŁÓWNA (HERO)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.cta-section {
    text-align: center;
    margin: 60px auto;
    padding: 0 20px;
    max-width: 800px;
}

.cta-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-logo {
    width: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-box h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}
@media (min-width: 768px) { .cta-box h1 { font-size: 3.5rem; } }

.highlight { color: var(--accent); text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }

/* LICZNIK TURNIEJÓW */
.stats-counter-box {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 25px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
}
.stats-number { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.stats-label { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 1px; }

/* TIMER */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.timer-segment {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
}
.timer-segment span { display: block; font-size: 1.5rem; font-weight: 700; }
.timer-segment label { font-size: 0.7rem; text-transform: uppercase; color: #aaa; }

/* =========================================
   NEWSY I WYNIKI
   ========================================= */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 50px 0 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.news-grid, .matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* KARTA NEWSA */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    transition: 0.3s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-5px); background: rgba(255,255,255,0.05); }

.news-date { color: var(--accent); font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 8px; }
.news-title { font-size: 1.2rem; margin: 0 0 10px 0; color: #fff; line-height: 1.4; }
.news-content { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* KARTA MECZU */
.match-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}
.match-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.match-info { font-size: 0.75rem; color: #888; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.match-teams { display: flex; align-items: center; justify-content: center; gap: 15px; }
.team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team img { width: 50px; height: 50px; object-fit: contain; }
.team span { font-size: 0.9rem; font-weight: 700; }
.score { font-size: 2rem; font-weight: 800; color: #fff; white-space: nowrap; }

/* =========================================
   STOPKA
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
    background: rgba(0,0,0,0.2);
}