/* ============================================
   Shock Me Girls: LOCKER BOX! - Event Styles
   ============================================ */

/* Base */
body {
    background-color: #000000;
    color: #f8fafc;
    font-family: 'Prompt', 'Kanit', sans-serif;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, #3b1053 0%, #1a0a2e 40%, #000000 80%);
    z-index: -1;
}

/* Glass Panel */
.glass-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #f472b6, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-warm {
    background: linear-gradient(135deg, #fb923c, #f472b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Avatar */
.avatar-img {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

/* ============ TAB NAVIGATION ============ */
.tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
    .tab-bar {
        position: relative;
        bottom: auto;
        background: transparent;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }
}
.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .tab-btn {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
        flex: none;
    }
}
.tab-btn.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.tab-btn:not(.active):hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}
.tab-btn svg, .tab-btn i { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 767px) {
    .tab-btn svg, .tab-btn i { width: 20px; height: 20px; }
}

/* ============ SCHEDULE TABLE ============ */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
}
.schedule-table th,
.schedule-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    vertical-align: middle;
}
.schedule-table thead th {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #e0e7ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}
.schedule-table thead tr:first-child th {
    font-size: 0.875rem;
}
.schedule-table thead .time-row th,
.schedule-table thead .time-row td {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
}
.schedule-table thead .close-row th,
.schedule-table thead .close-row td {
    background: #0f172a;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
}
.schedule-table tbody tr {
    transition: background 0.2s;
}
.schedule-table tbody tr:hover {
    background: rgba(236, 72, 153, 0.06);
}
.schedule-table tbody th {
    background: rgba(15, 23, 42, 0.7);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 120px;
}

/* Lane badges in table */
.lane-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.lane-badge-active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25));
    color: #f0abfc;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Status classes */
.cell-closed {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}
.cell-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
    animation: pulse-warn 1.5s infinite;
}
@keyframes pulse-warn {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Highlight row */
.highlight-row {
    background: rgba(236, 72, 153, 0.15) !important;
    box-shadow: inset 4px 0 0 0 #ec4899;
}

/* ============ MEMBER SPOTLIGHT ============ */
.member-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 0.375rem;
    border-radius: 1rem;
}
.member-chip:hover { transform: translateY(-2px); }
.member-chip.active {
    background: rgba(236, 72, 153, 0.15);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}
.member-chip img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #334155;
    transition: all 0.3s;
}
@media (min-width: 768px) {
    .member-chip img { width: 56px; height: 56px; }
}
.member-chip.active img {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}
.member-chip span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #94a3b8;
}
.member-chip.active span { color: #f472b6; }

/* ============ LIVE BOARD CARD ============ */
.live-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid transparent;
    border-radius: 1.5rem;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    transition: all 0.4s;
}
.live-card.status-open { border-color: #10b981; box-shadow: 0 0 30px rgba(16, 185, 129, 0.15); }
.live-card.status-warning { border-color: #f59e0b; box-shadow: 0 0 30px rgba(245, 158, 11, 0.15); }
.live-card.status-closed { border-color: #475569; opacity: 0.85; }
.live-card.status-opening { border-color: #06b6d4; box-shadow: 0 0 30px rgba(6, 182, 212, 0.15); }
.live-card.status-waiting { border-color: #64748b; }

.live-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}
.live-card-body { padding: 1rem 1.25rem; }
.live-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    background: rgba(0,0,0,0.15);
}

.live-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.live-member-row:hover { background: rgba(255,255,255,0.03); }
.live-member-row.highlighted { background: rgba(236, 72, 153, 0.15); }

/* ============ ROUND CARDS ============ */
.round-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s;
}
.round-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.5);
}
.round-card-header {
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}
.round-card-body { padding: 0.75rem; }

/* Status indicator bar */
.status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.status-bar.open { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 10px #10b981; }
.status-bar.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 10px #f59e0b; }
.status-bar.closed { background: #475569; }

/* ============ MOBILE ADJUSTMENTS ============ */
@media (max-width: 767px) {
    main { padding-bottom: 5rem !important; }
}

/* Announcement */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.announce-banner { animation: slideDown 0.5s ease-out forwards; }

/* Event selector buttons */
.event-type-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
}
.event-type-btn.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.event-type-btn:not(.active):hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.1);
}
