/* =========================================================
   Brennholz Server Status (HLL) - Dashboard
   ========================================================= */

.hll-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--hll-text, #fff);
}
.hll-dashboard * { box-sizing: border-box; }

/* ---------- Tabs Navigation ---------- */
.hll-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.hll-tab-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.hll-tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.hll-tab-btn.active {
    background: var(--hll-gold, #f5d671);
    color: #000;
    border-color: var(--hll-gold, #f5d671);
}

/* ---------- Auto-Update Bar ---------- */
.hll-refreshbar {
    margin-bottom: 25px;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
}
.hll-refreshbar-row { 
    display: flex; 
    justify-content: space-between; 
    font-weight: 700; 
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}
.hll-refreshbar-last-time, .hll-refreshbar-countdown { color: #fff; }

.hll-refreshbar-track { 
    height: 4px; 
    background: rgba(255,255,255,0.08); 
    margin-top: 10px; 
    border-radius: 2px; 
    overflow: hidden;
}
.hll-refreshbar-fill { 
    height: 100%; 
    width: 0; 
    background: var(--hll-gold, #f5d671); 
    transition: width 1s linear; 
}

/* ---------- Hero Status Card ---------- */
.hll-dash-hero {
    background: linear-gradient(180deg, var(--hll-surface, #111a2d) 0%, #0a0a0a 100%);
    border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.dash-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.dash-server-name {
    margin: 0 0 30px 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.dash-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.live-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.live-card .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}
.live-card .val { font-size: 1.4rem; font-weight: 800; color: #fff; display: block; }
.live-card .val.map-name { color: var(--hll-gold, #f5d671); }
.live-card .sub-val { font-size: 0.85rem; opacity: 0.4; margin-top: 5px; display: block; }

.hll-progress-track {
    background: rgba(0,0,0,0.4);
    height: 10px;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.allied-bg { background: #62a8ff; }
.axis-bg { background: #ff6b6b; }

.player-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 8px;
    font-weight: 700;
    opacity: 0.7;
}

/* ---------- History Match List ---------- */
.hll-match-list {
    background: var(--hll-surface, #151e32);
    border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
}

.match-row {
    display: grid;
    grid-template-columns: 140px 1fr 150px 110px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
    gap: 15px;
}
.match-row.header {
    background: rgba(0,0,0,0.2);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.match-row.item:hover { background: rgba(255,255,255,0.02); }

.m-col.date { opacity: 0.6; font-size: 0.85rem; }
.m-col.map { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-col.result {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.03);
}
.m-col.result .sc.allies { color: #63a4ff; }
.m-col.result .sc.axis { color: #ff6b6b; }
.m-col.result .sc-sep { opacity: 0.2; margin: 0 6px; }

/* Winner Highlights */
.m-col.result.win-allies { border-bottom: 2px solid #63a4ff; }
.m-col.result.win-axis { border-bottom: 2px solid #ff6b6b; }

.hll-btn-small {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    color: var(--hll-gold, #f5d671);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid rgba(245, 214, 113, 0.2);
    transition: all 0.2s;
}
.hll-btn-small:hover {
    background: var(--hll-gold, #f5d671);
    color: #000;
}

/* --- Responsive Layout --- */
@media (max-width: 800px) {
    .match-row.header { display: none; }
    .match-row.item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 15px;
    }
    .m-col.map { grid-column: 1 / -1; font-size: 1.1rem; }
    .m-col.date { grid-column: 1; grid-row: 2; align-self: center; }
    .m-col.result { grid-column: 1; grid-row: 2; margin-left: 100px; background: none; border: none; }
    .m-col.action { grid-column: 2; grid-row: 2; }
    .dash-live-grid { grid-template-columns: 1fr; }
}