/* =========================================================
   STATHUT v2 — shared dark esports design system
   Used by: index.html, fwa/index.html, mwl/index.html,
            general/index.html
   ========================================================= */

:root {
  --bg:            #0a0e1a;
  --surface:       #131a2b;
  --surface-2:     #1a2338;
  --border:        rgba(148,163,184,.14);
  --text:          #f1f5f9;
  --text-dim:      #94a3b8;

  --accent-brand:  #60a5fa;
  --accent-mwl:    #ff2740;
  --accent-mwl-2:  #b3001b;
  --accent-fwa:    #ff9c2a;
  --accent-fwa-2:  #ff6b00;
  --accent-gen:    #2dd4bf;
  --accent-gen-2:  #16a34a;

  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

body.sh2 {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(96,165,250,.12), transparent),
    radial-gradient(1000px 500px at 100% 0%, rgba(192,132,252,.10), transparent),
    var(--bg);
}

.sh2-font-display { font-family: "Orbitron", "Segoe UI", sans-serif; }

/* ---------- topbar ---------- */
.sh2-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(10,14,26,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.sh2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.sh2-logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-brand), var(--accent-mwl));
  box-shadow: 0 0 12px var(--accent-brand);
}

.sh2-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sh2-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sh2-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: .2s;
  white-space: nowrap;
}

.sh2-nav a:hover, .sh2-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ---------- hero ---------- */
.sh2-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 30px;
  text-align: center;
}

.sh2-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-brand);
  background: rgba(96,165,250,.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.sh2-hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 52px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: 1px;
}

.sh2-hero p {
  font-size: 16.5px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- section cards (used on home + fwa hub) ---------- */
.sh2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 24px;
}

.sh2-card {
  position: relative;
  display: block;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-brand);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease;
}

.sh2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}

.sh2-card .badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #0a0e1a;
  margin-bottom: 16px;
  background: var(--accent-brand);
  overflow: hidden;
}

.sh2-card .badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh2-card.fwa     { border-top-color: var(--accent-fwa); }
.sh2-card.fwa .badge     { background: linear-gradient(135deg, var(--accent-fwa), var(--accent-fwa-2)); }
.sh2-card.mwl     { border-top-color: var(--accent-mwl); }
.sh2-card.mwl .badge     { background: linear-gradient(135deg, var(--accent-mwl), var(--accent-mwl-2)); }
.sh2-card.gen     { border-top-color: var(--accent-gen); }
.sh2-card.gen .badge     { background: linear-gradient(135deg, var(--accent-gen), var(--accent-gen-2)); }

.sh2-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: .4px;
}

.sh2-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 14px;
  line-height: 1.6;
}

.sh2-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.sh2-tag.live  { color: #34d399; background: rgba(52,211,153,.14); }
.sh2-tag.maint { color: #fbbf24; background: rgba(251,191,36,.14); }
.sh2-tag.soon  { color: #93c5bd; background: rgba(147,197,253,.14); }

/* ---------- generic content section ---------- */
.sh2-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  scroll-margin-top: 90px;
}

.sh2-section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  margin: 0 0 6px;
}

.sh2-section .sub {
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 13.5px;
}

/* ---------- tile grid (troops/spells/pets/heroes) ---------- */
.sh2-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.sh2-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.sh2-tile img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sh2-tile span {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- town hall strip ---------- */
.sh2-th-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.sh2-th-strip .th-item {
  flex: 0 0 auto;
  text-align: center;
}

.sh2-th-strip img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface);
  padding: 8px;
  border: 1px solid var(--border);
}

.sh2-th-strip span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 700;
}

/* ---------- info cards (strategy/CWL/etc) ---------- */
.sh2-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.sh2-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sh2-info-card h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--accent-gen);
}

.sh2-info-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ---------- misc ---------- */
.sh2-footer {
  text-align: center;
  padding: 28px;
  color: var(--text-dim);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}

.sh2-footer a { color: var(--accent-brand); text-decoration: none; }

.sh2-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}

.sh2-back:hover { color: var(--text); }

.sh2-maint-icon { font-size: 52px; margin-bottom: 14px; }

/* ---------- live war status banner (home/hub pages) ---------- */
.sh2-warbar {
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 0 24px;
}

.sh2-warbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-fwa);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.sh2-warbar.mwl .sh2-warbar-inner  { border-left-color: var(--accent-mwl); }
.sh2-warbar.gen .sh2-warbar-inner  { border-left-color: var(--accent-gen); }

.sh2-warbar-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 rgba(52,211,153,.6);
  animation: sh2PulseRing 1.8s infinite;
  flex-shrink: 0;
}

@keyframes sh2PulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.sh2-warbar-main {
  flex: 1 1 280px;
  min-width: 0;
}

.sh2-warbar-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.sh2-warbar-headline {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.sh2-warbar-headline strong { color: var(--accent-fwa); }
.sh2-warbar.mwl .sh2-warbar-headline strong { color: var(--accent-mwl); }
.sh2-warbar.gen .sh2-warbar-headline strong { color: var(--accent-gen); }

.sh2-warbar-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sh2-warbar-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

.sh2-warbar-chip.hot   { color: #34d399; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.sh2-warbar-chip.warn  { color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1); }

.sh2-warbar-cta {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #0a0e1a;
  background: linear-gradient(135deg, var(--accent-fwa), var(--accent-fwa-2));
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sh2-warbar.mwl .sh2-warbar-cta { background: linear-gradient(135deg, var(--accent-mwl), var(--accent-mwl-2)); color: #fff; }
.sh2-warbar.gen .sh2-warbar-cta { background: linear-gradient(135deg, var(--accent-gen), var(--accent-gen-2)); color: #0a0e1a; }

.sh2-warbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

@media (max-width: 700px) {
  .sh2-topbar { flex-direction: column; align-items: flex-start; }
  .sh2-nav { justify-content: flex-start; }
  .sh2-hero h1 { font-size: 38px; }
  .sh2-warbar-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .sh2-warbar-chips { justify-content: center; }
}
