/*
Theme Name: Casino NL
Theme URI: https://slmarketing.nl
Author: SL Marketing
Description: Custom WordPress thema voor Nederlandse KSA-gecertificeerde casino review sites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: casino-nl
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary:       #FF6B4A;
  --primary-dark:  #E8552F;
  --primary-light: #FF8F73;
  --accent:        #0F766E;
  --accent-dark:   #115E59;
  --gold:          #C9972B;

  --surface:  #FFFFFF;
  --bg:       #F6F7F9;
  --bg-alt:   #ECEFF3;
  --border:   #DFE4EA;

  --text:       #172033;
  --text-muted: #657084;
  --footer-bg:  #121A27;

  --success: #22C55E;
  --danger:  #EF4444;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --shadow-sm:   0 1px 2px rgba(23,32,51,.06);
  --shadow-md:   0 8px 24px rgba(23,32,51,.1);
  --shadow-lg:   0 18px 44px rgba(23,32,51,.14);
  --shadow-card: 0 10px 28px rgba(23,32,51,.08);

  --font-head: Verdana, Geneva, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;

  --ease: 200ms cubic-bezier(.4,0,.2,1);
  --container: 1180px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #fff 0, var(--bg) 360px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 24px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(23,32,51,.02);
}

/* 3-kolom grid: logo | titel | nav */
.header-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, auto) minmax(260px, 1fr);
  align-items: center;
  min-height: 78px;
  gap: 20px;
}

.site-header .header-inner > .header-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  height: 100%;
  overflow: hidden;
}

body .site-wrapper .site-header .header-inner > .header-title-wrap > h1.header-page-title {
  font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(1.55rem, 2vw, 2rem) !important;
  line-height: 1 !important;
  color: var(--text) !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .header-title-wrap {
    justify-content: flex-start;
  }
  .header-page-title {
    font-size: 1rem !important;
  }
}

/* Logo wrapper */
.site-logo-wrap {
  justify-self: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* WordPress custom logo */
.site-logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
}
.site-logo-wrap .custom-logo-link img,
.site-logo-wrap .custom-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Tekstfallback als er geen logo is */
.site-logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
}
.site-logo-text:hover { color: var(--text); }

/* Nav */
.site-header .header-inner > .main-nav {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .header-inner > .main-nav > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 100% !important;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

/* Nav reset — volledig plain, geen pill, geen border */
.site-header .header-inner > .main-nav > ul > li {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-header .header-inner > .main-nav > ul > li > a,
.site-header .header-inner > .main-nav > ul > li > a:link,
.site-header .header-inner > .main-nav > ul > li > a:visited,
.site-header .header-inner > .main-nav > ul > li > a:hover,
.site-header .header-inner > .main-nav > ul > li > a:focus,
.site-header .header-inner > .main-nav > ul > li > a:active,
.site-header .header-inner > .main-nav > ul > li.current-menu-item > a,
.site-header .header-inner > .main-nav > ul > li.current_page_item > a,
.site-header .header-inner > .main-nav > ul > li.current-menu-ancestor > a {
  font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  color: #fff !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border-radius: var(--r-full) !important;
  padding: 0 1.25em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 42px !important;
  line-height: 1 !important;
  transform: translateY(0) !important;
}

.site-header .header-inner > .main-nav > ul > li > a:hover {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 24px rgba(255,107,74,.24) !important;
}

.site-header .header-inner > .main-nav > ul > li > a.current-menu-item {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: var(--r-sm);
}
.menu-toggle:hover { background: var(--bg-alt); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: flex !important; justify-content: center; padding: .65em 1em; }
  .header-cta { margin-top: 8px; display: block; text-align: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.76);
  padding-top: 64px;
  padding-bottom: 28px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 52px;
  padding: 8px 12px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.footer-brand p {
  max-width: 34rem;
  color: rgba(255,255,255,.62);
  font-size: .92rem;
  line-height: 1.7;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
}

.responsible-gambling-area {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 24px;
  font-size: .9rem;
  color: rgba(255,255,255,.64);
  line-height: 1.7;
}
.responsible-gambling-area strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}
.responsible-gambling-area p { margin-bottom: 16px; }
.responsible-gambling-area__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.responsible-gambling-area a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .4em .8em;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  text-decoration: none;
}
.responsible-gambling-area a:hover {
  color: #fff;
  background: rgba(255,255,255,.13);
}
.responsible-gambling-area p:last-child { margin-bottom: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.48);
}

.footer-bottom a {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
}
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   META STRIP BELOW HEADER
   ============================================================ */
.below-header-meta {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.below-header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.top-author-card,
.top-updated-card {
  display: flex;
  align-items: center;
  min-height: 74px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.top-author-card {
  flex: 1 1 auto;
  max-width: 620px;
  gap: 24px;
}

.top-author-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 0;
  box-shadow: none;
}

.top-author-card__content,
.top-updated-card__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.top-author-card__label,
.top-updated-card__label {
  color: #737373;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.top-author-card__line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.top-author-card__name {
  color: #211d31;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.top-author-card__name a {
  color: inherit;
  text-decoration: inherit;
}

.top-author-card__name a:hover { color: var(--primary-dark); }

.top-author-card__job {
  color: #737373;
  font-size: 1rem;
  line-height: 1.2;
}

.top-updated-card {
  flex: 0 0 auto;
  min-width: 270px;
  justify-content: flex-end;
  gap: 0;
  text-align: right;
}

.top-updated-card__icon {
  display: none;
}

.top-updated-card__date {
  color: #211d31;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .below-header-meta__inner {
    flex-direction: column;
  }
  .top-author-card,
  .top-updated-card {
    width: 100%;
    max-width: none;
  }
}

/* ============================================================
   FRONT PAGE — FREE CONTENT AREA
   ============================================================ */
.front-page-content {
  padding-block: 56px 72px;
  background: #fff;
}

/* Gutenberg blocks binnen de vrije content */
.front-page-content .wp-block-group { margin-bottom: 48px; }

.front-page-content .container {
  max-width: 1180px;
}

.front-page-content p,
.front-page-content li {
  max-width: 1040px;
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.85;
}

.front-page-content h2,
.front-page-content h3 {
  max-width: 880px;
  margin-top: 1.65em;
  margin-bottom: .55em;
}

/* ============================================================
   UTILITY CLASSES (beschikbaar voor homepage-editor)
   ============================================================ */

/* Knoppen */
.cta-button,
.cta-button-secondary,
.cta-button-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-full);
  padding: .75em 1.75em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.cta-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,74,.35);
}
.cta-button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,74,.45);
}
.cta-button-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.cta-button-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.cta-button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,191,165,.3);
}
.cta-button-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Kaarten */
.card-playful {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card-playful:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Secties */
.section-rounded {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  margin-bottom: 40px;
}
.section-alt {
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  margin-bottom: 40px;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* Tekst helpers */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }

/* Badge */
.badge {
  display: inline-block;
  background: rgba(255,107,74,.12);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  padding: .25em .8em;
  border-radius: var(--r-full);
}
.badge-accent { background: rgba(0,191,165,.12); color: var(--accent-dark); }
.badge-gold   { background: rgba(255,184,0,.12);  color: #9A6E00; }

/* Divider */
.divider { border: none; border-top: 2px solid var(--border); margin-block: 40px; border-radius: var(--r-full); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  min-height: 60vh;
}

.error-404-wrap__code {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(6rem, 20vw, 10rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-wrap h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.error-404-wrap p {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

/* ============================================================
   GENERIC PAGE CONTENT
   ============================================================ */
.page-content-wrap {
  max-width: 780px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 56px;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .page-content-wrap { padding: 32px 24px; }
}

.page-content-wrap h2 { margin: 1.75em 0 .6em; }
.page-content-wrap p  { margin-bottom: 1.2em; }
.page-content-wrap ul { list-style: disc; margin: 0 0 1.2em 1.5em; }
.page-content-wrap ol { list-style: decimal; margin: 0 0 1.2em 1.5em; }

/* ============================================================
   SCREEN READER / ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  word-wrap: normal !important;
}
