/*
Theme Name: Geldstress
Theme URI: https://geldstress.nu
Description: Custom FSE block theme voor Geldstress.nu
Author: Guido Bootz
Author URI: https://guidobootz.nl
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geldstress
Tags: full-site-editing, block-patterns, custom-colors
*/

/* Google Fonts — EB Garamond (vervangt Adobe Garamond Pro) */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: 'EB Garamond', Georgia, serif;
	color: #402020;
	background-color: #DDDD70;
}

/* Verwijder standaard block gap zodat secties naadloos aansluiten */
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
	--wp--style--block-gap: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.gs-header {
	background-color: #DDDD70;
}

.gs-header .wp-block-navigation a {
	color: #402020;
	text-decoration: none;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 20px;
	transition: color 0.2s ease;
}

.gs-header .wp-block-navigation a:hover {
	color: #E5004E;
}

/* ==========================================================================
   Knoppen
   ========================================================================== */

.wp-block-button__link,
.wp-element-button {
	font-family: 'EB Garamond', Georgia, serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gs-btn-rood .wp-block-button__link {
	background-color: #E5004E !important;
	color: #FFFFFF !important;
	border-radius: 0 !important;
}

.gs-btn-rood .wp-block-button__link:hover {
	background-color: #c2003e !important;
}

/* ==========================================================================
   Hero — twee kolommen: logo+tekst links, foto rechts
   ========================================================================== */

.gs-hero {
	background-color: #DDDD70;
}

/* Foto kolom: volledige hoogte zonder witruimte */
.gs-hero-foto-kolom {
	padding: 0 !important;
	align-self: stretch !important;
}

.gs-hero-foto {
	height: 100%;
	margin: 0 !important;
}

.gs-hero-foto img {
	width: 100%;
	height: 100%;
	min-height: 500px;
	object-fit: cover;
	display: block;
}

/* Logo in hero */
.gs-hero-logo {
	margin: 0 !important;
}

.gs-hero-logo img {
	max-width: 504px;
	width: 100%;
	height: auto;
}

/* Hero CTA knop: volle breedte */
.gs-btn-hero .wp-block-button__link {
	display: block;
	width: 100%;
	max-width: 504px;
	text-align: center;
	background-color: #E5004E !important;
	color: #FFFFFF !important;
	border-radius: 0 !important;
}

.gs-btn-hero .wp-block-button__link:hover {
	background-color: #c2003e !important;
}

/* ==========================================================================
   Secties — naadloze overgang
   ========================================================================== */

.gs-sectie {
	margin: 0 !important;
}

/* ==========================================================================
   Foto naast tekst (intro, cta, signalen)
   ========================================================================== */

.gs-sectie-foto {
	margin: 0 !important;
	height: 100%;
}

.gs-sectie-foto img {
	width: 100%;
	height: 100%;
	min-height: 400px;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Kaarten — "Kom in actie"
   Structuur: gs-kaart (witte group) bevat titel + beschrijving + uitklap + knop
   ========================================================================== */

/* Witte kaart */
.gs-kaart.wp-block-group {
	background-color: #FFFFFF !important;
	border-radius: 5px !important;
	padding: 12px !important;
}

/* Uitklap-link binnenin de kaart */
details.gs-kaart-uitklap {
	border: none !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
}

details.gs-kaart-uitklap > summary {
	display: inline-flex !important;
	align-items: center !important;
	cursor: pointer !important;
	list-style: none !important;
	padding: 6px 0 !important;
	font-family: 'EB Garamond', Georgia, serif !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	color: #562B2C !important;
	background: transparent !important;
	border: none !important;
	gap: 6px !important;
}

details.gs-kaart-uitklap > summary::-webkit-details-marker { display: none; }
details.gs-kaart-uitklap > summary::marker { display: none; content: ""; }

details.gs-kaart-uitklap > summary::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23402020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

details.gs-kaart-uitklap[open] > summary::after {
	transform: rotate(180deg);
}

details.gs-kaart-uitklap[open] > summary {
	color: #E5004E !important;
}

details.gs-kaart-uitklap > *:not(summary) {
	animation: gs-slide-down 0.2s ease;
	padding: 8px 0 4px 0;
}

/* ==========================================================================
   Accordion — "Test je kennis" stellingen
   Elke rij = wit kader (border-radius 10px), 52px hoog, 24px gap
   ========================================================================== */

.gs-accordion {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Reset WordPress default details styling volledig */
details.wp-block-details.gs-details {
	background-color: transparent !important;
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Wit kader: de summary zelf */
details.wp-block-details.gs-details > summary {
	display: flex !important;
	align-items: center !important;
	cursor: pointer !important;
	list-style: none !important;
	user-select: none !important;
	background-color: #FFFFFF !important;
	border-radius: 10px !important;
	padding: 12px !important;
	gap: 12px !important;
	min-height: 52px !important;
	border: none !important;
}

details.wp-block-details.gs-details > summary::-webkit-details-marker { display: none; }
details.wp-block-details.gs-details > summary::marker { display: none; content: ""; }

/* Stelling label in rood */
.gs-stelling-label {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: #E5004E;
	white-space: nowrap;
	min-width: 119px;
	flex-shrink: 0;
}

/* Stelling tekst in paars */
.gs-stelling-tekst {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: #621697;
	flex: 1;
}

/* Pijl-icoon in donker bruin (#402020) — rechts in het witte kader */
details.wp-block-details.gs-details > summary::after {
	content: "" !important;
	display: inline-block !important;
	width: 24px !important;
	height: 24px !important;
	flex-shrink: 0 !important;
	margin-left: auto !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23402020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	transition: transform 0.2s ease !important;
}

details.wp-block-details.gs-details[open] > summary::after {
	transform: rotate(180deg) !important;
}

/* Open: summary behoudt witte achtergrond maar verliest onderste afronding */
details.wp-block-details.gs-details[open] > summary {
	border-radius: 10px 10px 0 0 !important;
}

/* Uitklapinhoud: aansluitend op het witte kader */
details.wp-block-details.gs-details > *:not(summary) {
	background-color: rgba(255,255,255,0.15) !important;
	border-radius: 0 0 10px 10px !important;
	padding: 16px 12px !important;
	animation: gs-slide-down 0.2s ease;
}

@keyframes gs-slide-down {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Partners
   ========================================================================== */

.gs-partners__rij {
	flex-wrap: wrap !important;
}

.gs-partner-logo img {
	max-height: 60px;
	width: auto;
	object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.gs-footer {
	background-color: #402020;
}

/* ==========================================================================
   Responsief
   ========================================================================== */

@media (max-width: 900px) {
	.gs-hero-kolommen {
		flex-direction: column !important;
	}

	.gs-hero-kolommen .wp-block-column {
		flex-basis: 100% !important;
	}

	.gs-hero-kolommen .wp-block-column:first-child {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.gs-hero-foto img {
		min-height: 300px;
	}

	.gs-stelling-label {
		font-size: 18px;
		min-width: 90px;
	}

	.gs-stelling-tekst {
		font-size: 18px;
	}
}

@media (max-width: 600px) {
	.gs-details summary {
		flex-wrap: wrap;
	}

	.gs-stelling-label {
		min-width: auto;
	}
}
