/* COD Shop — visual language inspired by callofduty.com/store (demo, not official assets) */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --bg: #030303;
  --bg-raised: #0a0a0a;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --muted-2: #6e6e6e;
  --cta: #fecb00;
  --cta-text: #0a0a0a;
  --cta-hover: #ffd53d;
  --danger: #ff4d4d;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 420px at 50% -20%, rgba(254, 203, 0, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 32%),
    linear-gradient(0deg, #030303, #050505);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* MW2019-style custom scrollbar (vertical + horizontal, global) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 140, 140, 0.78) rgba(8, 8, 8, 0.88);
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(6, 6, 6, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(165, 165, 165, 0.9), rgba(112, 112, 112, 0.88));
  border: 2px solid rgba(10, 10, 10, 0.95);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(195, 195, 195, 0.95), rgba(138, 138, 138, 0.9));
}

*::-webkit-scrollbar-corner {
  background: rgba(8, 8, 8, 0.95);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* Subtle scan / grid overlay (COD.com often uses tactical texture feel) */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(255, 255, 255, 0.06) 2px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.04) 1px,
      rgba(255, 255, 255, 0.04) 2px
    );
}

.site-header,
.hero,
.section,
.game-hero,
.game-body,
.site-footer {
  position: relative;
  z-index: 1;
}

/* COD Store chrome bar — layout matches callofduty.com/store (demo) */
.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  backdrop-filter: blur(12px);
  padding-inline: 14px;
}

.site-header--store {
  background: transparent;
  border-bottom: none;
}

.site-header--store .shell {
  width: min(980px, calc(100% - 140px));
}

.cod-store-bar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(34, 34, 34, 0.96), rgba(16, 16, 16, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    10px 10px 30px rgba(0, 0, 0, 0.62),
    -7px -7px 18px rgba(255, 255, 255, 0.03),
    inset 1px 1px 0 rgba(255, 255, 255, 0.12),
    inset -1px -1px 0 rgba(0, 0, 0, 0.7);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Burger is mobile-only */
@media (min-width: 721px) {
  .nav-menu-btn {
    display: none;
  }
}

.nav-menu-btn:hover,
.nav-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-menu-btn span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-lockup-title {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.brand-lockup-divider {
  font-weight: 300;
  opacity: 0.45;
  font-size: 1rem;
  user-select: none;
}

.brand-lockup-store {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav--store-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-header--store .nav-link,
.site-header--store .dropdown-trigger {
  padding: 8px 9px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header--store .nav-link:hover,
.site-header--store .nav-link:focus-visible,
.site-header--store .dropdown-trigger:hover,
.site-header--store .dropdown-trigger:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-more-btn:hover,
.nav-more-btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.nav-more-dots::before {
  content: "···";
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1rem;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-login:hover,
.nav-login:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.nav-login-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Shared nav bases (hero buttons / panels still use .nav-link elsewhere if needed) */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link.cta {
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.nav-link.cta:hover {
  background: var(--cta-hover);
  color: var(--cta-text);
}

/* Dropdown */
.dropdown-wrap {
  position: relative;
}

.dropdown-trigger {
  cursor: default;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  translate: -50% 8px;
  top: 100%;
  min-width: min(720px, 92vw);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 12, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, translate 0.18s ease;
}

.dropdown-wrap:hover .dropdown-panel,
.dropdown-wrap:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: -50% 0;
}

.dropdown-wrap--games .dropdown-panel {
  left: 0;
  translate: 0 8px;
}

.dropdown-wrap--games:hover .dropdown-panel,
.dropdown-wrap--games:focus-within .dropdown-panel {
  translate: 0 0;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

@media (max-width: 720px) {
  .dropdown-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-panel {
    left: 0;
    translate: 0 8px;
    min-width: min(100%, 420px);
  }

  .dropdown-wrap:hover .dropdown-panel,
  .dropdown-wrap:focus-within .dropdown-panel {
    translate: 0 0;
  }

  .dropdown-wrap--games .dropdown-panel {
    left: 0;
    translate: 0 8px;
  }

  .dropdown-wrap--games:hover .dropdown-panel,
  .dropdown-wrap--games:focus-within .dropdown-panel {
    translate: 0 0;
  }
}

.dropdown-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.dropdown-item strong {
  font-weight: 600;
  color: var(--text);
}

.dropdown-item span {
  font-size: 0.82rem;
  opacity: 0.65;
}

.dropdown-footnote {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
}

/* Hero */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 14px rgba(254, 203, 0, 0.55);
}

.hero h1 {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.btn-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.06);
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: clamp(240px, 40vw, 400px);
  object-fit: cover;
}

.hero-card figcaption {
  padding: 14px 16px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
}

/* Sections */
.section {
  padding: 48px 0 56px;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section p.section-lede {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 68ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.card-meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.card-footer {
  margin-top: auto;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Game landing */
.game-hero {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(1.08);
}

.game-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.2) 0%, rgba(3, 3, 3, 0.75) 55%, var(--bg) 100%);
}

.game-hero-inner {
  position: relative;
  padding: 88px 0 56px;
}

.game-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}

.game-hero .sub {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 60ch;
}

.game-hero .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.72);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-body {
  padding: 40px 0 72px;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
}

@media (max-width: 920px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 20px 22px;
}

.game-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.strike {
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: line-through;
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(5, 5, 5, 0.9);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  align-items: baseline;
}

.muted-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted-link:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .site-header--store .shell {
    width: min(980px, calc(100% - 54px));
  }

  .cod-store-bar {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .nav--store-main {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    padding-bottom: 2px;
  }

  .site-header--store .nav-link,
  .site-header--store .dropdown-trigger {
    font-size: 0.76rem;
    padding-inline: 8px;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    padding-inline: 8px;
  }

  .site-header--store .shell {
    width: min(980px, calc(100% - 16px));
  }

  .cod-store-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    min-height: 0;
    padding-inline: 8px;
  }

  .nav--store-main {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    padding-top: 0;
    border-top: none;
    margin-top: 0;
  }

  .header-right {
    grid-column: 3;
    grid-row: 1;
  }

  .header-left {
    grid-column: 1;
    grid-row: 1;
  }
}
