/* ==========================================================================
   Geschreven Gedichten — Verfijnde Donkere Weergave & Voorpagina (v3.1.30)
   Uitsluitend actief bij html[data-gg-theme="dark"]. Lichte modus blijft 100% gelijk.
   ========================================================================== */
@layer gg-dark-priority {

  /* ------------------------------------------------------------------------
     1. Basis canvas & variabelen
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"],
  html[data-gg-theme="dark"] body:not(.wp-admin),
  html[data-gg-theme="dark"] body.gg-literary-canvas:not(.wp-admin),
  html[data-gg-theme="dark"] body.gg-literary-canvas:not(.wp-admin) #ggw-site {
    background-color: #15232e !important;
    background-image:
      radial-gradient(circle at 12% 4%, rgba(240, 209, 166, 0.06), transparent 36%),
      radial-gradient(circle at 88% 18%, rgba(74, 138, 181, 0.08), transparent 40%) !important;
    color: #eef3f7 !important;
  }

  html[data-gg-theme="dark"] .gg-poezie-inhoud {
    --bg: #15232e;
    --surface: #1d3140;
    --soft: #253d4f;
    --petrol: #f6efe4;
    --petrol-deep: #11222e;
    --sand: #f0d1a6;
    --terracotta: #f0d1a6;
    --text: #eef3f7;
    --muted: #b9cad5;
    --border: rgba(240, 209, 166, 0.16);
    --shadow: 0 14px 34px rgba(7, 16, 23, 0.38);
    background: transparent !important;
    color: #eef3f7 !important;
  }

  /* ------------------------------------------------------------------------
     2. Header, merknaam, knoppen & hoofdnavigatie in donkere weergave
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] body:not(.wp-admin) #vv49-shell-header {
    background: rgba(21, 35, 46, 0.96) !important;
    border-bottom-color: rgba(240, 209, 166, 0.12) !important;
  }

  html[data-gg-theme="dark"] body:not(.wp-admin) #vv49-shell-header .vv58-header-shell {
    background: #1b2d3b !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
    box-shadow: 0 14px 36px rgba(6, 14, 20, 0.42) !important;
  }

  html[data-gg-theme="dark"] body:not(.wp-admin) #vv49-shell-header .vv58-topline {
    background: transparent !important;
    border-bottom-color: rgba(240, 209, 166, 0.12) !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg340-logo-badge {
    background: #132533 !important;
    border: 1px solid rgba(240, 209, 166, 0.25) !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg340-word-main {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg340-word-accent {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg340-word-tld,
  html[data-gg-theme="dark"] #vv49-shell-header .vv58-tagline {
    color: #aebfcc !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg-modern-header-account,
  html[data-gg-theme="dark"] #vv49-shell-header .vv49-action,
  html[data-gg-theme="dark"] #vv49-shell-header button.gg-theme-toggle {
    background: #243b4d !important;
    border: 1px solid rgba(240, 209, 166, 0.22) !important;
    color: #f6efe4 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg-modern-header-account:hover,
  html[data-gg-theme="dark"] #vv49-shell-header .vv49-action:hover,
  html[data-gg-theme="dark"] #vv49-shell-header button.gg-theme-toggle:hover {
    background: #2d485d !important;
    border-color: #f0d1a6 !important;
    color: #ffffff !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg-modern-header-cta {
    background: #f0d1a6 !important;
    border: 1px solid #f0d1a6 !important;
    color: #132e3c !important;
    font-weight: 700 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg-modern-header-cta:hover {
    background: #f7dfc0 !important;
    color: #0e222d !important;
  }

  /* Navigatierij */
  html[data-gg-theme="dark"] #vv49-shell-header .vv58-navrow {
    background: #172734 !important;
    border-top: 1px solid rgba(240, 209, 166, 0.14) !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > .gg126-direct-nav,
  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > .gg126-nav-group {
    border-right-color: rgba(240, 209, 166, 0.12) !important;
    color: #e6eff4 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > .gg126-direct-nav :is(span, svg),
  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > .gg126-nav-group > :is(a.gg126-menu-label, button.gg126-nav-toggle),
  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > .gg126-nav-group > :is(a.gg126-menu-label, button.gg126-nav-toggle) :is(span, svg, .vv49-chevron) {
    color: #e6eff4 !important;
    stroke: currentColor !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header nav.gg126-navigation > :is(
    .gg126-direct-nav.is-current,
    .gg126-direct-nav[aria-current="page"],
    .gg126-direct-nav:hover,
    .gg126-direct-nav:focus-visible,
    .gg126-nav-group.is-current,
    .gg126-nav-group:hover,
    .gg126-nav-group:focus-within,
    .gg126-nav-group:has(> .gg126-nav-toggle[aria-expanded="true"])
  ) {
    background: #274459 !important;
    color: #ffffff !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg126-mega-panel {
    background: #1b2d3b !important;
    border-color: rgba(240, 209, 166, 0.18) !important;
    box-shadow: 0 22px 48px rgba(5, 12, 18, 0.55) !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg126-mega-panel .gg28-row-title {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg126-mega-panel .gg28-row-links > a {
    color: #e6eff4 !important;
  }

  html[data-gg-theme="dark"] #vv49-shell-header .gg126-mega-panel .gg28-row-links > a:is(:hover, :focus-visible, [aria-current="page"]) {
    background: #274459 !important;
    border-color: #3a5d75 !important;
    color: #ffffff !important;
  }

  /* ------------------------------------------------------------------------
     3. Voorpagina Hero
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero {
    border: 1px solid rgba(240, 209, 166, 0.18) !important;
    box-shadow: 0 18px 42px rgba(6, 14, 20, 0.42) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero .eyebrow {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero h1 {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero h1 em {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero .hero-lead {
    color: #dce7ee !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero__primary {
    background: #f0d1a6 !important;
    color: #132e3c !important;
    border-color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero__primary:hover {
    background: #f7dfc0 !important;
    color: #0e222d !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-hero__actions a:not(.gg-home-hero__primary) {
    color: #eef4f8 !important;
  }

  /* ------------------------------------------------------------------------
     4. Voorpagina: 3 keuzekaarten (.gg-poetry-paths / .gg-path-card)
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-poetry-paths > .gg-path-card {
    background: #1d3140 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
    box-shadow: 0 12px 28px rgba(6, 14, 20, 0.32) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-poetry-paths > .gg-path-card:hover {
    background: #22394a !important;
    border-color: #f0d1a6 !important;
    box-shadow: 0 16px 34px rgba(6, 14, 20, 0.44) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-path-card__media {
    border-bottom: 1px solid rgba(240, 209, 166, 0.12) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-path-card__media img {
    filter: brightness(0.92) contrast(1.03);
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-path-card__body {
    background: transparent !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-path-card__body h2 {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-path-card__body p {
    color: #c7d6e0 !important;
  }

  /* ------------------------------------------------------------------------
     5. Sectiekoppen & algemene knoppen op de voorpagina
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .eyebrow {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .section-head h2,
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card h2,
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card h3 {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .section-head h2 em,
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card h2 em {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .btn-soft {
    background: #213747 !important;
    border: 1px solid rgba(240, 209, 166, 0.25) !important;
    color: #f6efe4 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .btn-soft:hover {
    background: #2b475b !important;
    border-color: #f0d1a6 !important;
    color: #ffffff !important;
  }

  /* ------------------------------------------------------------------------
     6. Gedichtenkaarten (.vv57-poem-card) — 1 geheel, geen bruin/beige botsing
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card {
    background: #1d3140 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
    box-shadow: 0 12px 28px rgba(6, 14, 20, 0.34) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card:hover {
    border-color: rgba(240, 209, 166, 0.42) !important;
    box-shadow: 0 16px 36px rgba(6, 14, 20, 0.46) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__art {
    background-color: #172836 !important;
    background-image:
      repeating-radial-gradient(circle at 86% 24%, transparent 0 26px, rgba(240, 209, 166, 0.11) 27px, transparent 28px 52px),
      linear-gradient(120deg, #162633 0%, #233c4e 100%) !important;
    border-bottom: 1px solid rgba(240, 209, 166, 0.14) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .gg-poezie-kaartveer {
    background: #22394b !important;
    border: 1px solid rgba(240, 209, 166, 0.28) !important;
    color: #f0d1a6 !important;
    box-shadow: 0 4px 12px rgba(6, 14, 20, 0.32) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__body {
    background: #1d3140 !important;
    color: #eef3f7 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__eyebrow {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__title,
  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__title > a {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__verse {
    color: #dfe9f0 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-poem-card__footer {
    background: #1d3140 !important;
    border-top: 1px solid rgba(240, 209, 166, 0.12) !important;
    padding-top: 14px !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-read-btn {
    background: transparent !important;
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card .vv57-read-btn:hover {
    color: #ffffff !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card :is([data-gg20-quickread], .gg-heart-btn, button.gg-hearts-pill, button.gg-poem-heart, .vv57-pill-act) {
    background: #274154 !important;
    border: 1px solid rgba(240, 209, 166, 0.24) !important;
    color: #f6efe4 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .vv57-poem-card :is([data-gg20-quickread], .gg-heart-btn, button.gg-hearts-pill, button.gg-poem-heart, .vv57-pill-act):is(:hover, :focus-visible, [aria-pressed="true"], .is-liked) {
    background: #f0d1a6 !important;
    border-color: #f0d1a6 !important;
    color: #132e3c !important;
  }

  /* ------------------------------------------------------------------------
     7. Tweekoloms CTA (.grid-2 .card & .card-petrol)
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card {
    background: #1d3140 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
    color: #eef3f7 !important;
    box-shadow: 0 12px 28px rgba(6, 14, 20, 0.32) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card :is(p, li) {
    color: #cfdde6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card-petrol {
    border: 1px solid rgba(240, 209, 166, 0.2) !important;
    box-shadow: 0 14px 34px rgba(6, 14, 20, 0.38) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card-petrol .eyebrow,
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .card-petrol h2 em {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .btn-sand {
    background: #f0d1a6 !important;
    border: 1px solid #f0d1a6 !important;
    color: #132e3c !important;
    font-weight: 700 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .btn-sand:hover {
    background: #f7dfc0 !important;
    color: #0e222d !important;
  }

  /* ------------------------------------------------------------------------
     8. Gereedschap voor jouw woorden (.gg-home-tools)
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg30-home > .gg-home-tools {
    background:
      radial-gradient(ellipse at 92% 0%, rgba(72, 118, 140, 0.32) 0%, transparent 56%),
      #162835 !important;
    border: 1px solid rgba(240, 209, 166, 0.18) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools__header .eyebrow,
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools__header h2 em {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools__header h2 {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools__grid > .gg-home-tool {
    background: #1f3444 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
    color: #eef3f7 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools__grid > .gg-home-tool:hover {
    background: #264053 !important;
    border-color: #f0d1a6 !important;
    box-shadow: 0 12px 26px rgba(6, 14, 20, 0.38) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tool--lavender { --tool-tint: rgba(186, 155, 224, 0.18); --tool-ink: #e2cef8; }
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tool--ochre    { --tool-tint: rgba(240, 209, 166, 0.18); --tool-ink: #f4d7aa; }
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tool--mint     { --tool-tint: rgba(141, 206, 182, 0.18); --tool-ink: #bfead8; }
  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tool--rose     { --tool-tint: rgba(232, 167, 148, 0.18); --tool-ink: #f5cfc3; }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools .gg-home-tool h3 {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools .gg-home-tool p {
    color: #c7d6e0 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg30-home .gg-home-tools .gg-home-tool__cta {
    border-top-color: rgba(240, 209, 166, 0.14) !important;
    color: #f0d1a6 !important;
  }

  /* ------------------------------------------------------------------------
     9. Onze dichters, Dichtbundels, Blogkaarten & Footer
     ------------------------------------------------------------------------ */
  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .poet-chip {
    background: #1d3140 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .poet-chip:hover {
    background: #243c4e !important;
    border-color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .poet-chip strong {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .poet-chip span {
    color: #b8cad6 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud :is(.book-card, .gg-book-card) {
    background: #1d3140 !important;
    border: 1px solid rgba(240, 209, 166, 0.16) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud :is(.book-stage, .gg-book-stage) {
    background: linear-gradient(180deg, #172734 0%, #1d3140 100%) !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud :is(.book-body, .gg-book-body) {
    background: #1d3140 !important;
    color: #eef3f7 !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud :is(.book-body, .gg-book-body) :is(h3, h4, a) {
    color: #fff9ef !important;
  }

  html[data-gg-theme="dark"] #ggw-site .gg-poezie-inhoud .intent-cta {
    color: #f0d1a6 !important;
  }

  html[data-gg-theme="dark"] body:not(.wp-admin) #vv49-shell-footer {
    background: #101c25 !important;
    border-top: 1px solid rgba(240, 209, 166, 0.14) !important;
    color: #dce7ee !important;
  }
}
