/* =========================================================
   Brennholz Server Status (HLL) - Match Style
   ========================================================= */

/* --- Container --- */
.hll-detail-view {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: var(--hll-text, #fff);
    font-family: inherit;
    box-sizing: border-box;
}

.hll-detail-view * {
    box-sizing: border-box;
}

/* --- Hero Header (Scoreboard) --- */
.hll-match-hero {
    background: linear-gradient(180deg, var(--hll-surface, #111a2d) 0%, rgba(10,10,10,1) 100%);
    border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hll-hero-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.hll-back-link { 
    color: inherit; 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.2s;
}
.hll-back-link:hover { color: #fff; }

.hll-map-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hll-big-score {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 10px 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.score-box {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}
.score-box .num { font-size: 3rem; font-weight: 900; line-height: 1; }
.score-box .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; }

.score-box.team-allies { color: #63a4ff; }
.score-box.team-axis { color: #ff6b6b; }
.score-sep { font-size: 2rem; color: rgba(255,255,255,0.2); font-weight: 300; margin-top: -10px; }

/* --- Split View Columns --- */
.hll-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1000px) {
    .hll-split-view { grid-template-columns: 1fr; }
}

.hll-team-col {
    background: var(--hll-surface, #111a2d);
    border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Winner Glow */
.hll-team-col.winner-glow {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}
.hll-team-col.winner-glow .team-header {
    background: linear-gradient(90deg, rgba(255,215,0,0.1), transparent);
}

.team-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    background: rgba(255,255,255,0.02);
}
.team-header h3 { margin: 0; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.col-allies .team-header h3 { color: #63a4ff; }
.col-axis .team-header h3 { color: #ff6b6b; }
.team-header .count { font-size: 0.8rem; opacity: 0.5; font-weight: bold; }

/* --- Player Table (Grid) --- */
.hll-grid-wrapper.mode-compact {
    padding: 0;
}

/* GRID CONFIGURATION - Erzwinge Anzeige und Spaltenbreiten */
/* Rank | Name | K | D | K/D | Score */
.hll-grid-wrapper.mode-compact .hll-grid-header, 
.hll-grid-wrapper.mode-compact .hll-grid-row {
    display: grid !important;
    grid-template-columns: 35px minmax(100px, 2fr) 40px 40px 50px 60px !important; 
    padding: 8px 12px;
    gap: 6px;
    align-items: center;
}

/* Header Style */
.hll-grid-wrapper.mode-compact .hll-grid-header {
    background: rgba(0,0,0,0.2);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Row Style */
.hll-grid-wrapper.mode-compact .hll-grid-row {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.1s;
}

.hll-grid-row:hover {
    background: rgba(255,255,255,0.04);
}

/* Sortier Buttons */
.hll-sort-btn {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hll-sort-btn[data-sort="name"] { justify-content: flex-start; }

.hll-sort-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.sort-icon::after {
    content: "↕";
    font-size: 0.9em;
    margin-left: 2px;
    opacity: 0.2;
    display: inline-block;
}

.hll-sort-btn[data-dir="asc"] .sort-icon::after { content: "↑"; opacity: 1; color: var(--hll-gold, #f5d671); }
.hll-sort-btn[data-dir="desc"] .sort-icon::after { content: "↓"; opacity: 1; color: var(--hll-gold, #f5d671); }

/* Zell-Inhalte sichtbar machen */
.hll-grid-row .col-stat,
.hll-grid-row .col-score,
.hll-grid-row .col-kd {
    display: block !important; /* Verhindert das Ausblenden durch alte Regeln */
    text-align: center;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hll-grid-row .high { color: #aeffa8; opacity: 0.9; }
.hll-grid-row .text-red { color: #ff8a8a; opacity: 0.9; }
.hll-grid-row .hll-kd { color: #fff; opacity: 0.85; font-weight: 700; }
.hll-grid-row .col-score { color: var(--hll-gold, #f5d671); }

.col-rank {
    font-size: 0.8em;
    opacity: 0.5;
    text-align: center;
}

.col-name a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 700;
    display: block; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.col-name a:hover { text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 480px) {
    /* Mobile: Alles etwas enger, aber NICHTS ausblenden */
    .hll-grid-wrapper.mode-compact .hll-grid-header, 
    .hll-grid-wrapper.mode-compact .hll-grid-row {
        grid-template-columns: 20px minmax(60px, 1fr) 25px 25px 35px 40px !important; 
        gap: 2px;
        font-size: 0.8rem;
        padding: 8px 4px;
    }
    
    /* Header Kürzel auf Mobile */
    .hll-grid-header .col-stat[title="Kills"] { font-size: 0; }
    .hll-grid-header .col-stat[title="Kills"]::before { content: "K"; font-size: 0.75rem; }
    
    .hll-grid-header .col-stat[title="Deaths"] { font-size: 0; }
    .hll-grid-header .col-stat[title="Deaths"]::before { content: "D"; font-size: 0.75rem; }
}