/* =============================================================
   CasinoBonuser.com — Guider hub template
   Body: cb-guider-hub  /  Prefix: .cb-gh-*  + .cb-ar-toplist-* (sidebar)
   ============================================================ */

:root {
  --cb-bg: #f7f8fa;
  --cb-card-bg: #ffffff;
  --cb-border: #e5e8ec;
  --cb-text: #0f1923;
  --cb-text-muted: #5a6573;
  --cb-text-faint: #8e98a4;
  --cb-teal: #11ac84;
  --cb-teal-dark: #0d8b6a;
  --cb-green: #7fc64a;
  --cb-hero-bg: #0f1923;
}

body.cb-guider-hub {
  background: var(--cb-bg);
  color: var(--cb-text);
  -webkit-font-smoothing: antialiased;
}

/* Hide leftover wrappers from default page template */
body.cb-guider-hub .article-toc,
body.cb-guider-hub .cgl-author-block,
body.cb-guider-hub .cgl-cta-box,
body.cb-guider-hub .cbm-bc,
body.cb-guider-hub .cbm-hero {
  display: none !important;
}

/* =============================================================
   HERO
   ============================================================ */
.cb-gh-hero {
  background:
    linear-gradient(180deg, rgba(17,172,132,.18) 0%, rgba(17,172,132,0) 70%),
    var(--cb-hero-bg);
  color: #fff;
  padding: 28px 16px 56px;
  position: relative;
  overflow: hidden;
}
.cb-gh-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 28px;
  background: var(--cb-bg);
  border-radius: 14px 14px 0 0;
}
.cb-gh-breadcrumb {
  max-width: 1100px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.cb-gh-breadcrumb a,
.cb-gh-breadcrumb a:visited {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.cb-gh-breadcrumb a:hover { color: var(--cb-teal); }
.cb-gh-breadcrumb .sep { color: rgba(255,255,255,.35); margin: 0 4px; }
.cb-gh-hero-inner { max-width: 1100px; margin: 0 auto; }
.cb-gh-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cb-teal);
  background: rgba(17,172,132,.12);
  border: 1px solid rgba(17,172,132,.3);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.cb-gh-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff !important;
}
.cb-gh-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 720px;
}
.cb-gh-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.cb-gh-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.cb-gh-meta-item svg { opacity: .65; }

/* =============================================================
   SECTIONS
   ============================================================ */
.cb-gh-main { min-width: 0; }
.cb-gh-section { margin-bottom: 32px; }
.cb-gh-h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cb-text);
}
.cb-gh-section-lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--cb-text-muted);
  line-height: 1.55;
}

/* =============================================================
   SUBCATEGORY CARDS
   ============================================================ */
.cb-gh-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .cb-gh-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cb-gh-cats { grid-template-columns: 1fr 1fr; gap: 14px; } }

.cb-gh-cat,
.cb-gh-cat:visited {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--cb-text);
  transition: all .15s;
}
.cb-gh-cat:hover {
  border-color: rgba(17,172,132,.4);
  box-shadow: 0 8px 24px rgba(15,25,35,.06);
  transform: translateY(-2px);
}
.cb-gh-cat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(17,172,132,.15), rgba(17,172,132,.05));
  color: var(--cb-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-gh-cat-icon svg { width: 22px; height: 22px; }
.cb-gh-cat:hover .cb-gh-cat-icon {
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-dark));
  color: #fff;
}
.cb-gh-cat-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.cb-gh-cat-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cb-text);
  letter-spacing: -0.01em;
}
.cb-gh-cat:hover .cb-gh-cat-title { color: var(--cb-teal-dark); }
.cb-gh-cat-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--cb-text-muted);
}
.cb-gh-cat-count {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cb-text-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cb-gh-cat:hover .cb-gh-cat-count { color: var(--cb-teal-dark); }
.cb-gh-cat-count svg { transition: transform .15s; }
.cb-gh-cat:hover .cb-gh-cat-count svg { transform: translateX(3px); }

/* =============================================================
   EDITORIAL CONTENT (rendered from post_content)
   ============================================================ */
.cb-gh-editorial {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  padding: 24px 28px;
}
.cb-gh-editorial > *:first-child { margin-top: 0; }
.cb-gh-editorial > *:last-child { margin-bottom: 0; }
.cb-gh-editorial h2 {
  margin: 24px 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--cb-text);
  letter-spacing: -0.01em;
}
.cb-gh-editorial h2:first-child { margin-top: 0; }
.cb-gh-editorial h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cb-text);
}
.cb-gh-editorial p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cb-text);
}
.cb-gh-editorial ul,
.cb-gh-editorial ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.cb-gh-editorial li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
}
.cb-gh-editorial a {
  color: var(--cb-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cb-gh-editorial a:hover { color: var(--cb-teal); }

/* =============================================================
   BOTTOM CTA CARD
   ============================================================ */
.cb-gh-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--cb-hero-bg) 0%, #1a2a36 100%);
  color: #fff;
  border-radius: 12px;
}
.cb-gh-cta-text h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.cb-gh-cta-text p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.cb-gh-cta-btn,
.cb-gh-cta-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--cb-teal);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s;
}
.cb-gh-cta-btn:hover { background: var(--cb-teal-dark); }

/* =============================================================
   SIDEBAR — re-uses .cb-ar-toplist-* (defensive copy of the rules)
   ============================================================ */
.cb-ar-toplist-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15,25,35,.04);
}
.cb-ar-toplist-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cb-text-faint);
  margin-bottom: 10px;
}
.cb-ar-toplist-items {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
}
.cb-ar-toplist-item,
.cb-ar-toplist-item:visited {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px;
  background: #fafbfc; border: 1px solid transparent;
  text-decoration: none !important; color: var(--cb-text);
  transition: all .15s;
}
.cb-ar-toplist-item:hover {
  background: #fff; border-color: rgba(17,172,132,.3);
  box-shadow: 0 4px 12px rgba(15,25,35,.06);
  transform: translateY(-1px);
}
.cb-ar-toplist-rank {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 800; flex-shrink: 0; color: #fff;
}
.cb-ar-toplist-rank-1 { background: linear-gradient(135deg, #f5a623, #e89015); }
.cb-ar-toplist-rank-2 { background: linear-gradient(135deg, #9ba8b4, #7a8693); }
.cb-ar-toplist-rank-3 { background: linear-gradient(135deg, #cd7f32, #a06425); }
.cb-ar-toplist-logo {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 6px; background: #fff;
  border: 1px solid var(--cb-border); flex-shrink: 0;
}
.cb-ar-toplist-logo-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-dark));
  color: #fff; font-weight: 800; font-size: 13px; border: none;
}
.cb-ar-toplist-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cb-ar-toplist-name {
  font-weight: 700; font-size: 13px; line-height: 1.2; color: var(--cb-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-ar-toplist-bonus {
  font-size: 11px; color: var(--cb-text-muted); line-height: 1.2;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-ar-toplist-cta,
.cb-ar-toplist-cta:visited {
  display: block; text-align: center; padding: 10px 12px;
  background: var(--cb-teal); color: #fff !important;
  text-decoration: none !important; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: background .15s;
}
.cb-ar-toplist-cta:hover { background: var(--cb-teal-dark); }
.cb-ar-toplist-tc {
  margin-top: 8px; font-size: 10px; color: var(--cb-text-faint);
  text-align: center; line-height: 1.4;
}

/* =============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 599px) {
  .cb-gh-hero { padding: 22px 14px 48px; }
  .cb-gh-title { font-size: 26px; }
  .cb-gh-lead { font-size: 15px; }
  .cb-gh-editorial { padding: 18px 18px; }
  .cb-gh-cta-card { padding: 18px 18px; }
}

/* Logo-chip mørk bakgrunn (hvite/_dark-logoer vises) 2026-06-18 */
.cb-ar-toplist-logo{background:#0f172a !important;border-color:#0f172a !important}
