/* ================================================================
   GR6 METAVERSO — Casino Topic Sections — style.css
   Matches existing design tokens: --gold, --violet, --red, --black,
   --surface, --surface-2, --white, --muted, --line
   ================================================================ */

/* ================================================================
   TOPIC SECTION BASE
   ================================================================ */

.topic-section {
  padding-block: 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.topic-section:nth-child(even) {
  background:
    radial-gradient(circle at 90% 20%, rgba(122, 0, 255, 0.10), transparent 36rem),
    #080808;
}

.topic-section:nth-child(odd) {
  background:
    radial-gradient(circle at 10% 70%, rgba(225, 6, 0, 0.07), transparent 32rem),
    #0a0a0a;
}

/* ================================================================
   TOPIC KICKER / EYEBROW
   ================================================================ */

.topic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.topic-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* ================================================================
   TOPIC HEADING
   ================================================================ */

.topic-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 22px;
  line-height: 1.06;
  max-width: 780px;
}

.topic-heading .accent {
  color: var(--gold);
}

/* ================================================================
   TOPIC BODY TEXT
   ================================================================ */

.topic-body {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  line-height: 1.78;
  max-width: 680px;
  margin: 0 0 28px;
}

/* ================================================================
   TOPIC SPLIT GRID (2 columns: copy + image)
   ================================================================ */

.topic-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.topic-split.reverse {
  direction: rtl;
}

.topic-split.reverse > * {
  direction: ltr;
}

/* ================================================================
   TOPIC VISUAL / IMAGE
   ================================================================ */

.topic-casino-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.topic-casino-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  transition: transform 400ms ease;
}

.topic-casino-visual:hover img {
  transform: scale(1.02);
}

.topic-casino-visual::before {
  content: '';
  position: absolute;
  inset: 20px -16px -16px 20px;
  z-index: -1;
  border: 1px solid rgba(122, 0, 255, 0.3);
  border-radius: 20px;
}

.topic-casino-visual-feature img {
  aspect-ratio: 4 / 3;
}

.topic-casino-visual-wide img {
  aspect-ratio: 16 / 9;
}

.topic-casino-visual-rating img {
  aspect-ratio: 1 / 1;
}

.topic-casino-visual-terms img {
  aspect-ratio: 4 / 3;
  max-width: 380px;
}

/* ================================================================
   TOPIC FEATURE LIST
   ================================================================ */

.topic-feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  align-items: start;
}

.topic-feature-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.topic-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 11px;
  flex: 0 0 auto;
}

.topic-feature-icon svg {
  width: 18px;
  height: 18px;
}

.topic-feature-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.topic-feature-content span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ================================================================
   TOPIC STEPS (How to Start)
   ================================================================ */

.topic-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.topic-step-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}

.topic-step-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: var(--surface-2);
}

.topic-step-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
}

.topic-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.topic-step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--white);
}

.topic-step-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   TOPIC PROVIDERS (Mobile Gaming)
   ================================================================ */

.topic-providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.topic-provider-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  transition: border-color 200ms ease;
}

.topic-provider-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.topic-provider-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.topic-provider-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ================================================================
   TOPIC REVIEW CARDS (Player Rating)
   ================================================================ */

.topic-reviews-header {
  text-align: center;
  margin-bottom: 54px;
}

.topic-stars {
  display: inline-flex;
  gap: 6px;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.topic-rating-caption {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
}

.topic-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-review-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: border-color 200ms ease;
  display: flex;
  flex-direction: column;
}

.topic-review-card:hover {
  border-color: rgba(212, 175, 55, 0.32);
}

.topic-review-card .topic-kicker {
  margin-bottom: 14px;
}

.topic-review-card blockquote {
  margin: 0 0 20px;
  color: #d8d4cb;
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.topic-review-author {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 16px;
  margin-top: auto;
}

.topic-review-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 2px;
}

.topic-review-author small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

/* ================================================================
   TOPIC FAQ SPLIT (Start Playing 2)
   ================================================================ */

.topic-faq-split {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: start;
  gap: 64px;
}

.topic-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.topic-faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.topic-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease;
}

.topic-faq-question:hover {
  color: var(--gold);
}

.topic-faq-question svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold);
  transition: transform 250ms ease;
}

.topic-faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.topic-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}

.topic-faq-answer p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  padding-bottom: 18px;
  margin: 0;
}

.topic-faq-sidebar .topic-casino-visual {
  margin-bottom: 20px;
}

/* ================================================================
   TOPIC ABOUT GRID (Start Playing)
   ================================================================ */

.topic-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.topic-about-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.topic-about-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.topic-about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--violet), transparent);
  opacity: 0.5;
}

.topic-about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--white);
}

.topic-about-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   TOPIC LEGAL / TERMS
   ================================================================ */

.topic-legal-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 64px;
  padding: clamp(30px, 5vw, 60px);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.08), transparent 40%),
    #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.topic-legal-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.topic-legal-text p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.78;
  margin: 0;
}

.topic-18-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.3);
}

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

@media (max-width: 1024px) {
  .topic-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .topic-section {
    padding-block: 80px;
  }

  .topic-split,
  .topic-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .topic-split.reverse > * {
    direction: ltr;
  }

  .topic-faq-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .topic-about-grid {
    grid-template-columns: 1fr;
  }

  .topic-legal-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .topic-providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topic-section {
    padding-block: 64px;
  }

  .topic-steps {
    grid-template-columns: 1fr;
  }

  .topic-reviews-grid {
    grid-template-columns: 1fr;
  }

  .topic-providers-grid {
    grid-template-columns: 1fr;
  }
}
