/* ==========================================================================
   1. VARIABLES & THEME SETUP ("Rhein Darkwave")
   ========================================================================== */

/* Fonts:
   - Headings: "Space Grotesk" (distinct, modern DE-friendly)
   - Body: "Plus Jakarta Sans" (clean UI)
   If you self-host fonts, keep names identical here.
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* --- Colors: Backgrounds --- */
  --bg-body: #070A12;        /* deep navy-black */
  --bg-panel: #0D1324;       /* panel navy */
  --bg-card: #121B33;        /* card */
  --bg-card-hover: #172141;  /* hover */

  /* --- Colors: Text --- */
  --text-main: #F2F5FF;
  --text-muted: #B6C0D6;
  --text-dim: #7E89A3;

  /* --- Colors: Accents --- */
  --primary: #2DD4BF;        /* teal/cyan brand */
  --primary-dark: #0F766E;
  --action: #FFB020;         /* amber CTA */
  --action-hover: #F97316;   /* orange hover */
  --success: #22C55E;        /* green */
  --gold: #FCD34D;           /* warm gold */

  /* --- Utils --- */
  --border: rgba(242, 245, 255, 0.10);
  --border-light: rgba(242, 245, 255, 0.18);

  /* Softer, more “German product UI” shapes */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;

  /* More layered shadow (less “template-y”) */
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 2px 10px rgba(0, 0, 0, 0.22);

  /* --- Layout --- */
  --container-width: 1120px;
  --header-height: 72px;

  /* Extra micro-tokens (used but doesn't affect HTML) */
  --focus-ring: 0 0 0 3px rgba(45, 212, 191, 0.25);
  --glow: 0 0 18px rgba(45, 212, 191, 0.18);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--bg-body);

  /* Unique background: subtle diagonal + soft radial blooms */
  background-image:
    radial-gradient(900px 500px at 12% 10%, rgba(45, 212, 191, 0.10), transparent 55%),
    radial-gradient(700px 420px at 88% 18%, rgba(255, 176, 32, 0.08), transparent 60%),
    repeating-linear-gradient(
      135deg,
      rgba(242, 245, 255, 0.035) 0px,
      rgba(242, 245, 255, 0.035) 1px,
      transparent 1px,
      transparent 48px
    );

  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; transition: 0.18s ease; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Accessible focus */
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 10px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (UPDATED)
   ========================================================================== */
header {
  height: var(--header-height);

  /* Unique header: gradient + blur */
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.92) 0%,
    rgba(13, 19, 36, 0.78) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img { height: 34px; width: auto; }

/* --- Desktop Nav --- */
.desktop-nav { display: flex; gap: 2.25rem; }
.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.18s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(45, 212, 191, 0.15));
  transition: width 0.22s ease;
}

.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { width: 100%; }

/* --- Mobile Nav Container --- */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  background:
    radial-gradient(700px 300px at 50% 0%, rgba(45, 212, 191, 0.10), transparent 60%),
    rgba(13, 19, 36, 0.96);

  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 0.85rem 0;
  box-shadow: var(--shadow);
  z-index: 999;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  display: block;
  padding: 1rem 2rem;
  color: var(--text-main);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover {
  background-color: rgba(23, 33, 65, 0.70);
  color: var(--primary);
}

/* --- Hamburger Button --- */
.hamburger {
  display: none;
  width: 34px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(242, 245, 255, 0.92);
  position: absolute;
  left: 0;
  transition: transform 0.26s ease, opacity 0.22s ease, top 0.26s ease, bottom 0.26s ease;
  border-radius: 999px;
}

/* Positions */
.hamburger span:nth-child(1) { top: 1px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 82%; }
.hamburger span:nth-child(3) { bottom: 1px; }

/* Active to X */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --- Media Queries for Menu --- */
@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
}

@media (min-width: 993px) {
  .mobile-nav { display: none !important; }
  .hamburger { display: none !important; }
}

/* ==========================================================================
   4. LAYOUT & CONTENT
   ========================================================================== */
main { padding: 3.25rem 0; }

.main-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Article Wrapper */
.content-section {
  background:
    linear-gradient(180deg, rgba(18, 27, 51, 0.70), rgba(13, 19, 36, 0.78));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  margin-bottom: 2.1rem;
  box-shadow: 0 1px 0 rgba(242, 245, 255, 0.04) inset;
}

/* Typography inside Content */
.content-section h1 {
  font-size: 2.45rem;
  line-height: 1.1;
  margin-bottom: 1.4rem;

  /* Unique left accent */
  border-left: 6px solid rgba(45, 212, 191, 0.95);
  padding-left: 1rem;
}

.content-section h2 {
  font-size: 1.72rem;
  margin: 2.35rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.55rem;
}

.content-section h3 { font-size: 1.28rem; margin: 1.5rem 0 0.85rem; }
.content-section p { margin-bottom: 1.15rem; color: var(--text-muted); }

.content-section img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 2rem auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Standard Lists inside Content */
.content-section ul:not(.features-list):not(.toc-list),
.content-section ol:not(.neon-steps):not(.ribbon-list) {
  margin-bottom: 1.45rem;
  padding-left: 1.55rem;
  list-style: disc;
  color: var(--text-muted);
}
.content-section li { margin-bottom: 0.55rem; }

/* ==========================================================================
   5. CASINO CARDS (The Core Feature)
   ========================================================================== */
.casino-block { margin-top: 2.1rem; }
h2.casino-block { border: none; padding: 0; margin-bottom: 1.5rem; }

.casino-card {
  background:
    radial-gradient(800px 220px at 15% 0%, rgba(45, 212, 191, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(18, 27, 51, 0.82), rgba(13, 19, 36, 0.84));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.casino-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 176, 32, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.casino-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: var(--shadow);
}

.casino-card:hover::before { opacity: 1; }

/* Rank Badge */
.rank-badge {
  position: absolute;
  top: 0; left: 0;

  background:
    linear-gradient(180deg, rgba(7,10,18,0.96), rgba(13,19,36,0.92));

  color: var(--text-muted);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10;
}

/* Card Header */
.card-header {
  background: rgba(242, 245, 255, 0.03);
  padding: 1.05rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 190px;
}

.logo-wrapper img.logo-img {
  width: 86px;
  height: 42px;
  object-fit: contain;

  /* unique logo plate */
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border-radius: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(0,0,0,0.08);
}

.casino-name { font-weight: 800; font-size: 1.02rem; display: block; }
.rating-score { font-size: 0.86rem; color: var(--gold); letter-spacing: 0.02em; }

.offer-wrapper { flex: 1; text-align: center; }
.offer-text { font-size: 1.08rem; color: #fff; margin: 0; }
.offer-highlight { color: var(--action); font-weight: 800; }

/* Card Body */
.card-body {
  padding: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.icon-check { color: var(--success); font-weight: 900; }

/* Actions */
.actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 210px;
  gap: 0.6rem;
}

/* CTA Button — unique shape + texture + motion */
.btn-cta {
  display: inline-block;

  background:
    radial-gradient(120px 50px at 18% 25%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 176, 32, 1) 0%, rgba(249, 115, 22, 1) 100%);

  color: #0b1020;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  padding: 0.85rem 1.55rem;

  /* pill-ish without breaking layout */
  border-radius: 999px;

  width: 100%;
  text-align: center;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(255, 176, 32, 0.12);
  transform: translateZ(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.18);
  filter: saturate(1.04);
}

.btn-cta:active {
  transform: translateY(0px);
}

.link-review {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
}

.payment-tag {
  font-size: 10px;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.card-footer {
  padding: 0.65rem 1.6rem;
  background: rgba(0,0,0,0.16);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(242, 245, 255, 0.05);
}

/* ==========================================================================
   6. TABLES & LISTS (Special)
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 19, 36, 0.55);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

table th, table td {
  padding: 1rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table tr:first-child {
  background: rgba(23, 33, 65, 0.72);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Neon Steps */
ol.neon-steps {
  counter-reset: step;
  list-style: none !important;
  padding: 0;
}

ol.neon-steps li {
  position: relative;
  padding-left: 62px;
  margin-bottom: 1.55rem;
}

ol.neon-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 42px; height: 42px;

  background:
    radial-gradient(120px 60px at 30% 30%, rgba(45, 212, 191, 0.18), transparent 60%),
    rgba(18, 27, 51, 0.92);

  border: 2px solid rgba(45, 212, 191, 0.65);
  color: #fff;
  border-radius: 14px; /* unique: not circle */
  text-align: center;
  line-height: 38px;
  font-weight: 900;
  box-shadow: var(--glow);
}

/* ==========================================================================
   7. INTERACTIVE (TOC & FAQ)
   ========================================================================== */
.content-toggle-btn {
  width: 100%;
  padding: 1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(18, 27, 51, 0.92), rgba(13, 19, 36, 0.92));
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.content-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.45);
}

.table-of-contents {
  background: rgba(7, 10, 18, 0.35);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: none;
  border-radius: var(--radius-md);
}
.table-of-contents.active { display: block; }

.toc-list li { border-bottom: 1px solid rgba(242,245,255,0.08); padding: 0.55rem 0; }
.toc-list a:hover { color: var(--primary); }

/* FAQ */
.faq-container {
  max-width: 100%;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 200px at 20% 0%, rgba(45, 212, 191, 0.07), transparent 55%),
    rgba(18, 27, 51, 0.84);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.faq-question:hover {
  background: rgba(23, 33, 65, 0.55);
}

/* Icon */
.faq-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--action);
  transition: transform 0.26s ease, color 0.26s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease-out, opacity 0.28s ease-out, padding 0.28s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-question.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer.open {
  max-height: 520px;
  opacity: 1;
  padding-bottom: 1.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(242,245,255,0.08);
}

/* ==========================================================================
   8. FOOTER (STYLED)
   ========================================================================== */
footer {
  background:
    radial-gradient(900px 260px at 50% 0%, rgba(45, 212, 191, 0.10), transparent 60%),
    #050713;
  border-top: 1px solid var(--border);
  padding: 3.2rem 0 4.2rem;
  margin-top: 4rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.35rem;
  margin-bottom: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.22s ease;
}

.footer-links a:hover { color: #fff; }

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), rgba(45, 212, 191, 0.15));
  transition: width 0.24s ease;
}

.footer-links a:hover::after { width: 100%; }

.footer-container p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}

.footer-container p:last-child {
  margin-top: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242,245,255,0.10);
  width: 100%;
  max-width: 420px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS (CRITICAL)
   ========================================================================== */
@media (max-width: 768px) {
  .content-section { padding: 1.55rem; }
  .content-section h1 { font-size: 1.9rem; }

  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .logo-wrapper {
    flex-direction: column;
    width: 100%;
    min-width: unset;
  }

  .card-body {
    flex-direction: column;
    padding: 1.05rem;
    gap: 1.5rem;
  }

  .features-list {
    width: 100%;
    border-bottom: 1px solid rgba(242,245,255,0.10);
    padding-bottom: 1rem !important;
  }

  .features-list li { justify-content: center; }

  .actions-wrapper {
    width: 100%;
    align-items: center;
    min-width: unset;
  }

  .payment-methods { justify-content: center; }

  .rank-badge {
    width: 28px; height: 28px; font-size: 0.82rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    padding: 2.2rem 0;
    margin-top: 2.2rem;
  }
}

/* ==========================================================================
   HAMBURGER BUTTON FIX (kept selector, unique tuning)
   ========================================================================== */
@media (max-width: 992px) {
  .hamburger {
    display: block !important;
    margin-left: auto;
  }

  .desktop-nav {
    display: none !important;
  }
}
