/* =========================================================
   FANTASY MATCH: THE SHATTERED REALMS
   Character, Enemy Frames, HP Bars & Status Badges
   ========================================================= */

/* HP & Shield Bars */
.fighter-info-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2px;
  overflow: visible;
  flex-shrink: 0;
}

.fighter-name {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  line-height: 1.2;
}

.fighter-name > span:first-child,
#enemy-name {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.68rem, 2.2vw, 0.76rem);
  letter-spacing: 0.3px;
  display: block;
}

.fighter-title-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 71, 87, 0.35);
  border: 1px solid #ff4757;
  color: #ff6b81;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-top: 1px;
}

.hp-bar-outer {
  position: relative;
  width: 100%;
  height: 14px;
  background: #1e1728;
  border: 2px solid #3c2f4d;
  border-radius: 7px;
  overflow: hidden;
  margin-top: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.hp-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #e74c3c, #2ecc71);
  width: 100%;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.player-hp .hp-bar-fill {
  background: linear-gradient(to right, #00b894, #55efc4);
}

.enemy-hp .hp-bar-fill {
  background: linear-gradient(to right, #c0392b, #e74c3c);
}

/* Shield Overlay on HP bar */
.shield-bar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(241, 196, 15, 0.85);
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.9);
  width: 0%;
  transition: width 0.3s ease;
  pointer-events: none;
}

.hp-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

/* Status Badges */
.status-badges-container {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  min-height: 18px;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: pulseGlow 1.4s infinite alternate;
}

.status-badge.burn {
  background: rgba(230, 126, 34, 0.8);
  border: 1px solid #d35400;
  color: #fff;
}

.status-badge.frozen {
  background: rgba(52, 152, 219, 0.85);
  border: 1px solid #74b9ff;
  color: #fff;
}

.status-badge.poison {
  background: rgba(46, 204, 113, 0.8);
  border: 1px solid #27ae60;
  color: #fff;
}

.status-badge.shield {
  background: rgba(241, 196, 15, 0.85);
  border: 1px solid #f39c12;
  color: #1e1102;
}

/* Character Stats Panel (In Modal) */
.character-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.stat-card {
  background: #251e33;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.stat-value.gold { color: var(--gold); }
.stat-value.health { color: #2ecc71; }
.stat-value.attack { color: #ff7675; }
.stat-value.magic { color: #74b9ff; }
.stat-value.defense { color: #ffeaa7; }
.stat-value.crit { color: #f39c12; }

