/*
Theme Name: Eet Smakelijk Gezond
Theme URI: https://eetsmakelijkgezond.nl/
Author: Eet Smakelijk Gezond
Description: Een licht, vriendelijk en volledig blok-gebaseerd WordPress thema voor recepten, voedingstips en gezonde inspiratie. Ontworpen om zonder code via de Site Editor en Gutenberg te beheren.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eetsmakelijk-gezond
Tags: blog, food-and-drink, full-site-editing, block-patterns, custom-colors, custom-logo, featured-images, wide-blocks
*/

:root {
  --esg-green: #71b900;
  --esg-green-dark: #377e22;
  --esg-green-text: #527e2b;
  --esg-lime: #b8e986;
  --esg-yellow: #faf2ad;
  --esg-cream: #fffde8;
  --esg-pink: #b8577a;
  --esg-pink-soft: #ffd6e1;
  --esg-white: #ffffff;
  --esg-shadow: 0 10px 35px rgba(83, 126, 43, .10);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--esg-yellow); }

::selection { background: #d9f8bb; color: var(--esg-green-dark); }

a { text-underline-offset: 3px; }

.esg-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.esg-card,
.wp-block-group.esg-card {
  background: var(--esg-cream);
  border: 1.5px solid var(--esg-lime);
  border-radius: 28px;
  box-shadow: var(--esg-shadow);
}

.esg-soft-section {
  border-radius: 34px;
  overflow: hidden;
}

.esg-gradient {
  background: linear-gradient(120deg, #e8ffd4 0%, #fff9db 100%);
}

.esg-button .wp-block-button__link,
.wp-block-button.esg-button .wp-block-button__link {
  background: linear-gradient(90deg, #b0ff87, #ffd6e1);
  color: var(--esg-green-dark);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(83, 126, 43, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.esg-button .wp-block-button__link:hover,
.wp-block-button.esg-button .wp-block-button__link:hover {
  color: var(--esg-pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(83, 126, 43, .16);
}

.esg-topic-card {
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.esg-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(83, 126, 43, .14);
}

.esg-post-card {
  height: 100%;
  overflow: hidden;
  background: var(--esg-cream);
  border: 1.5px solid var(--esg-lime);
  border-radius: 24px;
  box-shadow: 0 5px 20px rgba(83, 126, 43, .08);
}
.esg-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.esg-post-card .wp-block-post-title a { text-decoration: none; }
.esg-post-card .wp-block-post-title a:hover { color: var(--esg-pink); }

.esg-article-card {
  background: var(--esg-cream);
  border: 1.5px solid var(--esg-lime);
  border-radius: 32px;
  box-shadow: var(--esg-shadow);
  padding: clamp(22px, 4vw, 46px);
}

.esg-article-card .wp-block-post-featured-image img {
  border-radius: 22px;
  max-height: 520px;
  object-fit: cover;
}

.esg-meta {
  color: #7ca646;
  font-size: .95rem;
}

.esg-callout {
  border-left: 5px solid var(--esg-green);
  border-radius: 18px;
  background: #f4ffe9;
}

.esg-header-wrap {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 232, .94);
  border-bottom: 1px solid rgba(184, 233, 134, .75);
  backdrop-filter: blur(12px);
}

.esg-header-inner { min-height: 88px; }
.esg-header-inner .wp-block-navigation-item__content { font-weight: 700; text-decoration: none; }
.esg-header-inner .wp-block-navigation-item__content:hover { color: var(--esg-pink); }

.esg-footer {
  border-top: 1px solid var(--esg-lime);
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--esg-cream) !important;
  color: var(--esg-green-dark) !important;
  padding: 28px !important;
}

input:not([type="submit"]), textarea, select {
  border: 1.5px solid var(--esg-lime);
  border-radius: 14px;
  padding: .8rem 1rem;
  background: #fbfff7;
  color: var(--esg-green-text);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #8dc43f;
  outline-offset: 1px;
}

.wp-block-post-comments-form input[type="submit"],
.wp-element-button,
.wp-block-button__link {
  border-radius: 999px;
}

@media (max-width: 781px) {
  .esg-shell { width: min(100% - 22px, 1180px); }
  .esg-soft-section { border-radius: 24px; }
  .esg-header-inner { min-height: 72px; }
  .esg-header-inner .wp-block-site-logo img { max-width: 220px; height: auto; }
  .esg-article-card { border-radius: 22px; }
}


/* v1.1: normal-page homepage editing + friendlier editor */
.editor-styles-wrapper { background: var(--esg-yellow); }
.editor-styles-wrapper .wp-block-post-content { max-width: none; }
.esg-header-inner .wp-block-site-logo { flex: 0 0 auto; }
.esg-header-inner .wp-block-site-logo img { height: auto; }
@media (max-width: 900px) {
  .esg-header-inner .wp-block-site-logo img { max-width: 185px; }
}
