/* =========================================================
   Brennholz Server Status (HLL) - Team View (Full Detail)
   ========================================================= */

/* --- Container --- */
.hll-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1100px) { .hll-split-container { grid-template-columns: 1fr; } }

/* --- Team Card --- */
.hll-team-card {
    background: var(--hll-surface, #151e32);
    border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hll-team-card.col-allies { border-top: 4px solid #63a4ff; }
.hll-team-card.col-axis { border-top: 4px solid #ff6b6b; }
.hll-team-card.col-gray { 
    border-top: 4px solid #999; 
    grid-column: 1 / -1; /* Nimmt die volle Breite ein */
}

/* Header */
.hll-card-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hll-team-title { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.hll-team-label { margin-left: 8px; }
.badge { 
    font-size: 0.8rem; opacity: 0.8; font-weight: 700; 
    background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 6px; 
}

.hll-card-body { padding: 15px; }


/* --- Commander Box --- */
.hll-commander-box {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cmd-info { display: flex; align-items: center; gap: 10px; }
.cmd-name { font-weight: 800; font-size: 1rem; color: #fff; text-decoration: none; }
.cmd-name:hover { text-decoration: underline; }

.cmd-stats { display: flex; gap: 15px; font-size: 0.85rem; }
.stat-group { display: flex; align-items: center; gap: 4px; }
.stat-group.score { color: var(--hll-gold, #f5d671); font-weight: 800; }
.st-lbl { opacity: 0.6; font-size: 0.75rem; text-transform: uppercase; }
.st-val { font-weight: 700; }


/* --- Squad Box --- */
.hll-squad-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Squad Head */
.hll-squad-head {
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sq-name { color: var(--hll-gold, #f5d671); font-weight: 800; font-size: 0.9rem; }
.sq-type { font-size: 0.75rem; text-transform: uppercase; opacity: 0.5; margin-left: 8px; }
.sq-sl { font-size: 0.8rem; opacity: 0.8; }
.sq-sl .icon { font-size: 0.7rem; }

/* --- Squad Grid Table (The Complex Part) --- */
.hll-squad-grid {
    display: grid;
    /* Slot | Name | Lvl | K | D | C | O | Def | S | Score */
    grid-template-columns: 35px 3fr 30px 25px 25px 25px 25px 25px 25px 40px;
    gap: 4px;
    padding: 6px 12px;
    align-items: center;
    font-size: 0.85rem;
}

/* Header Row */
.hll-squad-grid.header {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-top: 8px; padding-bottom: 8px;
}

/* Data Row */
.hll-squad-grid.row {
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.1s;
}
.hll-squad-grid.row:last-child { border-bottom: none; }
.hll-squad-grid.row:hover { background: rgba(255,255,255,0.04); }

/* Columns Styling */
.col-slot { display: flex; justify-content: center; }
.col-name a { 
    color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.col-name a:hover { color: #fff; text-decoration: underline; }

.col-stat { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.col-stat.lvl { opacity: 0.5; font-weight: 400; font-size: 0.75rem; }
.col-stat.muted { opacity: 0.4; font-weight: 400; font-size: 0.8rem; }
.col-stat.text-red { color: #ff8a8a; }

.col-score { text-align: right; font-weight: 800; color: var(--hll-gold, #f5d671); }


/* Badges */
.role-badge {
    font-size: 0.65rem; font-weight: 900;
    width: 28px; text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px; padding: 2px 0;
    color: rgba(255,255,255,0.7);
    display: inline-block;
}
.role-badge.sl { 
    background: rgba(255,255,255,0.25); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.3); 
}
.role-badge.cmd { 
    background: var(--hll-gold, #f5d671); 
    color: #000; width: 34px; 
}

.lvl-badge { 
    background: #000; color: #fff; font-size: 0.7rem; 
    padding: 1px 4px; border-radius: 4px; margin-right: 4px; 
}

/* Mobile Responsive */
@media (max-width: 600px) {
    /* Hide detailed stats on small screens to fit layout */
    .hll-squad-grid {
        grid-template-columns: 30px 1fr 30px 30px 30px 40px; 
        /* Slot | Name | Lvl | K | D | Score */
    }
    .col-stat.muted { display: none; } /* Hide C/O/D/S */
    
    .hll-squad-grid.header .col-stat.muted { display: none; }
}