/* =============================
   DEFQON WARS PAGE
   File: CSS/DefqonWars.css
   ============================= */

.defqonWarsPage {
  --dw-red: #ff2a1f;
  --dw-orange: #ff8a00;
  --dw-amber: #ffd166;
  --dw-metal: #b8c0c8;
  --dw-dark: #090b10;
  --dw-card: rgba(9, 12, 18, 0.64);
  --dw-card-strong: rgba(18, 22, 30, 0.92);
  --dw-border: rgba(255, 138, 0, 0.28);
  --dw-border-soft: rgba(255, 255, 255, 0.075);
  --dw-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  --dw-font: "Orbitron", sans-serif;
}

/* =============================
   BACKGROUND
   ============================= */

.defqonWarsPage .bg__nebula {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 42, 31, 0.18), transparent 32%),
    radial-gradient(circle at 70% 35%, rgba(255, 138, 0, 0.14), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(120, 120, 120, 0.08), transparent 45%);
}

.defqonWarsPage .bg__grid {
  opacity: 0.55;
  filter: sepia(0.5) hue-rotate(-20deg);
}

/* =============================
   HERO
   ============================= */

.defqonHeroCard {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--dw-border-soft);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 42, 31, 0.10), transparent 35%),
    linear-gradient(145deg, rgba(15, 20, 31, 0.96), rgba(8, 10, 16, 0.94));
  backdrop-filter: blur(14px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.defqonHeroCard::before,
.defqonHeroCard::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.defqonHeroCard::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 18px
    );
  opacity: 0.55;
}

.defqonHeroCard::after {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.22), transparent 68%);
  filter: blur(12px);
}

.defqonHeroGrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.defqonHeroCopy {
  min-width: 0;
}

.defqonWarsPage .eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 13px;
  border: 1px solid var(--dw-border);
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.08);
  color: var(--dw-amber);
  font-family: var(--dw-font);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.10);
}

.defqonWarsPage .HomepageBody h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 138, 0, 0.28),
    0 0 48px rgba(255, 42, 31, 0.14);
}

.defqonWarsPage .heroText {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(245, 245, 245, 0.88);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.defqonMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 26px;
}

.defqonMeta span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--dw-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.defqonMiniLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* =============================
   HERO LOGO
   ============================= */

.defqonLogoPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 180px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.defqonLogoPanel img {
  display: block;
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.defqonWarsPage .statusBar {
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

/* =============================
   TABS
   ============================= */

.defqonWarsPage .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 12px;
  border: 1px solid var(--dw-border-soft);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(16, 20, 29, 0.92), rgba(9, 12, 18, 0.86));
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.defqonWarsPage .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--dw-font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.defqonWarsPage .tab:hover,
.defqonWarsPage .tab.active {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 138, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(255, 42, 31, 0.10));
  box-shadow: 0 10px 26px rgba(255, 102, 0, 0.12);
}

/* =============================
   TAB PANELS
   ============================= */

.defqonWarsPage .tab-panel {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 22, 30, 0.92), rgba(12, 15, 22, 0.88));
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.defqonWarsPage .tab-panel h2,
.defqonWarsPage .tab-panel h3 {
  font-family: var(--dw-font);
}

.defqonWarsPage .tab-panel p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(240, 240, 240, 0.86);
  line-height: 1.75;
}

.defqonWarsPage .tab-panel ul {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.defqonWarsPage .warning {
  color: var(--dw-amber);
  text-shadow: 0 0 14px rgba(255, 138, 0, 0.28);
}

.defqonWarsPage .glitch {
  text-shadow:
    0 0 12px rgba(255, 138, 0, 0.34),
    2px 0 rgba(255, 42, 31, 0.35),
    -2px 0 rgba(255, 180, 70, 0.25);
}

.defqonWarsPage .finale {
  margin-top: 22px;
  padding: 18px;
  border-left: 3px solid var(--dw-orange);
  border-radius: 16px;
  background: rgba(255, 138, 0, 0.07);
  color: #fff !important;
  font-weight: 800;
}

/* =============================
   SHARED CARDS
   ============================= */

.defqonInfoCard,
.defqonFeatureCard,
.factionCard,
.mediaCard {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 138, 0, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.24)),
    var(--dw-card);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.defqonInfoCard::before,
.defqonFeatureCard::before,
.factionCard::before,
.mediaCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 138, 0, 0.12), transparent 38%, rgba(255, 42, 31, 0.08));
  opacity: 0.8;
}

.defqonInfoCard > *,
.defqonFeatureCard > *,
.factionCard > *,
.mediaCard > * {
  position: relative;
  z-index: 2;
}

/* =============================
   OVERVIEW
   ============================= */

.defqonInfoGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.defqonInfoCard {
  padding: 18px;
}

.defqonInfoCard h3 {
  margin: 0 0 8px;
  color: var(--dw-amber);
  font-size: 18px;
  text-transform: uppercase;
}

.defqonInfoCard p {
  margin: 0;
  font-size: 14px;
}

/* =============================
   FACTIONS
   ============================= */

.factionGrid {
  display: grid;
  grid-template-columns:repeat(3, minmax(320px, 360px));
  justify-content:center;
  gap: 18px;
  margin-top: 22px;
}

.factionCard {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 10px;
  width:100%;
  margin:0 auto;
  min-height: 330px;
  padding: 22px;
}

#factions .factionGrid{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:24px;
  width:100%;
  margin:26px auto 0;
}

#factions .factionCard{
  flex:0 1 350px;
  max-width:350px;
  min-width:0;
  margin:0;
  align-items:center;
  text-align:center;
}

#factions .factionCard h3,
#factions .factionCard p,
#factions .factionQuote,
#factions .factionTag{
  width:100%;
  max-width:280px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

#factions .factionLogoBox{
  width:100%;
  max-width:270px;
  height:230px;

  display:flex;
  align-items:center;
  justify-content:center;

  margin-left:auto;
  margin-right:auto;
  padding:0;
}

#factions .factionLogoBox img{
  display:block;
  margin:0 auto;

  width:auto;
  height:auto;

  max-width:240px;
  max-height:140px;

  object-fit:contain;
}

.factionLogoBox {
  display: grid;
  place-items: center;
  min-height: 132px;
  min-width: auto;
  margin: 0 auto 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(0, 0, 0, 0.18);
}

.factionLogoBox img {
  display: block;
  max-width: 300px;
  max-height: 300px;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

.factionTag {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--dw-font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.factionCard h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  text-transform: uppercase;
}

.factionQuote {
  margin: 0 0 16px;
  color: var(--dw-amber) !important;
  font-weight: 800;
}

.factionCard.edf {
  border-color: rgba(80, 170, 255, 0.32);
}

.factionCard.edf .factionTag {
  color: #9ed7ff;
  border: 1px solid rgba(80, 170, 255, 0.32);
  background: rgba(80, 170, 255, 0.10);
}

.factionCard.god {
  border-color: rgba(255, 42, 31, 0.42);
}

.factionCard.god .factionTag {
  color: #ff8a80;
  border: 1px solid rgba(255, 42, 31, 0.38);
  background: rgba(255, 42, 31, 0.12);
}

.factionCard.continuum {
  border-color: rgba(184, 192, 200, 0.34);
}

.factionCard.continuum .factionTag {
  color: #e4ecff;
  border: 1px solid rgba(184, 192, 200, 0.34);
  background: rgba(184, 192, 200, 0.10);
}

/* =============================
   FEATURES / RESOURCES
   ============================= */

.defqonFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}

.defqonFeatureCard {
  padding: 20px;
}

.defqonFeatureCard h3 {
  margin: 0 0 10px;
  color: var(--dw-amber);
  font-size: 17px;
  text-transform: uppercase;
}

.defqonFeatureCard p {
  margin: 0;
  font-size: 14px;
}

.resourceGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.resourcePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--dw-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.12), rgba(255, 42, 31, 0.08)),
    rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--dw-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.08);
}

/* =============================
   MEDIA
   ============================= */

.mediaGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mediaCard {
  margin: 0;
  padding: 14px;
}

.mediaCard img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.16), transparent 60%),
    rgba(0, 0, 0, 0.30);
}

.mediaCard figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--dw-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* =============================
   TWO COLUMN BLOCKS
   ============================= */

.defqonWarsPage .two-col {
  gap: 18px;
}

.defqonWarsPage .col {
  text-align: center;
  border-color: rgba(255, 138, 0, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.22)),
    rgba(10, 12, 18, 0.62);
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 980px) {
  .defqonHeroGrid,
  .factionGrid,
  .defqonFeatureGrid,
  .mediaGrid {
    grid-template-columns: 1fr;
  }

  .defqonLogoPanel {
    margin: 0 auto;
  }

  .defqonInfoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .defqonInfoGrid {
    grid-template-columns: 1fr;
  }

  .defqonMeta span,
  .resourcePill {
    width: 100%;
  }

  .defqonLogoPanel {
    width: 190px;
    height: 150px;
    border-radius: 20px;
  }

  .defqonLogoPanel img {
    max-width: 120px;
    max-height: 76px;
  }

  .factionCard,
  .defqonFeatureCard,
  .defqonInfoCard,
  .mediaCard {
    border-radius: 18px;
  }
}
