/* ============================
   Shared Guide Styles
   Used by /guides/ and all sub-guide pages
   ============================ */
:root {
  --cc-primary: #1a56db;
  --cc-primary-dark: #1447b8;
  --cc-dark: #f8f9fa;
  --cc-darker: #ffffff;
  --cc-card: #f0f4f8;
  --cc-card-border: #d1d9e0;
  --cc-text: #1f2937;
  --cc-text-muted: #6b7280;
  --cc-green: #16a34a;
  --cc-red: #dc2626;
  --cc-blue: #1a56db;
  --cc-gold: #b45309;
  --cc-radius: 12px;
}
.g-page {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cc-darker);
  color: var(--cc-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.g-page *, .g-page *::before, .g-page *::after { box-sizing: border-box; }
.g-container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* Hero */
.g-hero {
  background: linear-gradient(135deg, #1a56db 0%, #1e3a5f 50%, #0f2744 100%);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}
.g-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.g-hero h1 span { color: var(--cc-primary); }
.g-hero .g-subtitle {
  font-size: 1.05rem;
  color: var(--cc-text-muted);
  max-width: 680px;
  margin: 0 auto 1.25rem;
}
.g-badge-row { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.g-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 0.25rem 0.6rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.g-updated { text-align: center; font-size: 0.83rem; color: var(--cc-text-muted); padding: 0.75rem 0 0; }

/* Breadcrumb */
.g-breadcrumb { padding: 0.75rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.7); background: linear-gradient(135deg, #1a56db 0%, #1e3a5f 50%, #0f2744 100%); margin: 0; padding: 0.6rem 2.5rem; }
.g-breadcrumb a { color: #fff; text-decoration: none; }
.g-breadcrumb a:hover { text-decoration: underline; }

/* TOC */
.g-toc {
  background: var(--cc-card); border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.g-toc h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cc-text-muted); margin: 0 0 0.6rem; padding: 0; border: none; }
.g-toc ol { margin: 0; padding-left: 1.25rem; }
.g-toc li { padding: 0.2rem 0; }
.g-toc a { color: var(--cc-blue); text-decoration: none; font-size: 0.9rem; }
.g-toc a:hover { text-decoration: underline; }

/* Sections */
.g-section { padding: 2.5rem 0; border: none; }
.g-section h2 + p, .g-section h3, .g-section p { border: none; }
.g-section + .g-section { border-top: none; }
.g-section h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 700; color: #1f2937;
  margin: 0 0 1rem; padding-bottom: 0;
}
.g-section h3 { font-size: 1.1rem; font-weight: 600; color: #1f2937; margin: 1.5rem 0 0.6rem; }
.g-section h4 { font-size: 0.95rem; font-weight: 600; color: var(--cc-primary); margin: 1.25rem 0 0.5rem; }
.g-section p { color: var(--cc-text); margin: 0 0 0.9rem; }
.g-section ul, .g-section ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.g-section li { margin-bottom: 0.35rem; color: var(--cc-text); }
.g-section a { color: #1a56db; text-decoration: none; }
.g-section a:hover { text-decoration: underline; }
.g-section strong { color: #1f2937; }

/* Info / Warning Boxes */
.g-infobox {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--cc-radius); padding: 1.15rem 1.35rem; margin: 1.25rem 0; font-size: 0.9rem;
}
.g-infobox strong { color: var(--cc-blue); }
.g-warnbox {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--cc-radius); padding: 1.15rem 1.35rem; margin: 1.25rem 0; font-size: 0.9rem;
}
.g-warnbox strong { color: var(--cc-red); }
.g-tipbox {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--cc-radius); padding: 1.15rem 1.35rem; margin: 1.25rem 0; font-size: 0.9rem;
}
.g-tipbox strong { color: var(--cc-green); }

/* Tables */
.g-table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: var(--cc-radius); border: 1px solid var(--cc-card-border); }
.g-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.g-table thead { background: var(--cc-card); }
.g-table th { padding: 0.75rem; text-align: left; font-weight: 600; color: var(--cc-primary); border-bottom: 2px solid var(--cc-primary); white-space: nowrap; }
.g-table td { padding: 0.65rem 0.75rem; vertical-align: middle; }
.g-table tbody tr { background: var(--cc-dark); transition: background 0.2s; }
.g-table tbody tr:hover { background: var(--cc-card); }

/* Casino Cards */
.g-casino-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; position: relative;
}
/* Card Header: rank circle + logo + name + rating */
.g-casino-card-rank {
  display: inline-block;
  background: #1a56db; color: #fff; font-weight: 700; font-size: 0.78rem;
  padding: 0.25rem 0.85rem; border-radius: 50px;
  margin-bottom: 0.6rem;
}
.g-card-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; padding-left: 1.75rem; }
.g-card-header img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.g-card-header-info { flex: 1; min-width: 0; }
.g-casino-card h3 { font-size: 1.15rem; margin: 0 0 0.15rem; color: #111827; line-height: 1.3; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.g-casino-card h3 img { width: 100px !important; height: 59px !important; object-fit: contain !important; border-radius: 10px !important; flex-shrink: 0; }
.g-card-badge { display: inline-block; background: #eff6ff; color: #1a56db; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 0.2rem; }
.g-card-rating { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: #1a56db; color: #fff; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.g-card-rating small { font-size: 0.6rem; font-weight: 400; opacity: 0.8; }
.g-casino-card .g-tagline { color: #1a56db; font-weight: 600; font-size: 0.85rem; margin: 0.25rem 0 0.75rem; }

/* Bonus highlight bar */
.g-bonus-bar { display: flex; align-items: center; gap: 1.25rem; padding: 0.65rem 1rem; background: #f8fafc; border-radius: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.g-bonus-bar span { font-size: 0.88rem; color: #374151; font-weight: 500; }
.g-bonus-bar strong { color: #111827; }

/* Score bars */
.g-scores { margin: 0.75rem 0; }
.g-score-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0; }
.g-score-label { font-size: 0.82rem; color: #6b7280; min-width: 70px; }
.g-score-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.g-score-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1a56db, #3b82f6); }
.g-score-num { font-size: 0.85rem; font-weight: 700; color: #111827; min-width: 1.75rem; text-align: right; }

/* Stats (fallback for pages not yet updated) */
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.5rem; margin: 0.75rem 0; }
.g-stat { background: #f8fafc; border: none; border-radius: 8px; padding: 0.6rem 0.4rem; text-align: center; }
.g-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; display: block; margin-bottom: 0.15rem; }
.g-stat-value { font-size: 0.95rem; font-weight: 700; color: #111827; }

/* Pros/Cons */
.g-proscons { display: block; margin: 0.75rem 0; }
@media (min-width: 601px) { .g-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; } }
.g-pros h4, .g-cons h4 { display: none; }
.g-pros ul, .g-cons ul { list-style: none; padding: 0; margin: 0; }
.g-pros li, .g-cons li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; font-size: 0.88rem; line-height: 1.5; }
.g-pros li::before { content: "\2713"; position: absolute; left: 0; color: #16a34a; font-weight: 700; font-size: 1rem; }
.g-cons li::before { content: "\2717"; position: absolute; left: 0; color: #dc2626; font-weight: 700; font-size: 1rem; }
.g-pros li { border-bottom: 1px solid #f3f4f6; }
.g-cons li { border-bottom: 1px solid #f3f4f6; }
.g-pros li:last-child, .g-cons li:last-child { border-bottom: none; }

/* Verdict Box */
.g-verdict {
  background: #f8fafc; border-left: 4px solid #1a56db;
  padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin-top: 1rem; font-size: 0.9rem;
}
.g-verdict strong { color: #1a56db; }

/* Crypto Tags */
.g-crypto-list { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.4rem 0; }
.g-crypto-tag { background: rgba(88,166,255,0.1); color: var(--cc-blue); padding: 0.12rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* Steps */
.g-steps { counter-reset: gstep; padding: 0; list-style: none; }
.g-steps li { counter-increment: gstep; position: relative; padding: 0.85rem 0 0.85rem 3.25rem; }
.g-steps li::before {
  content: counter(gstep); position: absolute; left: 0; top: 0.85rem;
  width: 2rem; height: 2rem; background: #1a56db; color: #fff;
  font-weight: 700; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem;
}
.g-steps li:last-child { }

/* FAQ */
.g-faq { margin: 0; padding: 0; list-style: none; }
.g-faq-item { }
.g-faq-q {
  display: block; width: 100%; background: none; border: none; text-align: left;
  padding: 1rem 2.5rem 1rem 0; font-size: 0.98rem; font-weight: 600; color: #1f2937;
  cursor: pointer; position: relative; font-family: inherit; line-height: 1.4;
}
.g-faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cc-primary); transition: transform 0.2s; }
.g-faq-item.open .g-faq-q::after { content: "\2212"; }
.g-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--cc-text-muted); font-size: 0.92rem; line-height: 1.6; }
.g-faq-item.open .g-faq-a { max-height: 500px; padding-bottom: 1rem; }

/* CTA */
.g-cta {
  display: inline-block; background: linear-gradient(135deg, #1a56db, #1447b8); color: #fff !important;
  font-weight: 700; font-size: 1.05rem; padding: 0.85rem 2.25rem; border-radius: 50px;
  text-decoration: none !important; transition: all 0.2s; margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3); letter-spacing: 0.3px;
}
.g-cta:hover { background: linear-gradient(135deg, #1447b8, #0f3d99); transform: translateY(-2px); color: #fff !important; text-decoration: none !important; box-shadow: 0 4px 14px rgba(26,86,219,0.4); }

/* Guide Hub Cards */
.g-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.g-hub-card {
  background: var(--cc-card); border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius); padding: 1.5rem; transition: border-color 0.2s, transform 0.2s;
  text-decoration: none; display: block;
}
.g-hub-card:hover { border-color: #1a56db; transform: translateY(-3px); text-decoration: none; box-shadow: 0 4px 16px rgba(26,86,219,0.1); }
.g-hub-card h3 { font-size: 1.05rem; color: #1f2937; margin: 0 0 0.4rem; }
.g-hub-card p { font-size: 0.85rem; color: var(--cc-text-muted); margin: 0 0 0.75rem; line-height: 1.5; }
.g-hub-card .g-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.g-hub-card .g-card-tag {
  font-size: 0.72rem; background: rgba(26,86,219,0.1); color: var(--cc-primary);
  padding: 0.12rem 0.5rem; border-radius: 4px; font-weight: 600;
}
.g-hub-card .g-card-link { color: var(--cc-primary); font-weight: 600; font-size: 0.88rem; }

/* Responsible Gambling */
.g-responsible {
  background: var(--cc-card); border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius); padding: 1.25rem; margin: 2rem 0;
  text-align: center; font-size: 0.85rem; color: var(--cc-text-muted);
}
.g-responsible strong { color: #1f2937; }
.g-responsible a { color: var(--cc-blue); }

/* Internal link highlight */
.g-related-guides {
  background: var(--cc-card); border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius); padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.g-related-guides h3 { font-size: 0.9rem; text-transform: uppercase; color: var(--cc-text-muted); margin: 0 0 0.6rem; letter-spacing: 0.5px; }
.g-related-guides ul { list-style: none; padding: 0; margin: 0; }
.g-related-guides li { padding: 0.3rem 0; }
.g-related-guides a { color: #1a56db; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.g-related-guides a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .site-logo { max-height: 70px !important; }
  .g-container { padding: 0 0.75rem; }
  .g-hero { padding: 1rem 0.75rem; }
  .g-hero h1 { font-size: 1.3rem; margin: 0 0 0.4rem; }
  .g-hero .g-subtitle { display: none; }
  .g-hero .g-badge-row { display: none; }
  .g-hero .g-updated { display: none; }
  .g-author-row { display: none !important; }
  .g-breadcrumb { display: none; }
  .g-casino-card { padding: 1rem 0.85rem; margin: 1rem 0; border-radius: 10px; }
  .g-casino-card h3 { font-size: 1.05rem; }
  .g-casino-card h3 img { width: 80px !important; height: 47px !important; }
  .g-stats { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .g-stat { padding: 0.5rem 0.25rem; border-radius: 6px; }
  .g-proscons { padding: 0.75rem; gap: 0.75rem; border-radius: 6px; }
  .g-verdict { padding: 0.75rem 0.85rem; }
  .g-section { padding: 1.5rem 0; }
  .g-breadcrumb { padding: 0.5rem 0.75rem; }
}

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; padding: 0.6rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.hb-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.hb-nav > a, .hb-nav .nav-dropdown > a { color: #374151; text-decoration: none; padding: 0.25rem 0.75rem; font-size: 1.05rem; font-weight: 700; white-space: nowrap; transition: color 0.2s; }
.hb-nav > a:hover, .hb-nav .nav-dropdown > a:hover { color: #1a56db; }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; min-width: 220px; padding: 0.5rem 0; z-index: 1001; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; color: #4b5563; text-decoration: none; padding: 0.4rem 1rem; font-size: 0.88rem; transition: background 0.2s, color 0.2s; }
.dropdown-menu a:hover { background: #f3f4f6; color: #1a56db; }

/* Hamburger Menu */
.hb-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-shrink: 0; }
.hb-toggle span { display: block; width: 24px; height: 2.5px; background: #374151; margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hb-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hb-toggle.open span:nth-child(2) { opacity: 0; }
.hb-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 768px) {
  .hb-toggle { display: block; }
  .hb-nav { display: none !important; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 0.5rem 1.5rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 1px solid #e5e7eb; z-index: 999; }
  .hb-nav.open { display: flex !important; }
  .hb-nav > a, .hb-nav .nav-dropdown > a { padding: 0.6rem 0 !important; font-size: 1rem !important; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}
