/* css/loze.css - Wersja Modern Dot Grid */

/* --- ZAKŁADKI (TABS) --- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    z-index: 10;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.6);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    backdrop-filter: var(--blur-effect);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tab-btn:hover {
    box-shadow: 0 0 15px var(--primary-color);
    background: rgba(255, 105, 180, 0.15);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 25px var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* --- KONTENER GŁÓWNY MAPY --- */
.map-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
}

.map-container {
    display: none;
    
    /* --- NOWOCZESNE TŁO W KROPKI (DOT GRID) --- */
    background-color: rgba(20, 20, 20, 0.98); /* Bardzo ciemna baza */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px; /* Rozstaw kropek */
    
    /* Brak paddingu u góry dla nagłówka */
    padding: 0 1.5rem 1.5rem 1.5rem;
    
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--blur-effect);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.6s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-container.active-map {
    display: block;
}

/* Pasek gradientowy na górze */
.map-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background: var(--header-gradient);
    z-index: 0;
    pointer-events: none;
    opacity: 1; /* Pełny kolor nagłówka */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* --- TYTUŁ KLUBU --- */
.club-title {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- RESPONSYWNE PRZEWIJANIE MAPY --- */
.scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

@media (max-width: 850px) {
    .scroll-container {
        justify-content: flex-start;
    }
}

/* Scrollbar Webkit */
.scroll-container::-webkit-scrollbar {
    height: 6px;
}
.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.grid-layout {
    display: grid;
    gap: 12px;
    min-width: 800px;
    padding: 10px;
}

/* --- ELEMENTY MAPY --- */
.seat, .arch {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    font-size: 0.8rem;
    position: relative;
    min-height: 50px;
    transition: all 0.2s ease-out;
    user-select: none;
}

/* Architektura */
.arch {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #777;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    letter-spacing: 1px;
}

.arch-neon {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 105, 180, 0.03);
    box-shadow: inset 0 0 10px rgba(255, 105, 180, 0.05);
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.arch-dj { 
    border-color: #fff; 
    color: #fff; 
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    font-weight: 800;
}

.writing-v { 
    writing-mode: vertical-rl; 
    transform: rotate(180deg); 
    letter-spacing: 3px;
}

/* --- STOLIKI (INTERAKTYWNE) --- */
.seat {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    color: #eee;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.seat:hover:not(.occupied) {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px var(--primary-color);
    transform: translateY(-3px) scale(1.03);
    z-index: 10;
}

.seat.selected {
    background-color: var(--primary-color);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 10px rgba(255,255,255,0.3);
    transform: scale(1.05);
    z-index: 5;
    animation: pulseSelection 2s infinite;
}

@keyframes pulseSelection {
    0% { box-shadow: 0 0 15px var(--primary-color); }
    50% { box-shadow: 0 0 35px var(--primary-color); }
    100% { box-shadow: 0 0 15px var(--primary-color); }
}

.seat.occupied {
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #111 10px,
        #111 20px
    );
    border-color: #333;
    color: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- LABEL: PARKIET --- */
.bg-text {
    grid-area: label;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 8px;
    z-index: 0;
}

/* --- LEGENDA --- */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
}

/* --- DEFINICJE GRID --- */
#radosc-grid {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-template-areas:
        "none4 r1box r1box wc    barD  barD  barD  barD"
        "barM  .     .     .     .     .     .     ."
        "barM  .     label label label label .     fuego"
        "barM  .     label label label label .     fuego"
        "barM  .     label label label label .     fuego"
        "coat  enter none1 r1    r2    r3    r4    dj"
        "taras taras taras taras taras taras taras taras ";
}

#bezsennosc-grid {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(9, auto); 
    grid-template-areas:
        "b1box wejsc none2 wc    none3 bar   bar   bar   bar   bar"
        "b1box .     .     .     .     .     .     .     .     ."
        "b1box .     .     .     .     .     .     .     .     ."
        "b1box .     label label label label label label .     b5"
        "b2box .     label label label label label label .     b5"
        "b2box .     label label label label label label .     b5"
        "b2box .     .     .     .     .     .     .     .     b5"
        "b2box .     b1    b1    b2    dj    dj    b3    b4    b4"
        "taras taras taras taras taras taras taras taras taras taras";
}
/* Area Mapping */
.area-r1box { grid-area: r1box; } .area-wc { grid-area: wc; } .area-barD { grid-area: barD; } 
.area-barM { grid-area: barM; } .area-fuego { grid-area: fuego; } .area-coat { grid-area: coat; } 
.area-enter { grid-area: enter; } .area-dj { grid-area: dj; } 
.area-r1 { grid-area: r1; } .area-r2 { grid-area: r2; } .area-r3 { grid-area: r3; } 
.area-r4 { grid-area: r4; } 

.area-b1box { grid-area: b1box; } .area-b2box { grid-area: b2box; } .area-wejsc { grid-area: wejsc; } 
.area-bar { grid-area: bar; } .area-taras { grid-area: taras; } 
.area-b1 { grid-area: b1; } .area-b2 { grid-area: b2; } .area-b3 { grid-area: b3; } 
.area-b4 { grid-area: b4; } .area-b5 { grid-area: b5; } 
.area-none1 { grid-area: none1; }
.area-none2 { grid-area: none2; }
.area-none3 { grid-area: none3; }
.area-none4 { grid-area: none4; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .club-title {
        font-size: 1.2rem;
    }
}