/*
 * Public Live Tournament Dashboard: airport-departure-board styling.
 * Always a light, high-contrast surface (independent of site dark mode)
 * so it reads cleanly from across a venue on a TV or projector.
 */

#dashboard-root {
    color: #1f2937;
}

/* ---- Hero cards (Now Playing / On Deck) ---- */

.dashboard-hero {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-card {
    flex: 1 1 380px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.hero-card-header {
    padding: 0.85rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.hero-now-playing .hero-card-header {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.hero-on-deck .hero-card-header {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.hero-card-body {
    padding: 1.5rem;
}

.hero-match {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #e3e6ec;
}

.hero-match:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-bout {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-players {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.25rem 0 0.5rem;
}

.hero-meta {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 0.6rem;
}

.hero-empty {
    color: #9ca3af;
    font-size: 1.25rem;
    text-align: center;
    padding: 2.5rem 0;
}

/* ---- Station board ---- */

.station-board {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.station-column {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.station-column > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: sticky;
    top: 0;
    z-index: 1;
}

.station-column > summary::-webkit-details-marker {
    display: none;
}

.station-column-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 75vh;
    overflow-y: auto;
}

.station-empty {
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem 0;
}

/* ---- Match cards ---- */

.match-card {
    border-radius: 10px;
    border: 1px solid #e3e6ec;
    border-left: 5px solid var(--status-rail, #9ca3af);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 1.1rem;
    background: #ffffff;
}

.match-card.is-completed {
    opacity: 0.6;
}

.match-card .bout-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-card .players {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.3rem 0 0.5rem;
}

.match-card .players .vs {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0 0.4rem;
}

.match-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.6rem;
}

.match-card .meta-item i {
    color: #6b7280;
}

/* ---- Status colors: shared by hero matches, station cards, badges ---- */

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.status-green, .status-badge.status-green { --status-rail: #16a34a; }
.status-yellow, .status-badge.status-yellow { --status-rail: #d97706; }
.status-gray, .status-badge.status-gray { --status-rail: #6b7280; }
.status-blue, .status-badge.status-blue { --status-rail: #2563eb; }
.status-red, .status-badge.status-red { --status-rail: #dc2626; }

.status-badge.status-green { background: #16a34a; }
.status-badge.status-yellow { background: #d97706; }
.status-badge.status-gray { background: #6b7280; }
.status-badge.status-blue { background: #2563eb; }
.status-badge.status-red { background: #dc2626; }

/* ---- Responsive: tablet keeps columns, tighter; mobile stacks/collapses ---- */

@media (max-width: 991px) {
    .hero-players { font-size: 1.6rem; }
    .station-board { gap: 0.85rem; }
    .station-column { flex: 0 0 250px; }
    .station-column-body { padding: 0.6rem; gap: 0.6rem; }
}

@media (max-width: 575px) {
    .dashboard-hero { flex-direction: column; }
    .station-board {
        flex-direction: column;
        overflow-x: visible;
    }
    .station-column {
        flex: 1 1 auto;
    }
    .station-column-body {
        max-height: none;
    }
}
