/* SpinBetter Affiliate Site - Dark Theme with Lime Accents */
:root {
  --bg-dark: #0f0f13;
  --bg-card: #1a1a22;
  --bg-card-hover: #22222c;
  --lime: #bef264;
  --lime-dark: #a3e635;
  --purple: #a855f7;
  --purple-dark: #9333ea;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --border: #2e2e3a;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lime-dark); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ========== HEADER ========== */
.site-header {
  background: rgba(15,15,19,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover {
  background: var(--purple-dark);
  color: #fff;
}

.btn-lime {
  background: var(--lime);
  color: #0f0f13;
  border-color: var(--lime);
}
.btn-lime:hover {
  background: var(--lime-dark);
  color: #0f0f13;
}

/* Burger */
.burger-toggle { display: none; }
.burger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.burger-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Nav */
.header-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 1rem;
}
.nav-inner a {
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ========== MAIN ========== */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e1e28 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-text h1 {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner img {
  width: 100%;
  border-radius: var(--radius);
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}
.section h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lime);
  display: inline-block;
}
.section h3 {
  font-size: 1.2rem;
  color: var(--lime);
  margin: 1.5rem 0 0.75rem;
}
.section p {
  margin-bottom: 1rem;
  color: var(--text);
}
.section ul, .section ol {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Anchor links */
.anchor-link {
  color: var(--lime) !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}
.anchor-link:hover {
  color: var(--lime-dark) !important;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead {
  background: #1e2a1a;
}
th {
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--lime);
  font-weight: 700;
  border-bottom: 2px solid var(--lime);
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
tbody tr:nth-child(even) {
  background: rgba(190, 242, 100, 0.04);
}
tbody tr:hover {
  background: rgba(190, 242, 100, 0.08);
}

/* Banner mid */
.mid-banner {
  margin: 2rem 0;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.mid-banner img {
  margin: 0 auto;
  border-radius: var(--radius);
  max-height: 280px;
  width: auto;
  object-fit: contain;
}

/* FAQ Accordion - CSS only */
.faq-section h2 {
  margin-bottom: 1.25rem;
}
.faq-item {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-item input {
  display: none;
}
.faq-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}
.faq-item label:hover {
  background: var(--bg-card-hover);
}
.faq-item label::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--lime);
  font-weight: 400;
  transition: transform 0.3s;
}
.faq-item input:checked + label::after {
  content: '−';
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
}
.faq-item input:checked ~ .faq-content {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #1a2a1a 0%, var(--bg-card) 100%);
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h2 {
  border: none;
  color: var(--lime);
  margin-bottom: 0.75rem;
}
.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background: #0a0a0e;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.site-footer p {
  max-width: 800px;
  margin: 0 auto 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-top { padding: 0.6rem 1rem; }
  .logo img { height: 32px; }
  .header-actions .btn { padding: 0.5rem 0.9rem; font-size: 0.75rem; }
  .burger-label { display: flex; }
  .header-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .burger-toggle:checked ~ .header-top ~ .header-nav {
    max-height: 320px;
  }
  .nav-inner {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .nav-inner a {
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 0.75rem 1.25rem;
  }
  .nav-inner a.active,
  .nav-inner a:hover {
    border-left-color: var(--lime);
    border-bottom-color: transparent;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .hero-banner { order: -1; }
  .hero-text h1 { font-size: 1.4rem; }
  .main-content { padding: 1.25rem 1rem; }
  .section h2 { font-size: 1.25rem; }
  th, td { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
  .mid-banner img { max-height: 180px; }
}

@media (max-width: 480px) {
  .header-actions .btn-outline { display: none; }
  .hero-text h1 { font-size: 1.25rem; }
}
