/* ==========================================================================
   55 Club — Components
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-300);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--color-primary);
  color: #0a0a0a;
  box-shadow: 0 6px 20px -6px var(--color-glow);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.08); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--color-text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--fs-200); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 9, 9, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-400);
  letter-spacing: -0.01em;
}
.brand .brand-mark { width: 34px; height: 34px; }
.brand .brand-suffix { color: var(--color-primary); }

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-main a {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  padding-block: 0.4rem;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--color-text); }
.nav-main a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-outline { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(9,9,9,0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: var(--sp-4) var(--sp-3);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-500);
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .mobile-actions { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7) var(--sp-6);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--color-glow) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--sp-6);
}
.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  margin-bottom: var(--sp-3);
}
.hero-copy .badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-copy h1 {
  margin-bottom: var(--sp-3);
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy h1 span { color: var(--color-primary); -webkit-text-fill-color: var(--color-primary); }
.hero-copy .lead {
  font-size: var(--fs-400);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-bottom: var(--sp-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.trust-badges .badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-200);
  color: var(--color-text-secondary);
}
.trust-badges svg { width: 18px; height: 18px; color: var(--color-primary); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .glow-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-glow) 0%, transparent 72%);
  filter: blur(6px);
}
.hero-art svg { position: relative; width: 100%; max-width: 460px; }
.floating-coin {
  position: absolute;
  animation: float 5s ease-in-out infinite;
}
.floating-coin.c2 { animation-delay: 1.2s; }
.floating-coin.c3 { animation-delay: 2.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------- Stats ---------- */
.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 800;
  color: var(--color-primary);
}
.stat-card .label { color: var(--color-text-secondary); font-size: var(--fs-200); margin-top: 4px; }

/* ---------- Cards ---------- */
.feature-card, .game-card, .article-card, .review-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.feature-card:hover, .game-card:hover, .article-card:hover, .review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-border-strong);
}

.feature-card { padding: var(--sp-4); }
.feature-card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.feature-card h3 { margin-bottom: var(--sp-1); }

.game-card { overflow: hidden; }
.game-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--color-bg-secondary), #0d0d0d);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.game-card .thumb svg { width: 56%; height: 56%; }
.game-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(9,9,9,0.7);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--fs-100);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.game-card .body { padding: var(--sp-3); }
.game-card h3 { font-size: var(--fs-400); margin-bottom: 4px; }

.article-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(150deg, var(--color-bg-secondary), #0d0d0d);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.article-card .body { padding: var(--sp-3); }
.article-card .meta { font-size: var(--fs-100); color: var(--color-text-muted); margin-bottom: 6px; }
.article-card h3 { font-size: var(--fs-400); margin-bottom: 8px; }

/* ---------- FAQ Accordion ---------- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-400);
}
.faq-question .icon-plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.faq-item[open] .faq-question .icon-plus { transform: rotate(45deg); background: var(--color-primary); border-color: var(--color-primary); }
.faq-answer { padding: 0 0 var(--sp-3); color: var(--color-text-secondary); max-width: 68ch; }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-block: var(--sp-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-100); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-border-strong); }
.breadcrumb li[aria-current] { color: var(--color-text-secondary); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.14), rgba(var(--color-primary-rgb), 0.02));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
}
.cta-banner h2 { margin-bottom: var(--sp-2); }
.cta-banner p { color: var(--color-text-secondary); margin-bottom: var(--sp-3); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Newsletter ---------- */
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
.newsletter form { display: flex; gap: var(--sp-1); flex: 1; max-width: 420px; }
.newsletter input[type="email"] {
  flex: 1;
  background: #0c0c0c;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.1rem;
  color: var(--color-text);
}
@media (max-width: 780px) { .newsletter { flex-direction: column; align-items: stretch; } .newsletter form { max-width: none; } }

/* ---------- Related links / posts ---------- */
.related-links ul { display: grid; gap: var(--sp-1); }
.related-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.related-links a:hover { border-color: var(--color-border-strong); background: rgba(var(--color-primary-rgb),0.06); }
.related-links a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
}
.footer-col h3 { font-size: var(--fs-200); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--color-text-secondary); font-size: var(--fs-200); }
.footer-col a:hover { color: var(--color-primary); }
.footer-brand p { color: var(--color-text-secondary); font-size: var(--fs-200); max-width: 34ch; margin: var(--sp-2) 0 var(--sp-3); }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.social-icons a:hover { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb),0.1); }
.social-icons svg { width: 16px; height: 16px; }

.footer-notice {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-3);
  font-size: var(--fs-100);
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-notice .disclaimer { max-width: 70ch; margin-bottom: var(--sp-2); }

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

/* ---------- Floating download button ---------- */
.floating-download {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 90;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6), 0 0 0 1px var(--color-border);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(9,9,9,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  gap: var(--sp-2);
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  .floating-download { display: none; }
  body { padding-bottom: 76px; }
}

/* ---------- How it works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); counter-reset: step; }
.step { position: relative; padding: var(--sp-4) var(--sp-3); background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-500);
  display: block;
  margin-bottom: var(--sp-2);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
