/* casino_review.light.css
   Light mode overlay for casino review pages.
   Load AFTER casino_review.css + theme.css.
*/

html[data-theme="light"] body{
  background: #F5F7FB !important;
  color: #111827 !important;
}

/* Hero background */
html[data-theme="light"] .cr-hero{
  background: var(--page-bg) !important;
  border-bottom: 1px solid rgba(17,24,39,0.10) !important;
}

/* Cards */
html[data-theme="light"] .card{
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.10) !important;
  box-shadow:0 10px 22px rgba(17,24,39,0.08) !important;
}

html[data-theme="light"] .card-h{
  background: linear-gradient(180deg,#fff,#F6F8FD) !important;
  border-bottom:1px solid rgba(17,24,39,0.08) !important;
  color:#111827 !important;
}

html[data-theme="light"] .muted{ color: rgba(17,24,39,0.65) !important; }
html[data-theme="light"] .tiny{ color: rgba(17,24,39,0.55) !important; }

/* Logo tile */
html[data-theme="light"] .cr-logo{
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.10) !important;
  box-shadow:0 10px 18px rgba(17,24,39,0.10) !important;
}

/* ========= LAYOUT (matches your AskGamblers spacing) ========= */
html[data-theme="light"] .cr-shell{
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 44px;                  /* more breathing room on sides */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;  /* bigger sticky box */
  gap: 38px;
  align-items: stretch;
}

/* Keep right column pushed to the far right padding */
html[data-theme="light"] .cr-right{
  width: 480px;
  justify-self: end;
  align-self: stretch;
}

/* ====== STICKY FIXES ======
   If sticky still doesn't work after this,
   it means a parent still has overflow clip/hidden somewhere else. */
html[data-theme="light"] .cr-main,
html[data-theme="light"] .cr-shell,
html[data-theme="light"] .cr-left,
html[data-theme="light"] .cr-right{
  overflow: visible !important;
}

html[data-theme="light"] .cr-sticky{
  position: sticky !important;
  top: 110px;              /* matches header height-ish */
  align-self: start;
}

/* Sticky box styling */
html[data-theme="light"] .cr-visit{
  display:block;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg,#0AA6D6,#056F95) !important;
  color:#fff !important;
  text-align:center;
  font-weight:900;
  text-decoration:none;
  margin-top: 18px;
  margin-bottom: 12px;
  box-shadow: 0 16px 34px rgba(10,166,214,0.26);
}

html[data-theme="light"] .cr-offer{
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.12) !important;
  box-shadow: 0 18px 45px rgba(17,24,39,0.14) !important;
  border-radius: 18px !important;
  padding: 24px !important;
}

html[data-theme="light"] .cr-offer-kicker{ color: rgba(17,24,39,0.55) !important; }
html[data-theme="light"] .cr-offer-title{ color:#111827 !important; font-size: 1.55rem; line-height: 1.15; }
html[data-theme="light"] .cr-offer-sub{ color: rgba(17,24,39,0.65) !important; }
html[data-theme="light"] .cr-offer-terms{
  color: rgba(17,24,39,0.45) !important;
  font-size: 0.75rem;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(17,24,39,0.06);
}

html[data-theme="light"] .cr-offer-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid rgba(17,24,39,0.10);
  color: rgba(17,24,39,0.65);
}
html[data-theme="light"] .cr-offer-line strong{ color:#111827; }

/* CTA button style */
html[data-theme="light"] .cr-claim,
html[data-theme="light"] .btn-primary{
  background: #055A78 !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-theme="light"] .cr-claim:hover,
html[data-theme="light"] .btn-primary:hover{
  background: #0AA6D6 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 166, 214, 0.3) !important;
}

/* Tabs */
html[data-theme="light"] .cr-tabs{
  background: transparent !important;
  border: 0 !important;
  margin-top: 18px;
}
html[data-theme="light"] .cr-tabsbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
html[data-theme="light"] .cr-tab{
  border:1px solid rgba(17,24,39,0.12);
  background:#fff;
  color: rgba(17,24,39,0.70);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor:pointer;
}
html[data-theme="light"] .cr-tab.is-active{
  background: rgba(10,166,214,0.12);
  border-color: rgba(10,166,214,0.35);
  color:#055A78;
}

/* Panels grid */
html[data-theme="light"] .cr-panel.card{
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.10) !important;
  box-shadow:0 10px 22px rgba(17,24,39,0.08) !important;
  border-radius:18px;
  padding:14px;
}

html[data-theme="light"] .cr-info-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
html[data-theme="light"] .cr-info{
  border:1px solid rgba(17,24,39,0.10);
  border-radius:14px;
  background:#F6F8FD;
  padding:14px;
}
html[data-theme="light"] .cr-info-label{
  font-weight:900;
  color: rgba(17,24,39,0.62);
  margin-bottom: 6px;
}
html[data-theme="light"] .cr-info-label i{ color:#0AA6D6; margin-right: 8px; }
html[data-theme="light"] .cr-info-value{ color:#111827; }

/* Pros/cons icons */
html[data-theme="light"] .cr-like ul,
html[data-theme="light"] .cr-dislike ul{ list-style:none; padding:0; margin:0; }

html[data-theme="light"] .cr-like li,
html[data-theme="light"] .cr-dislike li{
  position:relative;
  padding-left:18px;
  margin:0 0 8px;
  color: rgba(17,24,39,0.70);
}
html[data-theme="light"] .cr-like li::before{
  content:"+";
  position:absolute;
  left:0;
  top:0;
  color:#16a34a;
  font-weight:900;
}
html[data-theme="light"] .cr-dislike li::before{
  content:"✕";
  position:absolute;
  left:0;
  top:0;
  color:#dc2626;
  font-weight:900;
}

/* Longform readability (not full width) */
html[data-theme="light"] .cr-longform{ max-width: 900px; }
html[data-theme="light"] .cr-longform,
html[data-theme="light"] .cr-longform p{ color:#1f2937 !important; }

/* Links inside longform - clean underline style */
html[data-theme="light"] .cr-longform a{
  text-decoration:none !important;
  border-bottom:2px solid rgba(10,166,214,0.20) !important;
  padding-bottom:1px;
  color:#0AA6D6 !important;
}
html[data-theme="light"] .cr-longform a:hover{
  color:#056F95 !important;
  border-bottom-color: rgba(10,166,214,0.40) !important;
}
/* Exclude bonus claim buttons from longform link styles */
html[data-theme="light"] .cr-bonus-claim,
html[data-theme="light"] .cr-bonus-claim:hover {
  color: #fff !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 900px){
  html[data-theme="light"] .cr-shell{ grid-template-columns: 1fr; padding: 0 18px; }
  html[data-theme="light"] .cr-right{ width: auto; justify-self: stretch; }
  html[data-theme="light"] .cr-sticky { position: static !important; }
  html[data-theme="light"] .cr-info-grid{ grid-template-columns: 1fr; }
    /* Hide desktop sidebar on mobile completely */
  html[data-theme="light"] .cr-right { display: none !important; }

  /* Bottom bar visible only on mobile */
  html[data-theme="light"] .cr-mcta{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245,247,251,0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(17,24,39,0.10);
  }

  html[data-theme="light"] .cr-mcta-btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border: 0;
    cursor: pointer;

    padding: 14px 14px;
    border-radius: 16px;

    background: linear-gradient(135deg,#0AA6D6,#056F95);
    color: #fff;

    font-weight: 900;
    font-size: 1.05rem;

    box-shadow: 0 16px 34px rgba(10,166,214,0.26);
  }

  html[data-theme="light"] .cr-mcta-arrow{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
  }

  /* Overlay behind the sheet */
  html[data-theme="light"] .cr-moverlay{
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.35);
  }

  /* Bottom sheet */
  html[data-theme="light"] .cr-msheet{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    background: #F5F7FB;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;

    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -22px 60px rgba(17,24,39,0.22);

    transform: translateY(110%);
    transition: transform .22s ease;
  }

  html[data-theme="light"] .cr-msheet.is-open{
    transform: translateY(0);
  }

  html[data-theme="light"] .cr-msheet-handle{
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(17,24,39,0.20);
    margin: 6px auto 12px;
  }

  /* Prevent page content being hidden behind the fixed bar */
  html[data-theme="light"] body{
    padding-bottom: 82px;
  }
}


/* === Sticky fix: do NOT make html/body the scroll container === */
html[data-theme="light"],
html[data-theme="light"] body {
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Re-enable normal page scroll on the document */
html[data-theme="light"] {
  overflow-y: auto !important;
}

html[data-theme="light"] body {
  overflow-y: auto !important;
  position: relative !important;
}

html[data-theme="light"] .cr-sticky{
  position: sticky !important;
  top: 92px;
  align-self: start;
}

html[data-theme="light"] html,
html[data-theme="light"] body {
  overflow: visible !important;
}

html[data-theme="light"] .cr-sticky {
  position: sticky;
  top: 104px; /* header height + breathing room */
}

/* Pros/Cons headings — H2 used for correct hierarchy but styled like H3 */
html[data-theme="light"] .cr-split-heading{
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

/* Pros/Cons side-by-side (desktop) */
html[data-theme="light"] .cr-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 18px;
}

/* Stack on smaller screens */
@media (max-width: 980px){
  html[data-theme="light"] .cr-split{ grid-template-columns: 1fr; }
}

/* Sticky box typography + CTA polish */
html[data-theme="light"] .cr-offer{
  font-weight: 600;
}

html[data-theme="light"] .cr-offer-title{
  font-weight: 900;
}

html[data-theme="light"] .cr-offer-sub{
  font-weight: 700;
}

/* Big premium claim button */
html[data-theme="light"] .cr-claim{
  width: 100%;
  display: block;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.4px;

  background: linear-gradient(135deg, #0AA6D6 0%, #0CC0F0 100%) !important;
  color: #fff !important;

  box-shadow: 0 4px 18px rgba(10, 166, 214, 0.3) !important;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: claimGlow 2.5s ease-in-out infinite;
}

@keyframes claimGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(10, 166, 214, 0.3); }
  50% { box-shadow: 0 6px 28px rgba(10, 166, 214, 0.45); }
}

html[data-theme="light"] .cr-claim:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 166, 214, 0.45) !important;
  animation: none;
}

html[data-theme="light"] .cr-claim:active{
  transform: translateY(-1px) scale(0.99);
}

.cr-claim-arrow{
  margin-left: 6px;
  font-size: 0.85em;
  transition: transform .2s ease;
}
html[data-theme="light"] .cr-claim:hover .cr-claim-arrow{
  transform: translateX(4px);
}

/* Make sticky box text feel stronger */
html[data-theme="light"] .cr-offer-kicker{
  font-weight: 900;
  letter-spacing: .10em;
}

html[data-theme="light"] .cr-offer-line span{
  font-weight: 700;
}

html[data-theme="light"] .cr-offer-line strong{
  font-weight: 900;
}

/* =========================================
   Recommended Casinos (casino review page)
   ========================================= */
html[data-theme="light"] .cr-recommended{
  padding: 10px 0 34px;
}

html[data-theme="light"] .cr-rec-title{
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 10px;
  color: #111827;
}

html[data-theme="light"] .cr-rec-sub{
  margin: 0 0 18px;
  color: rgba(17,24,39,0.65);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 520px;
}

/* the grid */
html[data-theme="light"] .cr-rec-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* recommended cards — base CSS handles everything, no light overrides needed */

html[data-theme="light"] .cr-tabs {
  margin-bottom: 16px;
}

html[data-theme="light"] .cr-panels {
  padding-top: 10px;
}

.cr-info-value a {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cr-info-value a::after {
  content: "↗";
  font-size: 0.85em;
  opacity: 0.7;
}

/* Mobile CTA elements hidden by default (desktop) */
html[data-theme="light"] .cr-mcta,
html[data-theme="light"] .cr-moverlay,
html[data-theme="light"] .cr-msheet{
  display: none;
}

@media (max-width: 900px){
  /* Only the bottom bar should be visible by default */
  html[data-theme="light"] .cr-mcta{
    display: block !important;
  }

  /* Overlay + sheet must respect the [hidden] attribute */
  html[data-theme="light"] .cr-moverlay[hidden],
  html[data-theme="light"] .cr-msheet[hidden]{
    display: none !important;
  }

  html[data-theme="light"] .cr-moverlay:not([hidden]),
  html[data-theme="light"] .cr-msheet:not([hidden]){
    display: block !important;
  }
}

/* Casino review longform: remove the "fake underline" (border-bottom) */
html[data-theme="light"] .cr-longform a {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

/* FINAL kill switch for claim button border */
html[data-theme="light"] .cr-claim {
  border: 0 !important;
  outline: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.cr-info-link{
  text-decoration: none;
  font-weight: 800;
  color: #0AA6D6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cr-info-link::after{
  content: "↗";
  font-size: 0.85em;
  opacity: 0.7;
}

.cr-info-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Author byline - light theme */
html[data-theme="light"] .cr-byline { color: rgba(17,24,39,0.50); }
html[data-theme="light"] .cr-byline-link { color: rgba(17,24,39,0.65); }
html[data-theme="light"] .cr-byline-link:hover { color: #0AA6D6; }


/* Casino Closed state */
html[data-theme="light"] .cr-closed-banner,
.cr-closed-banner {
  background: #fef2f2 !important;
  border-left: 4px solid #dc2626 !important;
  color: #7f1d1d !important;
  padding: 14px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}
html[data-theme="light"] .cr-closed-banner i,
.cr-closed-banner i { margin-right: 8px; color: #dc2626 !important; }
html[data-theme="light"] .cr-closed-banner a,
.cr-closed-banner a { color: #dc2626 !important; font-weight: 600; }

.cr-visit--closed {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: #e5e7eb !important;
  color: #9ca3af !important;
  text-align: center;
  font-weight: 900;
  margin-top: 18px;
  margin-bottom: 12px;
  cursor: default;
}

.cr-offer-title--closed {
  color: #9ca3af;
  font-size: 1rem;
}

.cr-claim--closed {
  background: #e5e7eb !important;
  color: #6b7280 !important;
  box-shadow: none !important;
  pointer-events: auto;
}
.cr-claim--closed:hover {
  background: #d1d5db !important;
  color: #374151 !important;
}
