/*
Theme Name: Greenpeace Demo
Theme URI: https://example.com/greenpeace-demo
Author: Maurice Lourens
Author URI: https://example.com
Description: A simple demo theme inspired by the look and feel of greenpeace.nl — bold green branding, big hero imagery and an activist tone. Built for local development/demo purposes only; not affiliated with Greenpeace.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: greenpeace-demo
*/

/* -----------------------------------------------------------
   Design tokens (colors pulled from the live greenpeace.nl CSS)
----------------------------------------------------------- */
:root {
	--gp-logo-green: #66cc00; /* bright wordmark green */
	--gp-green: #198700;      /* primary brand / button green */
	--gp-green-dark: #1f4912; /* dark green, footer / hover states */
	--gp-black: #1a1a1a;
	--gp-grey: #45494c;
	--gp-grey-light: #f4f4f2;
	--gp-white: #ffffff;
	--gp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gp-max-width: 1180px;
}

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

body {
	margin: 0;
	font-family: var(--gp-font);
	color: var(--gp-black);
	background: var(--gp-white);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gp-green);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	font-family: var(--gp-font);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--gp-black);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.container {
	max-width: var(--gp-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
.btn {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.85rem;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--gp-green);
	color: var(--gp-white);
	border: 2px solid var(--gp-green);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
	background: var(--gp-green-dark);
	border-color: var(--gp-green-dark);
	color: var(--gp-white);
	text-decoration: none;
}

.btn-outline {
	background: transparent;
	color: var(--gp-white);
	border-color: var(--gp-white);
}

.btn-outline:hover {
	background: var(--gp-white);
	color: var(--gp-green-dark);
}

/* -----------------------------------------------------------
   Site header
----------------------------------------------------------- */
.site-header {
	background: var(--gp-white);
	border-bottom: 4px solid var(--gp-green);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--gp-black);
}

.site-logo:hover {
	text-decoration: none;
}

.site-logo .dot {
	color: var(--gp-logo-green);
}

.site-logo img {
	height: 26px;
	width: auto;
	display: block;
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.account-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gp-black);
	font-weight: 700;
	font-size: 0.85rem;
}

.account-link:hover {
	color: var(--gp-green);
	text-decoration: none;
}

.account-link__icon {
	width: 20px;
	height: 20px;
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero {
	position: relative;
	background-image:
		linear-gradient(180deg, rgba(31,73,18,0.88) 0%, rgba(25,135,0,0.82) 100%),
		url("images/hero-turbines.jpg");
	background-size: cover;
	background-position: center;
	color: var(--gp-white);
	padding: 110px 24px;
	text-align: center;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 40%),
	            radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08), transparent 45%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
}

.hero h1 {
	color: var(--gp-white);
	font-size: 3rem;
	margin-bottom: 0.4em;
}

.hero p {
	font-size: 1.15rem;
	margin-bottom: 1.8em;
	opacity: 0.95;
}

.hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Shorter hero variant used as a plain page banner (archives, etc.) —
   same gradient/photo treatment, without the tall homepage padding. */
.hero-compact {
	padding: 56px 24px;
}

.hero-compact h1 {
	font-size: 2.2rem;
}

.hero-compact p {
	margin-bottom: 0;
}

/* -----------------------------------------------------------
   Topic / feature cards (used on the front page)
----------------------------------------------------------- */
.topics {
	padding: 70px 24px;
	background: var(--gp-grey-light);
}

.topics h2 {
	text-align: center;
	margin-bottom: 0.3em;
}

.topics .lede {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 3rem;
	color: var(--gp-grey);
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.topic-card {
	background: var(--gp-white);
	border-radius: 12px;
	overflow: hidden;
	border-top: 4px solid var(--gp-green);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.topic-card .thumb {
	height: 150px;
	background-size: cover;
	background-position: center;
	background-color: var(--gp-grey-light);
}

.topic-card .body {
	padding: 22px;
}

.topic-card .icon {
	font-size: 2rem;
	margin-bottom: 0.5em;
}

.topic-card h3 {
	margin-bottom: 0.3em;
}

.topic-card p {
	color: var(--gp-grey);
	margin: 0;
}

/* "Kom in actie" — homepage fundraiser/petition grids */
.action-group {
	margin-top: 2.5rem;
}

.action-group:first-of-type {
	margin-top: 0;
}

.action-group-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 1.2rem;
}

.action-group-header h3 {
	margin: 0;
	font-size: 1.3rem;
}

.action-view-all {
	font-weight: 700;
	font-size: 0.85rem;
	white-space: nowrap;
}

.action-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.action-card:hover {
	text-decoration: none;
}

.action-card:hover h3 {
	color: var(--gp-green);
}

.action-card .body > *:not(:last-child) {
	margin-bottom: 0.8em;
}

/* Compact progress bars/target rendered inside an action card via the
   plugin's own mini-progress / signature-progress / petition-target blocks. */
.action-card .ambh-mini-progress,
.action-card .ambh-signature-progress {
	font-size: 0.85rem;
}

.action-card .ambh-mini-progress__bar,
.action-card .ambh-signature-progress__bar {
	margin-top: 0.4em;
}

.action-card .ambh-petition-target {
	font-size: 0.8rem;
	color: var(--gp-grey);
}

/* Fallback shown on the card when a fundraiser has no goal set yet. */
.action-card .ambh-total-raised-block {
	text-align: left;
}

.action-card .ambh-total-raised-block__value {
	font-size: 1.3rem;
}

/* Fallback shown on the card when a petition has no signature goal set yet. */
.action-card .ambh-signature-count-block {
	text-align: left;
}

.action-card .ambh-signature-count-block__value {
	font-size: 1.3rem;
}

/* -----------------------------------------------------------
   Fundraiser / petition archives (archive-fundraiser.php,
   archive-petition.php) — search box + top-level/child cards
----------------------------------------------------------- */
.archive-filter {
	max-width: 480px;
	margin: 0 auto 2.5rem;
}

.archive-filter input[type="search"] {
	width: 100%;
	padding: 12px 18px;
	border-radius: 999px;
	border: 2px solid var(--gp-grey-light);
	background: var(--gp-grey-light);
	font-size: 1rem;
	font-family: inherit;
}

.archive-filter input[type="search"]:focus {
	outline: none;
	border-color: var(--gp-green);
	background: var(--gp-white);
}

.archive-empty {
	text-align: center;
	color: var(--gp-grey);
	margin-top: 2rem;
}

.archive-card__parent {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 700;
	color: var(--gp-green);
	margin: 0;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 3rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--gp-grey-light);
	color: var(--gp-black);
	font-weight: 700;
}

.pagination .page-numbers:hover {
	background: var(--gp-green);
	color: var(--gp-white);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--gp-green-dark);
	color: var(--gp-white);
}

/* -----------------------------------------------------------
   Newsletter / CTA band
----------------------------------------------------------- */
.newsletter {
	background: var(--gp-black);
	color: var(--gp-white);
	padding: 60px 24px;
	text-align: center;
}

.newsletter h2 {
	color: var(--gp-white);
}

.newsletter-form {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.newsletter-form input[type="email"] {
	padding: 12px 16px;
	border-radius: 999px;
	border: none;
	min-width: 280px;
	font-size: 1rem;
}

/* -----------------------------------------------------------
   Main content (pages / posts)
----------------------------------------------------------- */
.site-content {
	padding: 60px 24px;
}

.entry-header {
	max-width: 780px;
	margin: 0 auto 2rem;
	text-align: center;
}

.entry-content {
	max-width: 780px;
	margin: 0 auto;
}

/* AmbassadorHub's Account page is app-like (dashboard, forms) rather than a
   long-form article — give it the same 1180px width used by the fundraiser/
   petition pages and homepage instead of the 780px article reading width. */
.entry-content:has(.ambassador-account) {
	max-width: var(--gp-max-width);
}

/* The theme's generic page title ("Account") is redundant on this page —
   the Account block already renders its own "Welcome, {name}" heading. */
.entry-header:has(+ .entry-content .ambassador-account) {
	display: none;
}

.entry-content img {
	border-radius: 10px;
	margin: 1.5em 0;
}

.post-list {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.post-list article {
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 40px;
}

.post-list article > a {
	display: block;
	margin-bottom: 1em;
}

.post-list article > a img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 10px;
}

.post-list .entry-meta {
	color: var(--gp-grey);
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 0.4em;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.site-footer {
	background: var(--gp-green-dark);
	color: var(--gp-white);
	padding: 50px 24px 24px;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	max-width: var(--gp-max-width);
	margin: 0 auto;
}

.footer-col h4 {
	color: var(--gp-white);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	margin-bottom: 1em;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 0.6em;
}

.footer-col a {
	color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
	color: var(--gp-white);
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	color: var(--gp-white);
	font-weight: 700;
}

.social-links a:hover {
	background: var(--gp-white);
	color: var(--gp-green-dark);
	text-decoration: none;
}

.site-footer .footer-bottom {
	max-width: var(--gp-max-width);
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.15);
	font-size: 0.8rem;
	color: rgba(255,255,255,0.7);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* -----------------------------------------------------------
   Article template (single.php) — blog posts / "Laatste nieuws"
----------------------------------------------------------- */
.article-banner {
	max-width: var(--gp-max-width);
	margin: 0 auto 32px;
	border-radius: 14px;
	overflow: hidden;
}

.article-banner img {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.article-column {
	max-width: 780px;
	margin: 0 auto;
}

.article-column .detail-breadcrumb {
	max-width: none;
	margin: 0 0 16px;
}

.article-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1em;
}

.article-category {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--gp-grey-light);
	color: var(--gp-green-dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.article-category:hover {
	background: var(--gp-green);
	color: var(--gp-white);
	text-decoration: none;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 1.2em;
	color: var(--gp-grey);
	font-size: 0.9rem;
}

.article-meta img {
	border-radius: 50%;
	display: block;
}

.article-meta-sep {
	opacity: 0.6;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2em;
}

.article-tag {
	color: var(--gp-grey);
	font-size: 0.85rem;
}

.article-tag:hover {
	color: var(--gp-green);
}

.article-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #e2e2e2;
}

.article-share-label {
	font-weight: 700;
	font-size: 0.85rem;
	margin-right: 4px;
}

.article-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--gp-grey-light);
	color: var(--gp-green-dark);
}

.article-share-btn svg {
	width: 16px;
	height: 16px;
}

.article-share-btn:hover {
	background: var(--gp-green);
	color: var(--gp-white);
	text-decoration: none;
}

/* ── Comments (WP core's default comments template) ─────────────────────── */
.comment-respond,
.comments-area {
	margin-top: 2.5em;
	padding-top: 2em;
	border-top: 1px solid #e2e2e2;
}

.comment-reply-title,
.comments-title {
	font-size: 1.3rem;
	margin: 0 0 1em;
}

.comment-reply-title small a {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--gp-grey);
}

.comment-form p {
	margin: 0 0 1.1em;
}

.comment-form label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 700;
	font-size: 0.85rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--gp-white);
}

.comment-form textarea {
	resize: vertical;
	min-height: 120px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--gp-green);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--gp-grey);
}

.comment-form-cookies-consent label {
	font-weight: 400;
	margin: 0;
}

.comment-notes {
	color: var(--gp-grey);
	font-size: 0.85rem;
}

.form-submit {
	margin-top: 1.5em !important;
}

.comment-form input[type="submit"] {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.85rem;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--gp-green);
	color: var(--gp-white);
	border: 2px solid var(--gp-green);
	cursor: pointer;
	font-family: inherit;
}

.comment-form input[type="submit"]:hover {
	background: var(--gp-green-dark);
	border-color: var(--gp-green-dark);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 1.5em 0 0;
	padding: 0 0 0 40px;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid #e2e2e2;
}

.comment-author.vcard {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	margin-bottom: 0.3em;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--gp-grey);
	margin-bottom: 0.6em;
}

.comment-metadata a {
	color: inherit;
}

.comment-content p {
	margin: 0 0 0.8em;
}

.comment-reply-link {
	font-size: 0.8rem;
	font-weight: 700;
}

/* -----------------------------------------------------------
   AmbassadorHub — fundraiser & petition detail overrides
   (single-fundraiser.php / single-petition.php theme templates)
----------------------------------------------------------- */
.ambh-detail {
	padding: 40px 24px 0;
}

.detail-breadcrumb {
	max-width: var(--gp-max-width);
	margin: 0 auto 16px;
}

.detail-breadcrumb .ambh-breadcrumb {
	font-size: 0.8rem;
}

/* Hero cover (fundraiser only) */
.detail-hero {
	position: relative;
	min-height: 300px;
	border-radius: 14px;
	background-color: var(--gp-green-dark);
	background-image: linear-gradient(135deg, var(--gp-green-dark), var(--gp-green));
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	overflow: hidden;
}

.detail-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
	pointer-events: none;
}

.detail-hero-chip {
	position: relative;
	z-index: 1;
	background: rgba(0,0,0,0.45);
	color: var(--gp-white);
	border-radius: 8px;
	padding: 8px 14px;
}

/* Two-column layout: main content + sticky sidebar */
.detail-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 32px;
	max-width: var(--gp-max-width);
	margin: 32px auto 0;
	align-items: start;
}

.detail-grid-petition {
	margin-top: 0;
}

.detail-main h1 {
	margin-top: 0.4em;
}

.detail-featured-image img {
	border-radius: 14px;
}

.detail-team-info,
.detail-petition-target {
	margin-bottom: 1em;
}

.detail-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.5em;
}

.detail-cta-row .ambh-create-fundraiser-button,
.detail-cta-row .ambh-create-petition-button {
	margin: 0;
}

.detail-cta-row [class*="__btn"],
.detail-cta-row .ambh-cfb-btn {
	border-radius: 999px;
}

.detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 96px;
}

.card {
	background: var(--gp-white);
	border-radius: 12px;
	padding: 22px;
	border-top: 4px solid var(--gp-green);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card h2 {
	font-size: 1.2rem;
	margin-bottom: 0.7em;
}

.stat-row {
	display: flex;
	gap: 10px;
	margin-bottom: 1.2em;
}

.stat-box {
	flex: 1;
	background: var(--gp-grey-light);
	border-radius: 10px;
	padding: 14px 10px;
}

.share-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* QR code toggle — small icon button next to the share icons that reveals
   the (otherwise oversized, unstyled) AmbassadorHub QR code in a popover. */
.qr-toggle {
	position: relative;
}

.qr-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--gp-grey-light);
	color: var(--gp-green-dark);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.qr-toggle__btn:hover,
.qr-toggle__btn:focus-visible,
.qr-toggle__btn[aria-expanded="true"] {
	background: var(--gp-green);
	color: var(--gp-white);
}

.qr-toggle__icon {
	width: 18px;
	height: 18px;
}

.qr-toggle__popover {
	position: absolute;
	z-index: 20;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--gp-white);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.16);
	padding: 14px;
	width: max-content;
}

.qr-toggle__popover svg {
	display: block;
	width: 150px;
	height: 150px;
}

.qr-toggle__caption {
	margin: 8px 0 0;
	text-align: center;
	font-size: 0.75rem;
	color: var(--gp-grey);
}

/* Muted / alternating section bands, reused for grids + activity feed */
.section-muted {
	background: var(--gp-grey-light);
	padding: 60px 24px;
}

.section-title {
	text-align: center;
	margin-bottom: 1.5rem;
}

.detail-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 20px 0 60px;
}

@media (max-width: 900px) {
	.detail-grid {
		grid-template-columns: 1fr;
	}

	.detail-sidebar {
		position: static;
	}

	.detail-columns {
		grid-template-columns: 1fr;
	}
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 782px) {
	.hero h1 {
		font-size: 2.1rem;
	}

	.hero {
		padding: 60px 20px;
	}
}
