/* ══════════════════════════════════════
   NOXUS — module-empire.css
   Styles du module Empire / Production
   ══════════════════════════════════════ */

#module-empire {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#module-empire.active { display: flex; }

/* ── HEADER ── */
.empire-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border-gold);
  flex-shrink: 0;
  position: relative;
}

.empire-header::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, var(--crimson), transparent);
}

.empire-header-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.empire-header-sub {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}

/* ── BARRE MAIN-D'ŒUVRE GLOBALE ── */
.empire-mo-section {
  padding: 12px 24px;
  background: var(--stone-mid);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.empire-mo-title {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.empire-mo-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
  display: flex;
}

.empire-mo-bar-fill {
  height: 100%;
  background: var(--gold-dim);
  border-radius: 3px 0 0 3px;
  transition: width 0.4s ease;
}

.empire-mo-bar-army {
  height: 100%;
  background: #B22222;
  transition: width 0.4s ease;
}

.empire-mo-bar-deploy {
  height: 100%;
  background: #FF3333;
  transition: width 0.4s ease;
}

.empire-mo-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ── LISTE DES BÂTIMENTS ── */
.empire-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empire-list::-webkit-scrollbar { width: 4px; }
.empire-list::-webkit-scrollbar-thumb { background: var(--border); }

/* ── CARTE BÂTIMENT ── */
.empire-bat-card {
  background: var(--stone-mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.empire-bat-card:hover { border-color: var(--border-gold); }

.empire-bat-inactive {
  opacity: 0.4;
  pointer-events: none;
}

.empire-bat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.empire-bat-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.empire-bat-nom {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.empire-bat-niveau {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── SLIDER ROW ── */
.empire-bat-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.empire-bat-pct {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  min-width: 44px;
  text-align: right;
}

.empire-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.empire-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slider-color, var(--gold));
  border: 2px solid var(--stone-panel);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}

.empire-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ── STATS ── */
.empire-bat-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.empire-stat-col {
  flex: 1;
  text-align: center;
}

.empire-stat-label {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.empire-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
}

.empire-stat-value.alerte { color: var(--crimson-light); }

.empire-stat-max {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
}

.empire-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── BARRE DE PROGRESSION ── */
.empire-bat-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.empire-bat-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  opacity: 0.7;
}