/* ===== Pingballs.com Modern Redesign ===== */
:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --accent: #e8a838;
  --accent-hover: #f0bc5e;
  --green: #2d8a56;
  --green-light: #3aaa6a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --surface: #1a2744;
  --surface-hover: #223358;
  --border: #2a3f5f;
  --white: #ffffff;
  --red-rare: #ef4444;
  --orange-rare: #f97316;
  --yellow-rare: #eab308;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--surface);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown:hover > a .chevron,
.nav-dropdown:focus-within > a .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  padding-top: calc(0.5rem + 8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  margin-top: 0;
}

/* Invisible bridge that covers the gap between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--surface-hover);
  color: var(--white);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #f0bc5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Section ===== */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Page Header ===== */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(232, 168, 56, 0.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Content Page ===== */
.content {
  max-width: 860px;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content ul, .content ol {
  color: var(--text-muted);
  margin: 0 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content a.btn {
  text-decoration: none;
}

.content a.btn-primary {
  color: var(--navy);
}

.content a.btn-secondary {
  color: var(--text);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-item h3::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 2.5rem;
}

/* ===== Colors/Values Table ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.table-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.table-controls input,
.table-controls select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.table-controls input {
  flex: 1;
  min-width: 200px;
}

.table-controls input::placeholder {
  color: var(--text-muted);
}

.table-controls input:focus,
.table-controls select:focus {
  outline: none;
  border-color: var(--accent);
}

.values-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.values-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.values-table th {
  background: var(--navy-light);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
}

.values-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.values-table tbody tr:hover {
  background: var(--surface-hover);
}

.values-table tbody tr:hover td {
  color: var(--text);
}

.rarity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.rarity-1, .rarity-2, .rarity-3 { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.rarity-4, .rarity-5 { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.rarity-6, .rarity-7 { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.rarity-8, .rarity-9 { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.rarity-10 { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.value-cell {
  font-weight: 600;
  color: var(--text) !important;
  font-variant-numeric: tabular-nums;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.2s;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Collector Cards ===== */
.collector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.collector-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.collector-card .location {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.collector-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Principles List ===== */
.principles-list {
  list-style: none;
  padding: 0;
  counter-reset: principle;
}

.principles-list li {
  counter-increment: principle;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
  transition: border-color 0.2s;
}

.principles-list li:hover {
  border-color: var(--accent);
}

.principles-list li::before {
  content: counter(principle);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Nike Section ===== */
.nike-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.nike-section img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.nike-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.nike-info-box ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.nike-info-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.nike-info-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1001;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  opacity: 0.7;
  transition: all 0.2s;
  z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links > li {
    display: block;
    width: 100%;
  }

  .nav-links a {
    display: block;
    text-align: left;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 0.75rem;
    min-width: 0;
    padding-top: 0;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

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

  .nav-dropdown-divider {
    display: none;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .nike-section {
    grid-template-columns: 1fr;
  }

  .values-table {
    font-size: 0.8rem;
  }

  .values-table th,
  .values-table td {
    padding: 0.6rem 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
