/* ===========================
   UI Components
   =========================== */

/* Turn Indicator */
#turnIndicator {
  text-align: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1em;
  letter-spacing: 2px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
}

.turn-player {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(93,200,255,0.5);
}

.turn-enemy {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255,93,93,0.5);
}

/* Stat Cards */
.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.stat-card.player-card {
  border-left: 4px solid var(--blue);
}

.stat-card.enemy-card {
  border-left: 4px solid var(--red);
}

.stat-card h3 {
  margin: 0 0 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95em;
}

/* Bars */
.bar-row {
  margin-bottom: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.bar-bg {
  height: 10px;
  border-radius: 5px;
  background: #100c18;
  border: 1px solid var(--panel-border);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease;
}

.hp-fill {
  background: linear-gradient(90deg, #7a2020, #e05353);
}

.mag-fill {
  background: linear-gradient(90deg, #3a3a8a, #7d5dff);
}

/* Mini Stats */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  font-size: 0.72em;
  color: var(--text-muted);
  text-align: center;
}

.mini-stats div span {
  display: block;
  color: var(--text-main);
  font-size: 1.1em;
}

/* Distance Readout */
#distanceReadout {
  text-align: center;
  font-size: 0.75em;
  color: var(--text-muted);
}

/* Combat Log */
#log {
  height: 130px;
  overflow-y: auto;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.75em;
  color: var(--text-muted);
  line-height: 1.5;
}

#log div {
  padding: 1px 0;
}

#log div:last-child {
  color: var(--text-main);
}
