/* ==========================================================================
   NAWIGACJA
   ========================================================================== */

/* Początkowy stan nawigacji (lekko przezroczysty) */
.navbar {
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 1000;
    background-color: rgba(11, 11, 11, 0.4); /* Prześwitujące tło na starcie */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px); /* Efekt rozmycia szkła pod menu */
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Stan po zaczęciu scrollowania (ciemny i solidny) */
.navbar.scrolled {
    background-color: rgba(11, 11, 11, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo img { 
    height: 45px; 
    cursor: pointer; 
}

.nav-menu { 
    display: flex; 
    list-style: none; 
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.menu-toggle { 
    display: none; 
    cursor: pointer; 
}

.menu-toggle img { 
    width: 30px; 
    filter: invert(1); 
}

/* ==========================================================================
   SEKCJA HERO
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.65), #0b0b0b), url(../../zdjecia/hero-bg.jpg) center/cover no-repeat;
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.btn-neon {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--accent-neon);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.btn-neon:hover {
    box-shadow: inset 0 0 20px rgba(230,0,0,0.5), 0 0 20px rgba(230,0,0,0.4);
    background-color: var(--accent-neon);
}

/* ==========================================================================
   O KLUBIE
   ========================================================================== */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
    margin-top: 40px; 
}

.about-text p { 
    color: var(--text-muted); 
    line-height: 1.8; 
    font-size: 1.1rem; 
}

.price-box { 
    margin-top: 30px; 
    padding: 20px; 
    background-color: var(--bg-card); 
    border-left: 4px solid var(--accent-neon); 
    font-size: 1.2rem; 
}

.achievements-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.stat-card { 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 6px; 
    transition: transform 0.3s; 
}

.stat-card:hover { 
    transform: translateX(10px); 
}

.stat-card h4 { 
    color: var(--accent-neon); 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
}

/* ==========================================================================
   NKSW GROUND
   ========================================================================== */
.section-subtitle { 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 1.2rem; 
    margin-bottom: 5px; 
}

.ground-desc { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
}

.gallery-item { 
    overflow: hidden; 
    border-radius: 6px; 
    height: 250px; 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.gallery-item:hover img { 
    transform: scale(1.08); 
}

/* ==========================================================================
   GRAFIK I TABELA
   ========================================================================== */
.legend { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 25px; 
}

.badge { 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
}

.badge-lodo { 
    background-color: #222; 
    border: 1px solid #444; 
}

.badge-ground { 
    background-color: rgba(230,0,0,0.15); 
    border: 1px solid var(--accent-neon); 
    color: var(--accent-neon); 
}

.table-container { 
    overflow-x: auto; 
    margin-bottom: 40px; 
}

.modern-table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 12px; 
    min-width: 800px; 
}

.modern-table th { 
    background-color: var(--bg-card); 
    padding: 18px; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    border-radius: 6px; 
    border-bottom: 3px solid var(--accent-neon); 
}

.modern-table td { 
    vertical-align: top; 
    background-color: rgba(255,255,255,0.01); 
    border-radius: 6px; 
    padding: 5px; 
}

.schedule-item { 
    padding: 15px; 
    margin-bottom: 10px; 
    border-radius: 4px; 
    font-size: 0.95rem; 
}

.schedule-item strong { 
    color: #fff; 
    display: block; 
    margin-bottom: 3px; 
}

.lodo { 
    background-color: var(--bg-card); 
    border-left: 3px solid #555; 
}

.ground { 
    background-color: #1a0505; 
    border-left: 3px solid var(--accent-neon); 
}

.classes-description { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
}

.class-card { 
    background: var(--bg-card); 
    padding: 20px; 
    border-radius: 6px; 
}

.class-card h5 { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    color: var(--accent-neon); 
    text-transform: uppercase; 
}

.class-card p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
}

/* ==========================================================================
   TRENERZY (Zdjęcia dopasowane do krawędzi)
   ========================================================================== */
.coaches-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Dokładnie 3 kolumny na komputerze */
    gap: 30px; 
    margin-top: 40px; 
}

.coach-card { 
    background-color: var(--bg-card); 
    border-radius: 8px; 
    padding: 0; /* Usunięty padding boczny, aby zdjęcie stykało się z ramką */
    text-align: center; 
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; 
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden; /* Przycina zdjęcie bezpośrednio do zaokrąglenia ramki karty */
    padding-bottom: 25px; /* Przestrzeń pod tekstem i ikoną na dole karty */
}

.coach-card:hover { 
    transform: translateY(-8px); 
    background-color: var(--bg-card-light); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.coach-img { 
    width: 100%; 
    height: 320px; /* Zwiększona wysokość, by optymalnie wypełnić proporcje karty */
    overflow: hidden; 
    margin-bottom: 15px; 
    background-color: #000; 
}

.coach-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Brak czarnych pasów – zdjęcie idealnie rozciąga się i wypełnia ramkę */
    border-radius: 0; 
    filter: grayscale(100%); 
    transition: filter 0.4s ease; 
}

.coach-card:hover .coach-img img { 
    filter: grayscale(0%); 
}

.coach-card h4 { 
    font-size: 1.3rem; 
    margin-bottom: 5px; 
    letter-spacing: 0.5px;
    padding: 0 15px; /* Margines bezpieczeństwa dla dłuższego imienia */
}

.specialty { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    margin-bottom: 15px;
    padding: 0 15px;
}

/* Ikona Instagrama pod trenerem */
.coach-insta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.coach-insta img {
    width: 18px;
    height: 18px;
    filter: invert(1); /* Zmienia czarną ikonę SVG na białą */
    transition: filter 0.3s ease;
}

.coach-card:hover .coach-insta {
    background-color: rgba(230, 0, 0, 0.15); 
}

.coach-insta:hover {
    background-color: var(--accent-neon) !important;
    transform: scale(1.12);
}

/* ==========================================================================
   SPONSORZY
   ========================================================================== */
.sponsors-slider { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
}

.sponsors-slider a img { 
    height: 50px; 
    width: auto; 
    max-width: 130px; 
    object-fit: contain; 
    filter: grayscale(100%) brightness(0.7); 
    transition: all 0.3s ease; 
}

.sponsors-slider a img:hover { 
    filter: grayscale(0%) brightness(1); 
    transform: scale(1.08); 
}

/* ==========================================================================
   STOPKA (FOOTER)
   ========================================================================== */
footer { 
    background-color: #050505; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    padding: 60px 0; 
}

.contact-info p { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 18px; 
    font-size: 1.05rem; 
}

.contact-info p img { 
    width: 22px; 
    height: 22px; 
}

.contact-info a { 
    color: var(--text-main); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.contact-info a:hover { 
    color: var(--accent-neon); 
}

.social-links { 
    display: flex; 
    gap: 20px; 
    margin-top: 30px; 
}

.social-links a img { 
    width: 32px; 
    height: 32px; 
    transition: transform 0.3s; 
}

.social-links a:hover img { 
    transform: scale(1.15); 
}

.map-container { 
    border-radius: 8px; 
    overflow: hidden; 
}

.map-container iframe { 
    width: 100%; 
}

.footer-bottom { 
    text-align: center; 
    padding: 20px 0; 
    border-top: 1px solid rgba(255,255,255,0.02); 
    color: #444; 
    font-size: 0.9rem; 
}

/* ==========================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .hero-content h1 { 
        font-size: 3rem; 
    }
    .hero-content p { 
        font-size: 1.3rem; 
    }
    .coaches-grid { 
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    } 
}

@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }
    .nav-menu { 
        position: absolute; 
        top: 100%; 
        right: -100%; 
        flex-direction: column; 
        background-color: rgba(11,11,11,0.98); 
        width: 250px; 
        height: 100vh; 
        transition: right 0.4s ease; 
        padding-top: 40px; 
        box-shadow: -10px 0 20px rgba(0,0,0,0.5); 
    }
    .nav-menu.active { 
        right: 0; 
    }
    .nav-link { 
        display: block; 
        padding: 20px; 
        text-align: center; 
    }
    .coaches-grid { 
        grid-template-columns: 1fr; /* 1 kolumna (jeden pod drugim) na telefonach */
        gap: 20px;
    } 
}