/* SpinBetter DE Casino - Main Stylesheet */
:root {
  --bg-dark: #0b1a0e;
  --bg-card: #132118;
  --bg-nav:  #0d1f10;
  --accent:       #a8d32d;
  --accent-dark:  #7fab1e;
  --accent-hover: #c2f03a;
  --text-primary:   #ffffff;
  --text-secondary: #b0c8b4;
  --text-muted:     #6e8c72;
  --border: #1e3a22;
  --gold: #f5c842;
  --red:  #e84040;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* Green inline links */
.card-text a, .faq-a a, .content-page p a, .section-sub a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(168,211,45,.4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.card-text a:hover, .faq-a a:hover,
.content-page p a:hover, .section-sub a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 2px solid var(--accent);
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 8px;
  /* needed so absolute mobile-nav positions relative to this */
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; max-width: 160px; }

/* Desktop nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s, background .2s;
  white-space: nowrap;
  display: block;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent);
  background: rgba(168,211,45,.08);
}

.btn-register {
  background: var(--accent) !important;
  color: #0b1a0e !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  white-space: nowrap;
}
.btn-register:hover { background: var(--accent-hover) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: .3s;
  pointer-events: none;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV — compact dropdown from burger ──────────────────────────── */
/* Sits INSIDE .header-inner (position:relative), floats below it */
.mobile-nav {
  display: none;
  position: fixed;
  /* align to right edge of screen, respecting small gutters */
  top: var(--header-h);
  right: 12px;
  left: auto;
  width: min(296px, calc(100vw - 24px));
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 12px 12px;
  z-index: 999;
  padding: 6px 8px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(420px, calc(100vh - var(--header-h) - 16px));
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  /* animation */
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  min-height: 46px;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: rgba(168,211,45,.1);
  border-color: rgba(168,211,45,.25);
  color: var(--accent);
}
.mobile-nav .btn-register {
  background: var(--accent) !important;
  color: #0b1a0e !important;
  font-weight: 700 !important;
  margin-top: 8px;
  justify-content: center;
  border-color: var(--accent) !important;
}
.mobile-nav .btn-register:hover { background: var(--accent-hover) !important; }

/* Thin divider above CTA */
.mobile-nav ul li:last-child { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b2410 0%, #0d2e15 40%, #0b1a0e 100%);
  padding: 44px 24px 36px;   /* was 72/56 */
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(168,211,45,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero.hero-small { padding: 34px 24px 28px; }
.hero.hero-small .hero-inner { gap: 28px; }

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0b1a0e;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  max-width: 100%;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 26px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  min-height: 46px;
  max-width: 100%;
}
.btn-secondary:hover { background: rgba(168,211,45,.1); }
.btn-secondary:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }

.hero-banner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.hero-banner img {
  width: 100%;
  height: 240px;    /* was 300px */
  object-fit: cover;
  object-position: center;
  display: block;
}

.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,211,45,.12);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 5px 13px;
  margin-bottom: 14px;
  font-size: .84rem;
  color: var(--accent);
  font-weight: 600;
  flex-wrap: wrap;
  max-width: 100%;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.section { padding: 56px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.section-title span { color: var(--accent); }
.section-sub {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: .98rem;
  line-height: 1.65;
}
.section-alt { background: var(--bg-card); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: var(--bg-dark); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card img { width: 100%; height: 180px; object-fit: cover; object-position: center; display: block; flex-shrink: 0; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; overflow-wrap: break-word; }
.card-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(168,211,45,.35);
  text-underline-offset: 3px;
  transition: color .2s;
}
.card-title a:hover { color: var(--accent-hover); }
.card-text { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; overflow-wrap: break-word; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; padding: 22px 18px; text-align: center; }
.section-alt .feature { background: var(--bg-nav); }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.feature p { color: var(--text-secondary); font-size: .85rem; line-height: 1.6; }

/* Bonus highlight */
.bonus-highlight {
  background: linear-gradient(135deg, #132118 0%, #0d2e15 100%);
  border: 1px solid var(--accent);
  border-radius: 18px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.bonus-amount { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; color: var(--accent); line-height: 1; }
.bonus-label { font-size: 1rem; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
/* bonus grid cells must not overflow */
.bonus-highlight > div { min-width: 0; }
.bonus-highlight .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bonus-highlight .btn-primary { width: 100%; justify-content: center; }

.bonus-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bonus-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-width: 0;
}
.step-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1a0e;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); max-width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th { background: var(--bg-nav); color: var(--accent); padding: 12px 14px; text-align: left; font-size: .85rem; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-secondary); vertical-align: top; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
tr:hover td { background: rgba(168,211,45,.04); }
.badge-green { background: rgba(168,211,45,.15); color: var(--accent); padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; display: inline-block; white-space: nowrap; }

/* Content page */
.content-page { max-width: 860px; margin: 0 auto; padding: 56px 24px; }
.content-page h1 { font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; margin-bottom: 12px; overflow-wrap: break-word; word-break: break-word; }
.content-page h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; color: var(--accent); overflow-wrap: break-word; }
.content-page h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; color: var(--text-secondary); }
.content-page p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.75; overflow-wrap: break-word; word-break: break-word; }
.content-page ul, .content-page ol { color: var(--text-secondary); padding-left: 22px; margin-bottom: 14px; }
.content-page li { margin-bottom: 8px; line-height: 1.7; overflow-wrap: break-word; }
.content-page .intro { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.75; }
.content-page .cta-box { background: linear-gradient(135deg,#132118,#0d2e15); border: 1px solid var(--accent); border-radius: 14px; padding: 26px 22px; text-align: center; margin: 36px 0; }
.content-page .cta-box h3 { color: var(--text-primary); margin-bottom: 10px; }
.content-page .cta-box p { color: var(--text-secondary); margin-bottom: 18px; }

/* SEO links */
.seo-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 28px 0 0; }
.seo-links h3 { font-size: .88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.seo-links-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.seo-links-list a {
  color: var(--accent);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(168,211,45,.3);
  border-radius: 20px;
  transition: background .2s, border-color .2s;
  display: inline-block;
}
.seo-links-list a:hover { background: rgba(168,211,45,.1); border-color: var(--accent); }

/* ── FAQ ACCORDION ───────────────────────────────────────────────────────── */
.faq { margin-top: 14px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  appearance: none; -webkit-appearance: none;
  background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 0;
  font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.5; text-align: left;
  cursor: pointer; min-height: 50px;
  overflow-wrap: break-word; word-break: break-word;
}
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.faq-q-text { flex: 1; min-width: 0; }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 2px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .7rem; font-weight: 700;
  transition: transform .22s ease, background .2s;
  user-select: none;
}
.faq-item.faq-open .faq-icon { transform: rotate(180deg); background: rgba(168,211,45,.15); }
.faq-a-wrap { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-item.faq-open .faq-a-wrap { max-height: 600px; }
.faq-a { color: var(--text-secondary); line-height: 1.75; overflow-wrap: break-word; word-break: break-word; padding-bottom: 16px; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer { background: var(--bg-nav); border-top: 1px solid var(--border); padding: 26px 24px; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; text-decoration: none; }
.footer-logo img { height: 34px; width: auto; }
.footer-text { color: var(--text-muted); font-size: .83rem; line-height: 1.65; max-width: 500px; margin: 0 auto; overflow-wrap: break-word; }

/* Scroll to top */
#scrollTop {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--accent); color: #0b1a0e;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 900; border: none; cursor: pointer; font-weight: 700;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); background: var(--accent-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1200px — prevent too-wide layout on large monitors */
@media (min-width: 1200px) {
  .hero-inner { gap: 56px; }
}

/* 1024px */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid    { grid-template-columns: repeat(2,1fr); }
  .hero-inner    { gap: 28px; }
  .hero-banner img { height: 210px; }
}

/* 768px */
@media (max-width: 768px) {
  .nav-menu  { display: none; }
  .burger    { display: flex; }
  .mobile-nav { display: block; }

  .header-inner { padding: 0 16px; }

  /* hero single column */
  .hero { padding: 36px 16px 28px; }
  .hero.hero-small { padding: 28px 16px 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-banner { display: block; }
  .hero-banner img { height: 175px; border-radius: 10px; }
  .hero h1 { font-size: clamp(1.5rem,5vw,2rem); }
  .hero p  { font-size: .96rem; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 13px 18px; }

  .section { padding: 40px 16px; }
  .section-title { font-size: clamp(1.25rem,4.5vw,1.65rem); }
  .section-sub { margin-bottom: 24px; font-size: .93rem; }

  .cards-grid    { grid-template-columns: 1fr; gap: 14px; }
  .features-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }

  .bonus-highlight { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; border-radius: 12px; }
  .bonus-amount { font-size: 2.4rem; }
  .feature { padding: 18px 14px; }

  .content-page { padding: 32px 16px; }
  .content-page h1 { font-size: clamp(1.35rem,5vw,1.75rem); }
  .content-page h2 { font-size: 1.15rem; }

  .seo-links { padding: 16px 14px; }
  .seo-links-list a { font-size: .83rem; padding: 5px 12px; }

  footer { padding: 22px 16px; }
  .footer-text { font-size: .8rem; }
  #scrollTop { bottom: 14px; right: 14px; }
}

/* 480px */
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .header-inner { height: 56px; padding: 0 12px; }
  .logo img { height: 34px; max-width: 120px; }

  .hero { padding: 28px 12px 24px; }
  .hero.hero-small { padding: 22px 12px 18px; }
  .hero h1 { font-size: clamp(1.3rem,6vw,1.6rem); }
  .bonus-badge { font-size: .78rem; padding: 4px 11px; }
  .hero-banner img { height: 150px; }

  .section { padding: 32px 12px; }
  .section-title { font-size: clamp(1.15rem,5vw,1.4rem); }

  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 16px 13px; text-align: left; display: flex; gap: 13px; align-items: flex-start; }
  .feature-icon { font-size: 1.6rem; margin-bottom: 0; flex-shrink: 0; }

  .bonus-highlight { padding: 18px 14px; gap: 18px; border-radius: 10px; }
  .bonus-amount { font-size: 1.9rem; }
  .card img { height: 155px; }
  .btn-primary, .btn-secondary { font-size: .93rem; padding: 12px 16px; }

  .content-page { padding: 24px 12px; }
  .seo-links { padding: 14px 12px; }
  footer { padding: 18px 12px; }

  .mobile-nav { top: 56px; right: 10px; width: min(280px, calc(100vw - 20px)); }
}

/* 360px */
@media (max-width: 360px) {
  .logo img { max-width: 100px; }
  .hero h1 { font-size: 1.2rem; }
  .section-title { font-size: 1.1rem; }
  .btn-primary, .btn-secondary { font-size: .87rem; }
  .bonus-amount { font-size: 1.75rem; }
  .bonus-highlight { padding: 14px 12px; }
  .mobile-nav { right: 8px; width: min(260px, calc(100vw - 16px)); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .btn-primary:hover, .card:hover { transform: none !important; }
}
