/* =========================================================
   Brennholz Server Status (HLL) - Player Profile (V2)
   ========================================================= */

.hll-player-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: inherit;
  color: var(--hll-text, #fff);
  box-sizing: border-box;
}

.hll-player-profile * {
  box-sizing: border-box;
}

/* --- HERO SECTION --- */
.hll-prof-hero {
  background: linear-gradient(135deg, var(--hll-surface, #151e32) 0%, rgba(10,10,10,1) 100%);
  border: 1px solid var(--hll-line, rgba(255,255,255,0.1));
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hll-prof-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hll-back-btn {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.hll-back-btn:hover { color: #fff; }

.hll-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.hll-status-pill.live { background: rgba(25, 211, 122, 0.2); color: #9effc4; border: 1px solid rgba(25,211,122,0.3); }
.hll-status-pill.match { background: rgba(98, 168, 255, 0.2); color: #a8d0ff; border: 1px solid rgba(98,168,255,0.3); }

.hll-prof-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hll-avatar-area {
  position: relative;
  flex-shrink: 0;
}

.prof-avatar {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  background: #000;
  object-fit: cover;
}

.prof-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: rgba(255,255,255,0.3);
}

.prof-level {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--hll-gold, #f5d671);
  color: #000;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hll-identity {
  flex: 1;
  min-width: 200px;
}

.prof-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.prof-clan {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-right: 6px;
}

.prof-country {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.6;
}

.hll-kd-big {
  background: rgba(0,0,0,0.3);
  padding: 10px 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.hll-kd-big .val {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--hll-gold, #f5d671);
  line-height: 1;
}

.hll-kd-big .lbl {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- STATS GRID (8 Items) --- */
.hll-stats-grid {
  display: grid;
  /* Desktop: 4 Spalten für perfekte 4x2 Symmetrie */
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* Tablet: 2x4 */
@media (max-width: 900px) {
  .hll-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1x8 */
@media (max-width: 500px) {
  .hll-stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.05); }

.stat-card .icon {
  font-size: 1.5rem;
  opacity: 0.8;
  width: 30px; 
  text-align: center;
}

.stat-card .info {
  display: flex;
  flex-direction: column;
}

.stat-card .val {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat-card .lbl {
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
}

.text-green { color: #aeffa8; }
.text-red { color: #ff8a8a; }
.text-gold { color: var(--hll-gold, #f5d671); }

/* --- SCORE BREAKDOWN (4 Items) --- */
.hll-score-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .hll-score-breakdown { grid-template-columns: 1fr 1fr; }
}

.score-seg {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.score-seg .s-lbl {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.score-seg .s-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 2px;
  position: relative;
  z-index: 2;
}

.score-seg .s-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  transition: width 0.5s;
}

.score-seg.combat .s-bar { background: #ff6b6b; }
.score-seg.offense .s-bar { background: #ffbd6b; }
.score-seg.defense .s-bar { background: #6bffa1; }
.score-seg.support .s-bar { background: #6bc4ff; }

/* --- LISTS GRID (6 Items) --- */
.hll-lists-grid {
  display: grid;
  /* Desktop: 3 Spalten (ergibt bei 6 Items schön 2 Reihen) */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tablet: 2 Spalten */
@media (max-width: 1000px) {
  .hll-lists-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 Spalte */
@media (max-width: 650px) {
  .hll-lists-grid { grid-template-columns: 1fr; }
}

.hll-list-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-list-card h3 {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

.hll-scroll-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

/* Scrollbar Anpassung für Webkit Browser */
.hll-scroll-list::-webkit-scrollbar {
    width: 6px;
}
.hll-scroll-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1); 
}
.hll-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1); 
    border-radius: 3px;
}
.hll-scroll-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2); 
}

.hll-empty-s {
  padding: 20px;
  text-align: center;
  opacity: 0.5;
  font-style: italic;
  font-size: 0.9rem;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  position: relative;
  font-size: 0.9rem;
}

/* Background Bar for Lists */
.list-row .bg-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  z-index: 1;
}

.list-row .bg-bar.red {
  background: rgba(255, 107, 107, 0.15);
}

.list-row .row-name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}

.list-row .row-val {
  position: relative;
  z-index: 2;
  font-weight: 900;
  color: var(--hll-gold, #f5d671);
}

/* --- VIP Badge Ergänzung --- */
.hll-prof-badges {
    display: flex;
    gap: 8px;
}

.hll-status-pill.vip {
    background: linear-gradient(90deg, #f5d671, #d4af37);
    color: #000;
    font-weight: 900;
    border: none;
    box-shadow: 0 0 10px rgba(245, 214, 113, 0.3);
}

/* --- Sub-Headline (Rolle & Einheit) --- */
.prof-subdata {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prof-subdata strong {
    color: var(--hll-gold, #f5d671);
}

.prof-sep {
    opacity: 0.3;
}