.season-page {
    max-width: 1200px;
    margin: 60px auto 160px auto; 
    padding: 40px 50px; 
    color: white;

    
    background: rgba(5, 15, 30, 0.75); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.season-header {
    text-align: center;
    margin-bottom: 50px;
}


.season-header h1 {
    color: #ffffff !important;
    font-size: 45px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 30px rgba(0, 162, 255, 0.6) !important;
}

.season-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8) !important;
    font-weight: 600;
}


.month-block {
    margin-bottom: 70px;
}

.month-title {
    font-size: 32px;
    font-weight: 900;
    color: white;
    
    margin: 0 auto 40px auto; 
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 162, 255, 0.4);
    text-shadow: 0 0 15px rgba(0, 162, 255, 0.5);
    letter-spacing: 2px;
    
    display: table; 
}


.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    
}

.event-card {
    
    background: rgba(10, 25, 45, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: #00a2ff;
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.3);
}


.event-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}


.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    object-position: 50% 15%; 
    transition: transform 0.5s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.08); 
}


.event-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    color: #ff4b2b;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.event-info h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: white;
}

.event-cta {
    margin-top: auto;
    color: #00a2ff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.event-card:hover .event-cta {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.event-city {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-city i {
    color: #ff4b2b; 
    margin-right: 5px;
}


#magazyn-danych {
    display: none;
}

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: linear-gradient(145deg, rgba(15, 30, 50, 0.95), rgba(5, 10, 20, 0.98));
    border: 1px solid rgba(0, 162, 255, 0.4);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh; 
    overflow-y: auto; 
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }


.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover { 
    color: #ff4b2b; 
    transform: rotate(90deg); 
}


.modal-header {
    margin-bottom: 30px;
    padding-right: 40px; 
}

.modal-header h2 {
    color: #00a2ff;
    font-size: 32px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.modal-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}


.modal-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.modal-photos-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.modal-photos-grid img:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
}


.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 8px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(0, 162, 255, 0.5); border-radius: 8px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 162, 255, 0.8); }




.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000; 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3); 
    color: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    
    width: 60px;
    height: 60px;
    border-radius: 50%; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    cursor: pointer;
    z-index: 12000;
    
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


.lightbox-nav i {
    font-size: 20px;
}


.lightbox-nav:hover {
    background: rgba(0, 162, 255, 0.15); 
    color: #00a2ff; 
    border-color: rgba(0, 162, 255, 0.6);
    
    
    box-shadow: 
        0 0 20px rgba(0, 162, 255, 0.8), 
        0 0 5px white;
    
    transform: translateY(-50%) scale(1.03); 
}


.prev { left: 40px; }
.next { right: 40px; }


@media (max-width: 1024px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-nav i { font-size: 20px; }
    .prev { left: 15px; }
    .next { right: 15px; }
}

.ukryty-film video, .ukryty-film iframe {
    max-width: 100%;
    height: auto;
}



.event-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}


.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.event-img-wrapper {
    overflow: hidden; 
}


.event-img-wrapper img {
    transition: transform 0.5s ease;
}


.event-card:hover .event-img-wrapper img {
    transform: scale(1.08);
}


.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); 
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(10, 25, 45, 0.9);
    border: 1px solid rgba(0, 162, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px; 
    max-height: 85vh; 
    overflow-y: auto; 
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    transform: translateY(0);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff4b4b;
}


.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-icon {
    font-size: 40px;
    color: #00a2ff;
    margin-bottom: 15px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #00a2ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.3);
}


.guzik-wyslij {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #0072ff, #00c6ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 162, 255, 0.3);
}

.guzik-wyslij:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.5);
    letter-spacing: 1px;
    filter: brightness(1.1);
}

.modal-note {
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}


.guzik-wyslij {
    transition: all 0.4s ease; 
}

.guzik-wyslij:hover {
    transform: scale(1.05); 
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.8); 
    
}


.neon-text {
    animation: neonGlow 2s infinite ease-in-out;
}

@keyframes neonGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(0, 162, 255, 0.4); }
    50% { text-shadow: 0 0 15px rgba(0, 162, 255, 1), 0 0 30px rgba(0, 162, 255, 0.8); }
}

.return-btn {
    
    position: relative;
    overflow: hidden; 
    z-index: 1;
    transition: all 0.3s ease;
    
    
    display: inline-block;
    padding: 15px 35px;
    background: #0088d4; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.4);
    border: 2px solid transparent;
}


.return-btn::after {
    content: '';
    position: absolute;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        linear-gradient(to top, #00a2ff 0%, #a2d9ff 100%);
    border-radius: 8px;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: -1; 
}


.return-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
    z-index: 2; 
}


.return-btn:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.02); 
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.7);
}

.return-btn:hover::after {
    bottom: 0; 
}

.return-btn:hover::before {
    left: 150%; 
}


.return-btn i, .return-btn span {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    
    .season-page {
        margin: 120px auto 10px auto; 
        padding: 30px 40px;
        
        width: 90%; 
    }

    
    .season-header h1 {
        font-size: 38px;
    }
    
    .month-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    
    .events-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    
    .event-img-wrapper {
        height: 180px;
    }

    
    .modal-content {
        padding: 30px;
    }
}


#signupModal .modal-content {
    max-width: 500px; 
    padding: 30px 40px; 
}


#signupModal .input-group input, 
#signupModal .input-group textarea {
    padding: 10px 15px;
    font-size: 15px;
}

#signupModal .modal-header h2 {
    font-size: 24px; 
}

@media (max-width: 768px) {
    
    .main-header {
        z-index: 99999 !important; 
    }

    
    .season-page {
        position: relative !important;
        z-index: 10 !important; 
        
        /* ZMIANA: Dajemy 20px marginesu, żeby szkło ładnie oddychało pod paskiem 
           i nie wciskało się pod niego */
        margin: 20px auto 60px auto !important; 
        
        padding: 15px 15px 25px 15px !important; 
        width: calc(100% - 40px) !important; 
        box-sizing: border-box !important;
    }

    
    .season-header h1 {
        font-size: 26px !important;
        margin-bottom: 5px;
    }

    .month-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    
    .events-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .event-img-wrapper {
        height: 200px; 
    }

    .event-info h3 {
        font-size: 18px;
    }

    
    .modal-content {
        width: calc(100% - 40px) !important;
        padding: 25px 15px !important;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .modal-header {
        padding-right: 30px; 
        margin-bottom: 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .close-btn {
        top: 15px; 
        right: 15px;
        font-size: 35px;
    }

    .modal-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .modal-photos-grid img {
        height: 130px; 
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    
    .glass-menu-container {
        margin: 0px auto 25px auto !important;
    }

    .glass-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 15px !important; 
    }

    .year-btn {
        padding: 8px 15px !important;
        font-size: 14px !important; 
    }

    .year-btn.active::after {
        bottom: -5px !important;
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(5, 15, 30, 0.95); 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 162, 255, 0.3);
        padding: 20px 0;
        z-index: 9999;
    }

    
    .main-nav.otwarte {
        display: block; 
    }

    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .main-nav {
        display: none; 
    }
    
    .main-nav.otwarte {
        display: block !important; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 15, 30, 0.95);
        padding: 20px 0;
        z-index: 9999;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* =========================
   TABLETY - GALERIA / ZAWODY
========================= */

@media (min-width: 769px) and (max-width: 1400px) {

    .season-page {
        width: 90%;
        max-width: 950px;
        margin: 30px auto 100px auto;
        padding: 32px 35px;
        box-sizing: border-box;
        border-radius: 18px;
    }

    .season-header {
        margin-bottom: 40px;
    }

    .season-header h1 {
        font-size: clamp(32px, 4vw, 40px);
        letter-spacing: 2px;
    }

    .season-header p {
        font-size: 16px;
    }

    .month-block {
        margin-bottom: 55px;
    }

    .month-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .event-card {
        border-radius: 12px;
    }

    .event-img-wrapper {
        height: 180px;
    }

    .event-info {
        padding: 20px;
    }

    .event-date {
        font-size: 13px;
    }

    .event-city {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .event-info h3 {
        font-size: 19px;
        line-height: 1.3;
    }

    .event-cta {
        font-size: 13px;
    }

    .modal-content {
        width: 88%;
        max-width: 760px;
        padding: 32px;
        max-height: 82vh;
    }

    .modal-header h2 {
        font-size: 28px;
    }

    .modal-desc {
        font-size: 15px;
    }

    .modal-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .modal-photos-grid img {
        height: 180px;
    }

    .lightbox-nav {
        width: 52px;
        height: 52px;
    }

    .prev {
        left: 20px;
    }

    .next {
        right: 20px;
    }

    .lightbox-close {
        top: 22px;
        right: 28px;
        font-size: 42px;
    }

    #signupModal .modal-content {
        max-width: 480px;
        padding: 30px 35px;
    }
}