/*
Theme Name: OmaDeeltTips
Theme URI: https://omadeelttips.nl
Author: Mandy Bloemhard
Author URI: https://omadeelttips.nl
Description: WordPress block theme voor OmaDeeltTips.nl — een Nederlandstalig lifestyle- en reviewplatform. Huisstijl: warm saliegroen (#5B7C6F), warm oranje (#E8985E) en terracotta (#C45B3E) op een crèmewitte achtergrond (#FAF8F5). Typografie: Playfair Display (koppen) + Inter (broodtekst). Homepage bevat: hero met achtergrondafbeelding, drie productkaarten (affiliate / digitaal / webshop) met eerlijkheidsscore en Oma's mening, categorietegels, Over Oma sectie, tagline-blok en nieuwsbriefaanmelding. Volledig aanpasbaar via de WordPress Site Editor. Merkwaarden: Eerlijk · Persoonlijk · Getest.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omadeelttips
*/

/* ===================================================
   RESET & BASE
=================================================== */

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ===================================================
   LAYOUT HELPERS
=================================================== */

.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.5rem;
}

/* ===================================================
   HEADER / LOGO
=================================================== */

.site-header {
  background: var(--wp--preset--color--primary-dark);
}

/* Alle tekst in de header is licht */
.site-header,
.site-header p,
.site-header a,
.site-header .wp-block-navigation a,
.site-header .wp-block-navigation__container a,
.site-header .wp-block-navigation-item__content {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation__container a:hover {
  color: var(--wp--preset--color--secondary) !important;
  opacity: 1;
}

/* Lichte tekst op alle donkergroene secties */
.hero-section,
.hero-section p,
.tagline-section,
.tagline-section p,
.site-footer,
.site-footer p {
  color: rgba(255, 255, 255, 0.85);
}

/* Section label op donkere achtergrond = oranje ipv groen */
.hero-section .section-label,
.tagline-section .section-label {
  color: var(--wp--preset--color--secondary);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-leaf {
  width: 32px;
  height: 32px;
  background: var(--wp--preset--color--primary-light);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-merk {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.logo-sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
  margin-top: 3px;
  line-height: 1;
}

/* ===================================================
   HERO
=================================================== */

.hero-section {
  background: var(--wp--preset--color--primary-dark);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91,124,111,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,152,94,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tagline-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
  margin-bottom: 1rem;
}

/* ===================================================
   PRODUCT CARDS
=================================================== */

.product-cards-section {
  background: var(--wp--preset--color--background);
}

/* Kolommen even hoog */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

/* Product-card vult de volledige kolomhoogte */
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* Kaart intern: cover + body + footer als flex-kolom */
.product-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45,41,38,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(45,41,38,0.14);
}

/* Kaart body (inhoud) groeit → duwt footer naar beneden */
.product-card > .wp-block-group:first-of-type {
  flex-grow: 1;
}

/* Kaart footer (prijs + knop) blijft onderaan */
.product-card > .wp-block-group:last-of-type {
  flex-shrink: 0;
  margin-top: auto;
}

/* 'eerlijk' in h1 op donkere achtergrond = oranje italic */
.hero-section h1 em,
.wp-block-cover.hero-section h1 em {
  color: var(--wp--preset--color--secondary);
  font-style: italic;
}

/* Type-kleur streep boven kaart */
.card-type-affiliate { border-top: 4px solid var(--wp--preset--color--secondary); }
.card-type-digitaal  { border-top: 4px solid var(--wp--preset--color--primary);   }
.card-type-shop      { border-top: 4px solid var(--wp--preset--color--accent);    }

/* Badge */
.type-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.badge-affiliate { background: var(--wp--preset--color--secondary); color: #fff; }
.badge-digitaal  { background: var(--wp--preset--color--primary);   color: #fff; }
.badge-shop      { background: var(--wp--preset--color--accent);    color: #fff; }

/* Eerlijkheidsscore balk */
.eerlijk-balk-wrap {
  margin-bottom: 0.875rem;
}
.eerlijk-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  margin-bottom: 4px;
}
.eerlijk-score-val {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}
.eerlijk-balk {
  height: 6px;
  background: var(--wp--preset--color--surface);
  border-radius: 10px;
  overflow: hidden;
}
.eerlijk-vulling {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
}

/* Plus/min tags */
.eerlijk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.875rem;
}
.tag-plus {
  font-size: 0.6875rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  background: #e8f4ef;
  color: var(--wp--preset--color--primary-dark);
}
.tag-min {
  font-size: 0.6875rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  background: #fdeee9;
  color: var(--wp--preset--color--accent);
}

/* Oma's mening quote */
.oma-mening {
  background: var(--wp--preset--color--surface);
  border-left: 3px solid var(--wp--preset--color--secondary);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.6;
  font-style: italic;
}

/* Kaart-icoon placeholder vlak */
.card-img-affiliate { background: linear-gradient(135deg, #fef3ec, #f5e6d3); }
.card-img-digitaal  { background: linear-gradient(135deg, #edf4f1, #d6e8e3); }
.card-img-shop      { background: linear-gradient(135deg, #f9ece9, #f0d5cf); }

.card-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ===================================================
   CATEGORIEËN TEGELS
=================================================== */

.categorie-section {
  background: var(--wp--preset--color--surface);
}

.categorie-tegel {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(45,41,38,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.categorie-tegel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,41,38,0.12);
}

.categorie-icoon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.categorie-naam {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  display: block;
  margin-bottom: 0.375rem;
}

.categorie-sub {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
}

/* ===================================================
   OVER OMA
=================================================== */

.over-oma-section {
  background: #FFFFFF;
}

.oma-handtekening {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--wp--preset--color--primary);
  margin-top: 0.5rem;
}

.oma-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wp--preset--color--surface), var(--wp--preset--color--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--wp--preset--color--surface);
  box-shadow: 0 4px 20px rgba(45,41,38,0.1);
}

/* ===================================================
   TAGLINE BLOK
=================================================== */

.tagline-section {
  background: var(--wp--preset--color--primary-dark);
  position: relative;
  overflow: hidden;
}

.tagline-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,152,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.tagline-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: rgba(232,152,94,0.25);
  line-height: 0.5;
  display: block;
  margin-bottom: -1rem;
}

/* ===================================================
   NIEUWSBRIEF
=================================================== */

.nieuwsbrief-section {
  background: var(--wp--preset--color--surface);
}

.nieuwsbrief-form-wrap {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.nieuwsbrief-form-wrap input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--wp--preset--color--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: #FFFFFF;
  color: var(--wp--preset--color--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.nieuwsbrief-form-wrap input[type="email"]:focus {
  border-color: var(--wp--preset--color--primary);
}

/* ===================================================
   FOOTER
=================================================== */

.site-footer {
  background: var(--wp--preset--color--primary-dark);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ===================================================
   SCROLL ANIMATIES
=================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.65s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

.hover-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45,41,38,0.14);
}

/* ===================================================
   EDITOR OVERRIDES (animaties zichtbaar in editor)
=================================================== */

.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .stagger-children > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ===================================================
   PREFERS-REDUCED-MOTION
=================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .fade-up,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===================================================
   QUERY LOOP GRID (homepage + gerelateerde posts)
=================================================== */

/* Grid-layout voor de 3-koloms kaartenoverzicht */
.odt-cards-query .wp-block-post-template,
.odt-related-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.odt-cards-query .wp-block-post-template > li,
.odt-related-grid .wp-block-post-template > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.odt-cards-query .product-card,
.odt-related-grid .wp-block-group {
  flex: 1;
}

/* Kaart intern — body groeit, footer blijft onderin */
.odt-card-body {
  padding: 1.25rem 1.25rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.odt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--wp--preset--color--surface);
  margin-top: auto;
}

/* Kaartknop (gerenderd via shortcode) */
.kaart-knop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--wp--preset--font-family--body, 'Inter', sans-serif);
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.kaart-knop:hover { opacity: 0.88; transform: scale(1.03); }
.knop-affiliate { background: var(--wp--preset--color--secondary); color: #fff !important; }
.knop-digitaal  { background: var(--wp--preset--color--primary);   color: #fff !important; }
.knop-shop      { background: var(--wp--preset--color--accent);    color: #fff !important; }

/* Kaart titel link */
.odt-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0;
}
.odt-card-title a {
  color: var(--wp--preset--color--text, #2D2926);
  text-decoration: none;
}
.odt-card-title a:hover { color: var(--wp--preset--color--primary); }

/* Sterren */
.odt-stars        { font-size: 0.875rem; color: var(--wp--preset--color--secondary); letter-spacing: 0.05em; }
.odt-stars-large  { font-size: 1.25rem; }

/* Prijs in kaart */
.odt-prijs-bedrag { font-size: 1.25rem; font-weight: 700; color: var(--wp--preset--color--text, #2D2926); display: block; }
.odt-prijs-label  { font-size: 0.75rem; color: var(--wp--preset--color--muted, #6B6460); display: block; }

/* ===================================================
   REVIEW META BOX (single post template)
=================================================== */

.review-meta-box {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(45,41,38,0.08);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.review-meta-header {
  background: var(--wp--preset--color--primary-dark, #3D5C51);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.review-meta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-top: 0.5rem;
  line-height: 1.3;
}

.review-meta-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wp--preset--color--surface, #F0EDE8);
}

/* Oma's mening in review-meta-box */
.review-meta-box .oma-mening strong {
  font-style: normal;
  color: var(--wp--preset--color--text, #2D2926);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 768px) {
  .nieuwsbrief-form-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .nieuwsbrief-form-wrap input[type="email"] {
    min-width: unset;
  }
}
