/* LoadoutLab — Warzone Loadout Site
   Dark military theme with neon accents */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2b42;
  --bg-surface: #151d2e;
  --border: #2a3650;
  --border-glow: #3b82f6;
  --text-primary: #e8edf5;
  --text-secondary: #8899b4;
  --text-muted: #5a6a85;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59,130,246,0.3);
  --neon-green: #22d3ee;
  --neon-cyan: #06b6d4;
  --tier-s: #f59e0b;
  --tier-a: #3b82f6;
  --tier-b: #8b5cf6;
  --tier-c: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(59,130,246,0.15);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--neon-cyan); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.site-header {
  background: linear-gradient(180deg, rgba(17,24,39,0.98) 0%, rgba(10,14,23,0.95) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo span { color: var(--accent-bright); }
.logo .dot { color: var(--neon-green); }

nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }

nav a {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.813rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
  background: rgba(59,130,246,0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, #0f1729 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 .highlight { color: var(--accent-bright); }

.hero .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero .meta-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero .meta-date .pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── FILTERS ── */
.filters {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.filter-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 8px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.813rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-right: 4px;
}

.filter-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 8px;
}

/* ── LOADOUT GRID ── */
.loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
}

@media (max-width: 1024px) {
  .loadout-grid { grid-template-columns: repeat(2, 1fr); }
}

.loadout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.loadout-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card-header {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-weapon-info { flex: 1; }

.card-weapon-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-weapon-class {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.card-tier {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.tier-s { background: rgba(245,158,11,0.15); color: var(--tier-s); border: 1px solid rgba(245,158,11,0.3); }
.tier-a { background: rgba(59,130,246,0.15); color: var(--tier-a); border: 1px solid rgba(59,130,246,0.3); }
.tier-b { background: rgba(139,92,246,0.15); color: var(--tier-b); border: 1px solid rgba(139,92,246,0.3); }
.tier-c { background: rgba(107,114,128,0.15); color: var(--tier-c); border: 1px solid rgba(107,114,128,0.3); }

.card-image {
  height: 120px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image img {
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.card-image .weapon-silhouette {
  font-size: 3rem;
  opacity: 0.15;
  color: var(--accent);
}

.card-body { padding: 12px 16px 16px; flex: 1; display: flex; flex-direction: column; }

.card-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.card-stat {
  text-align: center;
}

.card-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 0.688rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.card-mode { color: var(--neon-green); font-weight: 600; }
.card-updated { color: var(--text-muted); }

/* ── STAT BARS ── */
.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.stat-bar-label {
  font-size: 0.813rem;
  color: var(--text-secondary);
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
}

.stat-bar-fill.high { background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); }
.stat-bar-fill.mid { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.stat-bar-fill.low { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }

.stat-bar-value {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
}

/* ── LOADOUT DETAIL PAGE ── */
.loadout-detail {
  padding: 32px 0;
}

.loadout-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.loadout-hero-image {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.loadout-hero-image img { max-height: 200px; object-fit: contain; }

.loadout-hero-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.loadout-hero-info .weapon-class {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.loadout-hero-info .bestfor {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.score-number { color: var(--accent-bright); }

/* ── ATTACHMENTS TABLE ── */
.attachments-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon { color: var(--accent-bright); }

.attachment-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background 0.15s;
}

.attachment-row:last-child { border-bottom: none; }
.attachment-row:hover { background: var(--bg-surface); }

.attachment-slot {
  font-size: 0.688rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 80px;
  padding-top: 2px;
  font-weight: 600;
}

.attachment-info { flex: 1; }

.attachment-name {
  font-weight: 600;
  font-size: 0.938rem;
  margin-bottom: 2px;
}

.attachment-why {
  font-size: 0.813rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── CONTENT SECTIONS ── */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--accent-bright);
}

.content-block p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── TIER LIST ── */
.tier-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.tier-label {
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px;
}

.tier-label.s-label { background: rgba(245,158,11,0.15); color: var(--tier-s); }
.tier-label.a-label { background: rgba(59,130,246,0.15); color: var(--tier-a); }
.tier-label.b-label { background: rgba(139,92,246,0.15); color: var(--tier-b); }
.tier-label.c-label { background: rgba(107,114,128,0.15); color: var(--tier-c); }

.tier-items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  align-items: center;
}

.tier-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

.tier-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  color: var(--accent-bright);
}

/* ── COMPARE ── */
.compare-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 24px 0;
}

.compare-weapon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.compare-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 16px;
}

.compare-select option { background: var(--bg-card); }

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot.banner { min-height: 90px; }
.ad-slot.sidebar { min-height: 250px; }
.ad-slot.rectangle { min-height: 250px; max-width: 336px; margin: 16px auto; }
.ad-slot.leaderboard { min-height: 90px; }

/* ── AFFILIATE SECTIONS ── */
.affiliate-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.affiliate-banner .aff-content { flex: 1; }

.affiliate-banner h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.affiliate-banner p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.affiliate-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-block;
}

.affiliate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  color: #fff;
}

.affiliate-btn.nordvpn {
  background: linear-gradient(135deg, #4687ff 0%, #3461d1 100%);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.gear-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gear-card .gear-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.gear-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.gear-card .gear-price {
  color: var(--neon-green);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.gear-card p {
  color: var(--text-secondary);
  font-size: 0.813rem;
  margin-bottom: 12px;
}

/* ── RANDOM LOADOUT BUTTON ── */
.random-btn {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.random-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ── COPY BUTTON ── */
.copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.813rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover { border-color: var(--accent); color: var(--text-primary); }

.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 8px; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.813rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.813rem;
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.813rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; }

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: var(--accent-bright);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--success);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 0.95rem; }

  .loadout-grid { grid-template-columns: 1fr; }

  .loadout-hero { grid-template-columns: 1fr; }
  .loadout-hero-image { min-height: 180px; }

  .compare-container { grid-template-columns: 1fr; }
  .compare-vs {
    padding: 8px;
    font-size: 1.5rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }

  .mobile-menu-btn { display: block; }

  .affiliate-banner { flex-direction: column; text-align: center; }

  .gear-grid { grid-template-columns: 1fr; }

  .filter-separator { display: none; }

  .tier-row { flex-direction: column; }
  .tier-label { min-width: unset; padding: 8px; }

  .card-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 1.5rem; }
  .header-inner { height: 52px; }
  .logo { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* Weapon Images */
.weapon-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(59,130,246,0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.loadout-card:hover .weapon-img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(59,130,246,0.4));
}

.weapon-hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(59,130,246,0.3));
}

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(6,182,212,0.05));
  border-radius: var(--radius);
  margin: 8px 0;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown .dropdown-trigger {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-dropdown .dropdown-trigger:hover {
  color: var(--text-primary);
  background: rgba(59,130,246,0.1);
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover {
  background: rgba(59,130,246,0.1);
  color: var(--accent-bright);
  padding-left: 20px;
}

@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 16px;
  }
}
