/*
Theme Name: Vergelijkblok
Description: Custom theme for gokkenzondercruks.net. Comparison site design (D2), Manrope, indigo with colour accents. Class prefix vgb-.
Version: 1.0.11
Author: gokkenzondercruks.net
Text Domain: vergelijkblok
Requires PHP: 8.0
*/

:root {
  --vgb-ink: #0B1F3A;
  --vgb-text: #334155;
  --vgb-muted: #475569;
  --vgb-indigo: #4338CA;
  --vgb-indigo-dark: #3730A3;
  --vgb-violet: #7C3AED;
  --vgb-amber: #F59E0B;
  --vgb-cyan: #06B6D4;
  --vgb-ground: #F7F7FC;
  --vgb-pale: #EEF0FF;
  --vgb-pale-violet: #F3E8FF;
  --vgb-line: #E2E8F0;
  --vgb-white: #FFFFFF;
  --vgb-max: 1180px;
  --vgb-radius-s: 10px;
  --vgb-radius-m: 16px;
  --vgb-radius-l: 20px;
  --vgb-font: 'Manrope', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--vgb-white); color: var(--vgb-ink); font-family: var(--vgb-font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--vgb-indigo); }
a:hover { color: var(--vgb-ink); }
:focus-visible { outline: 3px solid var(--vgb-amber); outline-offset: 2px; }
.vgb-skip { position: absolute; left: -9999px; top: 8px; background: var(--vgb-ink); color: var(--vgb-white); padding: 10px 14px; border-radius: var(--vgb-radius-s); z-index: 100; }
.vgb-skip:focus { left: 8px; }
.vgb-wrap { max-width: var(--vgb-max); margin: 0 auto; padding: 0 24px; }

/* Headings */
h1, h2, h3 { color: var(--vgb-ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
h2 { font-size: clamp(23px, 2.4vw, 28px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 8px; }

/* Header and navigation */
.vgb-header { position: relative; z-index: 2; }
.vgb-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.vgb-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--vgb-ink); text-decoration: none; text-transform: lowercase; }
.vgb-nav ul { list-style: none; margin: 0; padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 4px; background: var(--vgb-white); border-radius: 999px; }
.vgb-nav:not(:has(li)) { display: none; }
.vgb-nav a { display: block; padding: 12px 14px; color: var(--vgb-ink); font-weight: 600; text-decoration: none; border-radius: 999px; }
.vgb-nav .current-menu-item > a, .vgb-nav .current_page_item > a { font-weight: 800; background: var(--vgb-pale); }

/* Hero */
.vgb-hero { position: relative; overflow: hidden; background: var(--vgb-ground); }
.vgb-hero__shapes { position: absolute; top: 0; right: 0; bottom: 0; width: min(42%, 600px); overflow: hidden; pointer-events: none; }
.vgb-hero__shapes span { position: absolute; transform: skewY(-12deg); }
.vgb-hero__shapes span:nth-child(1) { top: -18%; right: -25%; width: 105%; height: 70%; background: var(--vgb-indigo); }
.vgb-hero__shapes span:nth-child(2) { top: 28%; right: -15%; width: 70%; height: 38%; background: var(--vgb-violet); }
.vgb-hero__shapes span:nth-child(3) { top: 58%; right: 42%; width: 42%; height: 18%; background: var(--vgb-amber); }
.vgb-hero__shapes span:nth-child(4) { top: 66%; right: -6%; width: 36%; height: 16%; background: var(--vgb-cyan); }
.vgb-hero__body { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; gap: 14px; padding: 12px 0 32px; }
.vgb-hero__checked { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #E3E5FB; color: var(--vgb-indigo-dark); font-size: 13px; font-weight: 700; }
.vgb-hero__byline { margin: 0; font-size: 15px; color: var(--vgb-muted); }
.vgb-hero__intro { margin: 0; max-width: 620px; font-size: 18px; color: var(--vgb-text); }
.vgb-hero__intro p { margin: 0 0 10px; }
.vgb-hero--calm .vgb-hero__shapes { display: none; }
.vgb-hero--calm { background: var(--vgb-white); border-bottom: 1px solid var(--vgb-line); }
@media (max-width: 900px) {
  .vgb-hero__shapes { width: 38%; }
  .vgb-hero__shapes span:nth-child(3), .vgb-hero__shapes span:nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .vgb-hero__shapes { display: none; }
  .vgb-hero {
    background-image: linear-gradient(to right, #4338CA 0 25%, #7C3AED 25% 50%, #F59E0B 50% 75%, #06B6D4 75% 100%);
    background-size: 100% 6px;
    background-repeat: no-repeat;
    background-position: top left;
  }
}


/* Main content flow */
.vgb-main { padding: 0 0 56px; }
.vgb-content { display: flex; flex-direction: column; gap: 40px; }
.vgb-content > * { margin-top: 0; margin-bottom: 0; }
.vgb-content p, .vgb-content li { color: var(--vgb-text); max-width: 72ch; }
.vgb-hero + .vgb-main .vgb-content > .vgb-toplist:first-child { margin-top: -8px; }

/* Toplist card: wrap the Brand Management shortcode in <div class="vgb-toplist"> */
.vgb-toplist { position: relative; z-index: 1; background: var(--vgb-white); border-radius: var(--vgb-radius-l); box-shadow: 0 10px 28px rgba(11, 31, 58, 0.10); padding: 24px; }
.vgb-hero + .vgb-main .vgb-toplist:first-child { margin-top: -24px; }
.vgb-toplist__note { margin: 10px 0 0; font-size: 13px; color: var(--vgb-muted); }

/* Fact cards */
.vgb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.vgb-fact { border-radius: var(--vgb-radius-m); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.vgb-fact__label { font-size: 14px; font-weight: 700; }
.vgb-fact__value { font-size: 22px; font-weight: 800; line-height: 1.2; }
.vgb-fact__pos { font-size: 14px; }
.vgb-fact--indigo { background: var(--vgb-indigo); color: var(--vgb-white); }
.vgb-fact--indigo .vgb-fact__label, .vgb-fact--indigo .vgb-fact__pos { color: #E0E7FF; }
.vgb-fact--violet { background: var(--vgb-violet); color: var(--vgb-white); }
.vgb-fact--violet .vgb-fact__label, .vgb-fact--violet .vgb-fact__pos { color: #EDE9FE; }
.vgb-fact--amber { background: #FEF3C7; color: var(--vgb-ink); }
.vgb-fact--amber .vgb-fact__label { color: #92400E; }
.vgb-fact--amber .vgb-fact__pos { color: #78350F; }

/* Highlighted passage */
.vgb-tip { border-radius: var(--vgb-radius-m); background: #ECFEFF; padding: 18px 22px; font-size: 17px; font-weight: 600; color: #134E4A; }
.vgb-tip p { margin: 0; color: inherit; }

/* Comparison table: wrap tables in <div class="vgb-table"> */
.vgb-table { overflow-x: auto; border-radius: var(--vgb-radius-m); border: 1px solid var(--vgb-line); box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08); }
.vgb-table table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.vgb-table th { text-align: left; background: var(--vgb-ink); color: var(--vgb-white); padding: 14px 16px; font-weight: 700; }
.vgb-table td { padding: 14px 16px; border-top: 1px solid var(--vgb-line); color: var(--vgb-text); }
.vgb-table td:first-child { font-weight: 700; color: var(--vgb-ink); }
.vgb-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--vgb-pale); color: var(--vgb-indigo-dark); font-weight: 700; font-size: 14px; }
.vgb-chip--violet { background: var(--vgb-pale-violet); color: #5B21B6; }
.vgb-checked { color: var(--vgb-indigo); font-weight: 600; }

/* Mini reviews */
.vgb-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.vgb-review { border: 1px solid var(--vgb-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.vgb-review__band { height: 10px; background: var(--vgb-indigo); }
.vgb-review:nth-child(3n+2) .vgb-review__band { background: var(--vgb-violet); }
.vgb-review:nth-child(3n+3) .vgb-review__band { background: var(--vgb-cyan); }
.vgb-review__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.vgb-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vgb-review__head h3 { margin: 0; }
.vgb-review__pos { font-size: 13px; font-weight: 700; color: var(--vgb-indigo-dark); }
.vgb-review__shot { border-radius: var(--vgb-radius-s); overflow: hidden; background: var(--vgb-ground); }
.vgb-review__shot img { display: block; width: 100%; }
.vgb-review__insight { margin: 0; padding: 12px 14px; border-radius: var(--vgb-radius-s); background: var(--vgb-pale); font-size: 15px; font-weight: 600; color: #1E1B4B; }
.vgb-review__points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vgb-review__points li { padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #DCFCE7; color: #166534; }
.vgb-review__points li.vgb-minus { background: #F1F5F9; color: var(--vgb-text); }
.vgb-review__facts { font-size: 14px; }
.vgb-review__meta { margin: 0; font-size: 13px; color: var(--vgb-muted); }

/* CRUKS block */
.vgb-cruks { border-radius: 18px; background: var(--vgb-ink); color: var(--vgb-white); padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-start; }
.vgb-cruks h2 { color: var(--vgb-white); flex: 1 1 220px; max-width: 300px; margin: 0; font-size: 21px; line-height: 1.25; }
.vgb-cruks p { flex: 3 1 420px; margin: 0; color: #E2E8F0; }
.vgb-cruks a { color: #C7CBFF; }

/* FAQ: <details class="vgb-faq"> */
.vgb-faq { border: 1px solid var(--vgb-line); border-radius: 12px; padding: 16px 20px; }
.vgb-faq + .vgb-faq { margin-top: 10px; }
.vgb-content > .vgb-faq + .vgb-faq { margin-top: -30px; }
.vgb-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.vgb-faq p { margin: 10px 0 0; }

/* Hub grid (Uitleg and Alle casinos vergeleken) */
.vgb-hubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.vgb-hubcard { border: 1px solid var(--vgb-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.vgb-hubcard::before { content: ""; height: 8px; background: var(--vgb-indigo); }
.vgb-hubcard:nth-child(3n+2)::before { background: var(--vgb-violet); }
.vgb-hubcard:nth-child(3n+3)::before { background: var(--vgb-cyan); }
.vgb-hubcard__body { padding: 18px 20px; }
.vgb-hubcard__body strong { display: block; font-size: 19px; color: var(--vgb-ink); margin-bottom: 4px; }
.vgb-hubcard__body span { color: var(--vgb-text); font-size: 15px; }
.vgb-hubcard:hover strong { color: var(--vgb-indigo); }

/* Fallback list (before pages exist) */
.vgb-list-item h2 { font-size: 26px; margin: 0 0 6px; }
.vgb-list-item h2 a { color: var(--vgb-ink); text-decoration: none; }
.vgb-list-item h2 a:hover { color: var(--vgb-indigo); }
.vgb-main--plain { padding-top: 32px; }

/* Informational pages */
.vgb-type-informational .vgb-content { max-width: 780px; }
.vgb-crosslink { border-radius: var(--vgb-radius-m); background: var(--vgb-pale); padding: 20px 24px; }
.vgb-crosslink p { margin: 0; color: var(--vgb-ink); font-weight: 600; }

/* Author box and page */
.vgb-author { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--vgb-line); padding-top: 24px; }
.vgb-author img { border-radius: 50%; flex: 0 0 auto; }
.vgb-author p { margin: 4px 0 0; font-size: 15px; }

/* Footer */
.vgb-nowrap { white-space: nowrap; }
.vgb-footer { background: var(--vgb-ground); border-top: 1px solid var(--vgb-line); }
.vgb-footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--vgb-text); }
.vgb-footer__legal { max-width: 560px; margin: 0; }
.vgb-footer__legal strong { color: var(--vgb-ink); }
.vgb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 1.0.6: space under the hero, informational alignment, colour blocks on desktop */
.vgb-main { padding-top: 32px; }
body .vgb-hero + .vgb-main .vgb-content > .vgb-toplist:first-child { margin-top: -40px; }
.vgb-type-informational .vgb-content { max-width: var(--vgb-max); }
.vgb-type-informational .vgb-content > * { max-width: 780px; }
@media (min-width: 601px) {
  .vgb-hero:not(.vgb-hero--calm) .vgb-hero__shapes { display: block; }
}
