/* ===================================================
   BEST ONLINE CASINO CANADA — style.css
   Modern Editorial Casino Theme
   =================================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --clr-bg:          #0a0d14;
  --clr-surface:     #111520;
  --clr-surface-2:   #181d2e;
  --clr-border:      #1e2540;
  --clr-gold:        #c9a84c;
  --clr-gold-light:  #e8c97a;
  --clr-gold-glow:   rgba(201,168,76,0.15);
  --clr-text:        #e2e8f0;
  --clr-muted:       #8a95b0;
  --clr-accent:      #3b82f6;
  --clr-green:       #22c55e;
  --clr-red:         #ef4444;
  --clr-white:       #ffffff;

  --font-body:    'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 24px rgba(201,168,76,0.2);

  --max-w:      780px;
  --max-w-wide: 1100px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--clr-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-gold-light); text-decoration: underline; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-gold); border-radius: 3px; }

/* ===================================================
   NAVIGATION
   =================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,13,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-gold);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo .logo-icon {
  font-size: 1.3rem;
}

.nav-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clr-gold);
  color: var(--clr-bg);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,13,20,0.1) 0%,
    rgba(10,13,20,0.6) 50%,
    rgba(10,13,20,0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-gold-glow);
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--clr-white);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--clr-gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--clr-muted);
}

.hero-meta-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* ===================================================
   ARTICLE LAYOUT
   =================================================== */
.article-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr min(var(--max-w), 100%) 1fr;
}

.article-wrap > * {
  grid-column: 2;
}

.article-wrap .full-bleed {
  grid-column: 1 / -1;
  width: 100%;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
.article-body {
  padding: 64px 0 80px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--clr-white);
  margin-top: 60px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-border);
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--clr-gold);
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-gold-light);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body p {
  color: var(--clr-text);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 20px;
}

.article-body p strong {
  color: var(--clr-white);
  font-weight: 600;
}

/* ===================================================
   STAT CARDS ROW
   =================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
}

.stat-card:hover {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-gold);
}

.stat-card .stat-val {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================================================
   INLINE IMAGE (with caption)
   =================================================== */
.inline-img {
  margin: 44px 0;
}

.inline-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
}

.inline-img figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--clr-muted);
  text-align: center;
  font-style: italic;
}

/* ===================================================
   TABLES
   =================================================== */
.table-wrap {
  overflow-x: auto;
  margin: 44px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-card);
}

.table-title {
  background: var(--clr-surface-2);
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  background: var(--clr-surface-2);
  color: var(--clr-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background .2s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover {
  background: rgba(201,168,76,0.05);
}

tbody td {
  padding: 13px 16px;
  color: var(--clr-text);
  vertical-align: middle;
}

tbody td:first-child {
  font-weight: 600;
  color: var(--clr-white);
}

.badge-igo {
  display: inline-block;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

.stars { color: var(--clr-gold); letter-spacing: -1px; }

.check-yes  { color: var(--clr-green); font-weight: 700; }
.check-no   { color: var(--clr-red);   font-weight: 700; }
.check-part { color: var(--clr-gold);  font-weight: 700; }

/* safe vs unsafe table special rows */
.row-safe td:nth-child(2) { color: var(--clr-green); }
.row-unsafe td:nth-child(3) { color: var(--clr-red); }

/* ===================================================
   CALLOUT BOXES
   =================================================== */
.callout {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.callout-body p { margin-bottom: 0; }
.callout-body strong { display: block; margin-bottom: 6px; font-size: 0.95rem; }

.callout-warning {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
}
.callout-warning .callout-body strong { color: #fca5a5; }
.callout-warning .callout-body p { color: #fca5a5; font-size: 0.9rem; opacity: 0.85; }

.callout-info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.3);
}
.callout-info .callout-body strong { color: #93c5fd; }
.callout-info .callout-body p { color: #93c5fd; font-size: 0.9rem; opacity: 0.85; }

.callout-gold {
  background: var(--clr-gold-glow);
  border: 1px solid rgba(201,168,76,0.4);
}
.callout-gold .callout-body strong { color: var(--clr-gold-light); }
.callout-gold .callout-body p { color: var(--clr-gold-light); font-size: 0.9rem; opacity: 0.85; }

/* ===================================================
   PROS / CONS GRID
   =================================================== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.pros-card, .cons-card {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid;
}

.pros-card {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.25);
}

.cons-card {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.25);
}

.pros-card h4, .cons-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-card h4 { color: var(--clr-green); }
.cons-card h4 { color: var(--clr-red); }

.pros-card ul, .cons-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pros-card li, .cons-card li {
  font-size: 0.88rem;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
  color: var(--clr-text);
}

.pros-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-green);
  font-weight: 700;
}

.cons-card li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--clr-red);
  font-weight: 700;
}

/* ===================================================
   HIGHLIGHT QUOTE
   =================================================== */
.highlight-quote {
  border-left: 3px solid var(--clr-gold);
  margin: 36px 0;
  padding: 20px 28px;
  background: var(--clr-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-quote p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--clr-gold-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===================================================
   RESPONSIBLE GAMBLING FOOTER BOX
   =================================================== */
.rg-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-gold);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 56px 0 0;
}

.rg-box h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 10px;
}

.rg-box p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-gold);
  background: var(--clr-gold-glow);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background .2s, border-color .2s;
  text-decoration: none;
}

.rg-link:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--clr-gold);
  text-decoration: none;
}

/* ===================================================
   SITE FOOTER
   =================================================== */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 40px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--clr-muted);
  max-width: 680px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.site-footer p:last-child { margin-bottom: 0; color: #4a5568; font-size: 0.75rem; }

/* ===================================================
   DIVIDER
   =================================================== */
.divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 48px 0;
}

/* ===================================================
   SECTION LABEL
   =================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 8px;
}

/* ===================================================
   READING PROGRESS BAR
   =================================================== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  width: 0%;
  z-index: 999;
  transition: width .1s linear;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
#back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--clr-gold);
  color: var(--clr-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

#back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-top:hover { transform: translateY(-3px); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .pros-cons  { grid-template-columns: 1fr; }
  .hero       { min-height: 420px; }
  .hero h1    { font-size: 1.8rem; }
  .nav-badge  { display: none; }
  .article-body h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-meta  { flex-direction: column; gap: 8px; }
  .rg-links   { flex-direction: column; }
}
