/* ==========================================
   TOP HUD BAR & BADGES
   ========================================== */

/* Top HUD Container */
.hud-container {
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
}

/* Left Match Info Block (Asset 3 Style) */
.hud-match-info {
  background: var(--dark-gold);
  border: 2px solid var(--primary-gold);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.match-title {
  color: #000000;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  margin-right: 15px;
  letter-spacing: 1px;
}

.match-map {
  color: var(--pure-white);
  background: var(--bg-black-solid);
  font-weight: 700;
  font-size: 16px;
  padding: 3px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 3px solid var(--primary-gold);
}

/* Top Right Live Stats (Directly mimicking the screenshot) */
.hud-live-stats {
  display: flex;
  gap: 12px;
  height: 48px;
}

.stat-badge {
  background: linear-gradient(135deg, var(--amber-gold) 0%, var(--speed-line-gold) 100%);
  color: #000000;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 900;
  font-size: 22px;
  font-family: var(--font-numbers);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  /* Slanted corners */
  transform: skewX(-12deg);
  border: 1px solid var(--primary-gold);
}

.stat-badge > * {
  /* Un-skew content */
  transform: skewX(12deg);
}

.stat-badge .icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-badge .label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-display);
}

/* ==========================================
   LEFT MINIMAP & ZONE COUNTER
   ========================================== */

/* Minimap container placeholder */
.minimap-panel {
  position: absolute;
  top: 140px;
  left: 50px;
  width: 260px;
  height: 180px;
  background-color: transparent;
  border: 2.5px solid rgba(255, 214, 0, 0.45);
  overflow: hidden;
}

.minimap-image {
  display: none;
}

.minimap-overlay-grid {
  display: none;
}

/* Zone status bar (directly below minimap) */
.zone-status-panel {
  position: absolute;
  top: 330px;
  left: 50px;
  width: 260px;
  height: 38px;
  display: flex;
  gap: 8px;
  font-family: var(--font-display);
}

.zone-counter {
  flex: 1;
  background: var(--speed-line-gold);
  border: 1px solid var(--primary-gold);
  border-radius: 4px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  gap: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.warning-badge {
  flex: 1.2;
  background: #FF5100;
  border: 1px solid #FF8A00;
  border-radius: 4px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  gap: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: warningPulse 1s infinite alternate;
}

.warning-badge.timer-active {
  animation: none;
  background: rgba(13, 13, 13, 0.95);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

@keyframes warningPulse {
  from {
    box-shadow: 0 0 5px rgba(255, 81, 0, 0.5);
    filter: brightness(1);
  }
  to {
    box-shadow: 0 0 15px rgba(255, 81, 0, 0.9);
    filter: brightness(1.2);
  }
}
