:root {
    --bg-color: #0d0d0d;
    --text-color: #f4f4f4;
    --accent-color: #b30000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent-color);
}

nav .logo img {
    height: 50px;
}

nav .menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav .menu li a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav .menu li a:hover {
    color: var(--accent-color);
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95)),
                url('static/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(179, 0, 0, 0.3), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.gigs-section, .gallery-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.gigs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.gig-item {
    background-color: #1a1a1a;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
    font-size: 1.2rem;
}

.gig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.gig-date {
    color: var(--accent-color);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.gig-date:hover {
    color: #ff3333;
    transform: scale(1.02);
}

.gig-date:hover .map-hint {
    color: #ff3333 !important;
    text-decoration-color: #ff3333;
}

.gig-info-text {
    font-size: 1rem;
    color: #aaa;
    white-space: pre-wrap;
}

.admin-panel form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.admin-panel input {
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

.admin-panel button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-panel button:hover {
    background-color: #ff0000;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.grid-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

footer {
    background-color: #000;
    text-align: center;
    padding: 20px;
    border-top: 2px solid var(--accent-color);
    margin-top: 40px;
}

/* --- NOWE KLASY DO DODANIA NA DOLE PLIKU --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#typing-text {
    color: var(--text-color);
    font-size: 3rem;
    font-family: 'Courier New', Courier, monospace;
    border-right: 3px solid var(--accent-color);
    display: inline-block;
    text-align: center;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

.lang-switch {
    display: flex;
    gap: 15px;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-switch button:hover,
.lang-switch button.active {
    color: var(--accent-color);
}

.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #111;
    padding: 30px;
    border: 2px solid var(--accent-color);
    width: 90%;
    max-width: 700px;
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-color);
}

.nav-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-button:hover {
    background-color: #ff0000;
}

.admin-panel form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.admin-panel input, .admin-panel textarea {
    padding: 12px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    font-size: 1rem;
    width: 100%;
}

.admin-panel textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-panel button {
    padding: 15px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.admin-panel button:hover {
    background-color: #ff0000;
}

.about-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background-color: #0d0d0d;
    position: relative;
}

.about-content {
    background-color: #111;
    padding: 40px;
    border: 1px solid #333;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

.about-content p {
    font-size: 1.15rem;
    color: #ccc;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content::before {
    content: '“';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: 0px;
    left: 10px;
    opacity: 0.3;
    z-index: 1;
    font-family: serif;
}

.about-content::after {
    content: '”';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    bottom: -30px;
    right: 20px;
    opacity: 0.3;
    z-index: 1;
    font-family: serif;
}

/* --- NOWE KLASY DO DODANIA NA DOLE PLIKU --- */

/* Silnik Animacji (Wjeżdżanie) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up {
    transform: translateY(60px);
}
.fade-in-down {
    transform: translateY(-60px);
}
.fade-in-left {
    transform: translateX(-60px);
}
.fade-in-right {
    transform: translateX(60px);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Opóźnienia dla zdjęć w galerii (tworzy falę) */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Setlista */
.setlist-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.setlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.setlist-list li {
    background-color: #111;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-left: 4px solid var(--accent-color);
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: background-color 0.3s, transform 0.3s;
}
.setlist-list li:hover {
    background-color: #1a1a1a;
    transform: scale(1.02);
    border-left-color: #ff3333;
}

/* Social Media w stopce */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.social-media a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    padding: 10px 25px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.social-media a:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Krwistoczerwony, mroczny pasek przewijania */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

.delete-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* Poprawa nawigacji - układamy menu i przełącznik języków pionowo */
    nav {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    nav .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Mniejsza czcionka wpisywania na czarnym ekranie */
    #typing-text {
        font-size: 1.8rem;
    }

    /* Zmniejszone napisy na głównym ekranie z tłem */
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Galeria: 2 kolumny na tablecie, ale dla bezpieczeństwa mniejsze odstępy */
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Usunięcie opóźnień animacji na telefonach, aby zdjęcia ładowały się od razu */
    .grid-gallery img {
        transition-delay: 0s !important;
    }

    /* Dopasowanie sekcji "O zespole" i wielkości cudzysłowów */
    .about-section {
        padding: 50px 15px;
    }

    .about-content {
        padding: 25px 15px;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-content::before, .about-content::after {
        font-size: 2.5rem;
    }
    
    .about-content::after {
        bottom: -20px;
        right: 10px;
    }

    /* Układ formularzy w panelu admina */
    .admin-panel form {
        flex-direction: column;
    }
    
    /* Dopasowanie przycisków w stopce */
    .social-media {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Dodatkowa reguła dla bardzo małych telefonów (np. starsze modele) */
@media (max-width: 480px) {
    .grid-gallery {
        grid-template-columns: 1fr; /* 1 kolumna na najmniejszych ekranach */
    }
    
    .gig-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- ZARZĄDZANIE TERMINAMI W PANELU ADMINA --- */
.admin-gigs-list {
    margin-top: 20px;
    text-align: left;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-gig-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
}

.delete-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.delete-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* --- SEKCJA BOOKINGOWA --- */
.booking-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.booking-content {
    background: linear-gradient(135deg, #111, #000);
    padding: 40px;
    border: 1px solid #333;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.booking-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.booking-btn {
    padding: 15px 40px;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
}

/* --- TECH RIDER W STOPCE --- */
.tech-rider-box {
    margin-top: 25px;
    margin-bottom: 15px;
}

.tech-rider-link {
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 1px dashed #555;
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s, transform 0.3s;
    display: inline-block;
}

.tech-rider-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- SKRZYNKA ODBIORCZA BOOKINGÓW (ADMIN) --- */
.admin-booking-item {
    background: #1a1a1a;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333;
    text-align: left;
    font-size: 1rem;
    color: #eee;
}

.admin-booking-item strong {
    color: #fff;
}