/* ==========================================================================
   RealMoneyCasinoRank — Page-specific styles
   Homepage hero, category pages, review pages, comparison pages, trust pages
   ========================================================================== */

/* ════════════════════════════════════════════
   HOMEPAGE HERO (centered single-column layout)
   ════════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  padding: 56px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}
.hero__orb--1 {
  width: 400px; height: 400px;
  top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(224,168,75,0.08) 0%, transparent 70%);
  animation: hero-float 18s ease-in-out infinite;
}
.hero__orb--2 {
  width: 350px; height: 350px;
  top: 20%; right: -8%;
  background: radial-gradient(circle, rgba(91,156,246,0.06) 0%, transparent 70%);
  animation: hero-float-rev 22s ease-in-out infinite;
}
.hero__orb--3 {
  width: 250px; height: 250px;
  bottom: 5%; left: 30%;
  background: radial-gradient(circle, rgba(63,185,80,0.05) 0%, transparent 70%);
  animation: hero-float 25s ease-in-out infinite;
  animation-delay: -5s;
}
.hero::before {
  content: '';
  position: absolute;
  top: 35%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(224,168,75,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,168,75,0.28), transparent);
  pointer-events: none;
}
.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(224,168,75,0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-headline-shimmer 6s ease-in-out infinite;
}
.hero__subheadline {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: var(--lh-normal);
  letter-spacing: 0.005em;
}
.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: 6px 14px;
  background: rgba(240,246,252,0.025);
  border: 1px solid rgba(240,246,252,0.06);
  border-radius: var(--r-full);
}
.hero__cta {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold), #c8882a);
  color: var(--bg-base);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(224,168,75,0.25);
  transition: transform var(--t-normal), box-shadow var(--t-normal), filter var(--t-normal);
  position: relative;
  text-decoration: none;
  margin-bottom: 36px;
}
.hero__cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: hero-cta-ring 2.5s ease-out infinite;
  pointer-events: none;
}
.hero__cta:hover {
  color: var(--bg-base);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(224,168,75,0.35);
  filter: brightness(1.08);
}
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 8px;
}
.hero__stat { text-align: center; }
.hero__stat-value {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--gold);
  line-height: 1.2;
}
.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (min-width: 768px) {
  .hero { padding: 96px 32px 112px; }
  .hero__trust { flex-direction: row; justify-content: center; gap: 12px; }
  .hero__stat-value { font-size: var(--fs-3xl); }
}
@media (max-width: 480px) {
  .hero__cta { width: 100%; box-sizing: border-box; text-align: center; display: block; }
}
@keyframes hero-float {
  0%,100% { transform: translate(0,0) scale(1); }
  25%      { transform: translate(30px,-20px) scale(1.05); }
  50%      { transform: translate(-15px,15px) scale(0.97); }
  75%      { transform: translate(20px,10px) scale(1.02); }
}
@keyframes hero-float-rev {
  0%,100% { transform: translate(0,0) scale(1); }
  25%      { transform: translate(-25px,15px) scale(0.98); }
  50%      { transform: translate(20px,-10px) scale(1.04); }
  75%      { transform: translate(-10px,-20px) scale(1); }
}
@keyframes hero-headline-shimmer {
  0%,100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
@keyframes hero-cta-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ════════════════════════════════════════════
   PAGE HERO (inner pages)
   ════════════════════════════════════════════ */
.page-hero {
  position: relative; z-index: var(--z-base);
  padding: var(--sp-12) 0 var(--sp-10);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: var(--max-w-full); margin: 0 auto; padding: 0 var(--sp-6); }
.page-hero__headline { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.page-hero__sub { font-size: var(--fs-lg); color: var(--text-secondary); max-width: 680px; margin-bottom: var(--sp-6); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.page-hero__meta-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* ════════════════════════════════════════════
   CATEGORY PAGE
   ════════════════════════════════════════════ */
.category-page { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-8); align-items: start; }
.category-page__main { min-width: 0; }
.category-page__sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-5); margin-bottom: var(--sp-4);
}
.sidebar-card__title { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--text-secondary); margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-toc { list-style: none; padding: 0; }
.sidebar-toc li { margin-bottom: var(--sp-1); }
.sidebar-toc a { font-size: var(--fs-sm); color: var(--text-muted); display: block; padding: var(--sp-1) 0; transition: color var(--t-fast); }
.sidebar-toc a:hover { color: var(--gold); }
.sidebar-toc .active { color: var(--gold); }

/* ════════════════════════════════════════════
   REVIEW PAGE
   ════════════════════════════════════════════ */
.review-header {
  background: var(--bg-card); border: 1px solid var(--border-md);
  border-radius: var(--r-2xl); padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-8);
}
.review-header__top { display: flex; align-items: flex-start; gap: var(--sp-6); margin-bottom: var(--sp-5); }
.review-header__logo { width: 100px; height: 100px; background: var(--bg-elevated); border-radius: var(--r-xl); border: 1px solid var(--border-md); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--text-primary); flex-shrink: 0; }
.review-header__info { flex: 1; }
.review-header__name { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.review-header__tagline { font-size: var(--fs-md); color: var(--text-secondary); margin-bottom: var(--sp-3); }
.review-header__quick { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.review-header__quick-item { font-size: var(--fs-sm); color: var(--text-muted); display: flex; align-items: center; gap: var(--sp-1); }
.review-header__quick-item strong { color: var(--text-secondary); }
.review-header__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ════════════════════════════════════════════
   COMPARISON PAGE
   ════════════════════════════════════════════ */
.vs-header {
  display: flex; align-items: center; gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.vs-header__casino {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-6);
  text-align: center;
}
.vs-header__casino--winner { border-color: var(--gold-border); background: var(--gold-subtle); }
.vs-header__logo { width: 80px; height: 80px; background: var(--bg-elevated); border-radius: var(--r-xl); margin: 0 auto var(--sp-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--text-primary); }
.vs-header__name { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.vs-header__score { font-size: var(--fs-4xl); color: var(--gold); font-weight: var(--fw-bold); }
.vs-header__sublabel { font-size: var(--fs-xs); color: var(--text-muted); }
.vs-header__badge { margin-top: 8px; display: inline-flex; }
.vs-header__cta-btn { margin-top: var(--sp-3); }
.vs-header__note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); max-width: 220px; }
.vs-divider { font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--text-faint); flex-shrink: 0; }
.prose__heading { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }

/* ════════════════════════════════════════════
   TRUST / POLICY PAGES
   ════════════════════════════════════════════ */
.trust-page { max-width: var(--max-w-content); margin: 0 auto; padding: var(--sp-16) var(--sp-6); }
.trust-page__header { margin-bottom: var(--sp-10); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border); }
.trust-page h2 { font-size: var(--fs-2xl); margin: var(--sp-10) 0 var(--sp-4); }
.trust-page h3 { font-size: var(--fs-xl); margin: var(--sp-6) 0 var(--sp-3); }
.trust-page p { font-size: var(--fs-md); color: var(--text-secondary); line-height: var(--lh-loose); margin-bottom: var(--sp-4); }
.trust-page ul, .trust-page ol { margin: var(--sp-4) 0; padding-left: var(--sp-6); }
.trust-page li { font-size: var(--fs-md); color: var(--text-secondary); line-height: var(--lh-loose); margin-bottom: var(--sp-2); }

/* ════════════════════════════════════════════
   EDITORIAL TEAM PAGE
   ════════════════════════════════════════════ */
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-6);
  display: flex; gap: var(--sp-5); align-items: flex-start;
}
.team-card__avatar { width: 72px; height: 72px; background: var(--gold-dim); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: var(--fs-2xl); color: var(--gold); }
.team-card__info { flex: 1; }
.team-card__name { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.team-card__role { font-size: var(--fs-sm); color: var(--gold); font-weight: var(--fw-medium); margin-bottom: var(--sp-3); }
.team-card__bio { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); }

/* ════════════════════════════════════════════
   BLOG PAGE
   ════════════════════════════════════════════ */
.blog-hero { padding: var(--sp-12) 0 var(--sp-8); position: relative; z-index: var(--z-base); }
.blog-hero__inner { max-width: var(--max-w-full); margin: 0 auto; padding: 0 var(--sp-6); }
.blog-hero__badge { margin-bottom: var(--sp-4); display: inline-flex; }
.blog-hero__title { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.blog-hero__desc { font-size: var(--fs-lg); color: var(--text-secondary); max-width: 600px; margin-bottom: var(--sp-6); }
.blog-categories { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.blog-cat-btn {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  background: var(--bg-elevated); color: var(--text-muted);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--t-fast);
}
.blog-cat-btn:hover, .blog-cat-btn.active { background: var(--gold-dim); color: var(--gold); border-color: var(--gold-border); }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-8); align-items: start; }
.blog-sidebar { position: sticky; top: 80px; }

/* Article page */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-8); align-items: start; }
.article-main { min-width: 0; }

/* ════════════════════════════════════════════
   METHODOLOGY SECTION
   ════════════════════════════════════════════ */
.methodology-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.method-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-6);
}
.method-step__num {
  width: 36px; height: 36px; background: var(--gold-dim);
  border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--gold);
  margin-bottom: var(--sp-4);
}
.method-step__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.method-step__text { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); }

/* ════════════════════════════════════════════
   RESPONSIVE (pages)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero__visual { display: none; }
  /* Sidebar: move above content on tablet, show as compact horizontal strip */
  .category-page { grid-template-columns: 1fr; }
  .category-page__sidebar {
    position: static;
    order: -1;
  }
  .sidebar-card {
    padding: var(--sp-3) var(--sp-4);
  }
  .sidebar-toc {
    display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
  }
  .sidebar-toc li { margin-bottom: 0; }
  .sidebar-toc a { padding: var(--sp-1) var(--sp-2); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .methodology-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-hero__headline { font-size: var(--fs-3xl); }
  .review-header { padding: var(--sp-5); }
  .review-header__top { flex-direction: column; align-items: center; text-align: center; }
  .review-header__cta { justify-content: center; }
  .vs-header { flex-direction: column; gap: var(--sp-3); }
  .vs-divider { align-self: center; }
  .methodology-steps { grid-template-columns: 1fr; }
  .trust-page { padding: var(--sp-8) var(--sp-4); }
}
@media (max-width: 599px) {
  /* Issue #6 fix — hide CA sidebar TOC entirely on mobile, not needed at 390px */
  .category-page__sidebar { display: none; }
  /* Issue #7 fix — tighter quick-stats row in review header */
  .review-header__quick { gap: var(--sp-2); }
  .review-header__quick-item { font-size: var(--fs-xs); }
  /* Issue #5 fix — blog hero image height reduced on mobile */
  .blog-hero-img { height: 220px; }
}
/* Issue #5 — blog hero image class (replaces inline styles on all 6 posts) */
.blog-hero-img {
  width: 100%; height: 380px; object-fit: cover; display: block;
  border-radius: var(--r-xl);
}

/* ════════════════════════════════════════════
   COMPARISON TABLE (homepage)
   ════════════════════════════════════════════ */
.section--comparison {
  background: var(--bg-surface, #161d2a);
  border-top: 1px solid var(--border);
}
.comparison-table__bonus {
  color: var(--accent-gold);
  font-weight: 600;
}
.comparison-table__visit-btn {
  background: var(--accent-gold);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.comparison-table__visit-btn:hover {
  filter: brightness(1.1);
}
.section__cta {
  text-align: center;
  margin-top: var(--sp-8);
}

/* ════════════════════════════════════════════
   REVIEW HUB CARDS
   ════════════════════════════════════════════ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.review-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.review-card__name {
  font-size: var(--fs-lg);
  margin: 0;
}
.review-card__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--gold);
  font-weight: 600;
}
.review-card__rating-max {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.review-card__desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
}
.review-card__cta {
  margin-top: auto;
}

/* ════════════════════════════════════════════
   COMPARISON HUB CARDS
   ════════════════════════════════════════════ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.comparison-card__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.comparison-card__casino {
  text-align: center;
}
.comparison-card__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto;
  overflow: hidden;
}
.comparison-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.comparison-card__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--sp-1);
}
.comparison-card__vs {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-muted);
}
.comparison-card__title {
  font-size: var(--fs-lg);
  margin: 0;
  text-align: center;
}
.comparison-card__desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
  text-align: center;
}
.comparison-card__badges {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-2);
}
.comparison-card .btn {
  margin-top: auto;
}
.section--cta-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--cta-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.section--cta-center .section__eyebrow,
.section--cta-center .section__title,
.section--cta-center .section__subtitle {
  margin: 0;
}
.section--cta-center .btn {
  margin-top: var(--sp-4);
}
.section__header--spaced {
  margin-top: var(--sp-12);
}

/* ════════════════════════════════════════════
   STICKY PICK — TABLET VISIBILITY
   ════════════════════════════════════════════ */
.sticky-pick {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-above);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  transition: transform var(--t-normal), opacity var(--t-normal);
}
.sticky-pick--hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .sticky-pick {
    bottom: var(--sp-4);
    right: var(--sp-4);
    max-width: 240px;
    padding: var(--sp-3) var(--sp-4);
  }
}
@media (max-width: 480px) {
  .sticky-pick {
    left: var(--sp-4);
    right: var(--sp-4);
    max-width: none;
    bottom: var(--sp-3);
  }
}
