/* ==========================================
   BASIS & RESET (GEEN TAILWIND)
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --agrigroen: #224823;
    --erwtgroen: #71AA34;
    --bg-light-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --text-dark: #121212;
    --text-muted: #6c757d;
    --white: #ffffff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Onzichtbare SEO navigatie & verborgen elementen */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* ==========================================
   HEADER STYLING
   ========================================== */
.site-header {
    width: 100%;
    padding: 1rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
}

.header-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.site-logo {
    height: 3rem;
    width: auto;
    max-width: 85vw;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo-fallback {
    background-color: var(--agrigroen);
    color: var(--erwtgroen);
    border: 2px solid var(--erwtgroen);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.logo-fallback-text {
    font-family: 'Teko', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
.site-footer {
    width: 100%;
    background-color: var(--agrigroen);
    color: var(--white);
    border-top: 4px solid var(--erwtgroen);
    margin-top: auto;
    padding: 1.5rem 0;
}

.footer-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--erwtgroen);
}

.footer-links .divider {
    color: var(--erwtgroen);
}

/* ==========================================
   ALGEMENE CONTAINERS & TYPOGRAFIE
   ========================================== */
.main-container, .archive-container, .events-container {
    width: 100%;
    max-width: 64rem; /* 1024px */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--agrigroen);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.page-title span {
    color: var(--text-muted);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ==========================================
   BADGES & KNOPPEN
   ========================================== */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(113, 170, 52, 0.15);
    border: 1px solid var(--erwtgroen);
    color: var(--agrigroen);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge-tag-sm {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--erwtgroen);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(113, 170, 52, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(113, 170, 52, 0); }
    100% { box-shadow: 0 0 0 0 rgba(113, 170, 52, 0); }
}

.btn-primary {
    display: inline-block;
    background-color: var(--agrigroen);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--erwtgroen);
}

.back-link {
    display: inline-block;
    color: var(--agrigroen);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--erwtgroen);
}

/* ==========================================
   HOME.PHP SPECIFIEK
   ========================================== */
.home-card {
    background-color: var(--white);
    border: 2px solid var(--agrigroen);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.hazard-stripe-top {
    height: 0.75rem;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--agrigroen),
        var(--agrigroen) 12px,
        var(--erwtgroen) 12px,
        var(--erwtgroen) 24px
    );
}

.relative-box {
    position: relative;
    padding: 2rem;
}

.agrarian-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--agrigroen) 0.75px, transparent 0.75px);
    background-size: 16px 16px;
    opacity: 0.07;
    pointer-events: none;
}

.home-card-inner {
    position: relative;
    z-index: 10;
}

.main-title {
    font-size: 3.5rem;
}

.home-intro {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 48rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-light-gray);
    border-left: 4px solid var(--erwtgroen);
    padding: 1.25rem;
    border-radius: 0.5rem;
}

.stat-card h2 {
    font-family: 'Teko', sans-serif;
    font-size: 1.875rem;
    color: var(--agrigroen);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.callout-box {
    background-color: var(--agrigroen);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.callout-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.callout-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.btn-callout {
    background-color: var(--erwtgroen);
    color: var(--agrigroen);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    align-self: flex-start;
}

/* ==========================================
   ARCHIEF & EVENEMENTEN: LIJSTEN & KAARTEN
   ========================================== */
.stacked-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.list-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.list-card-media {
    width: 100%;
    height: 200px;
}

.list-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-card-content {
    padding: 1.5rem;
}

.list-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-card-content a {
    color: var(--agrigroen);
    text-decoration: none;
}

.list-card-content a:hover {
    text-decoration: underline;
}

.location-details {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.badge-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background-color: var(--bg-light-gray);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.filter-box {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-box select {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

/* ==========================================
   ARCHIEF & EVENEMENTEN: FOTO ALBUM GRID
   ========================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-item {
    transform: scale(1.05);
}

/* ==========================================
   LIGHTBOX (FOTOVERGROTING)
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-wrapper {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1rem;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ==========================================
   EVENEMENTEN DETAILPAGINA
   ========================================== */
.event-detail-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    margin-bottom: 2rem;
}

.event-cover-wrapper {
    height: 300px;
    width: 100%;
}

.event-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-content {
    padding: 2rem;
}

.event-info-box {
    background-color: var(--bg-light-gray);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--agrigroen);
}

.event-info-box p {
    margin-bottom: 0.5rem;
}

/* ==========================================
   REACTIES & FORMULIEREN
   ========================================== */
.comment-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-gray);
    padding-top: 2rem;
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.25rem;
    color: var(--agrigroen);
    margin-bottom: 1.5rem;
}

.comment-form input, .comment-form textarea, .inline-reply-form input, .inline-reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form textarea, .inline-reply-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-check input {
    width: 60px;
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.feed {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-item {
    background-color: var(--bg-light-gray);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.feed-author {
    font-weight: 700;
    color: var(--agrigroen);
}

.feed-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feed-body {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-reply-toggle {
    background: none;
    border: none;
    color: var(--erwtgroen);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.inline-reply-form {
    display: none;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-gray);
}

.reply-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
    padding-left: 1rem;
}

/* ==========================================
   RESPONSIVE DESIGN (MOBIELE APPARATEN)
   ========================================== */
@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 0;
    }

    .site-logo {
        height: 2.25rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ==========================================
   RESPONSIVE DESIGN (DESKTOP & GROTERE SCHERMEN)
   ========================================== */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-card {
        flex-direction: row;
    }

    .list-card-media {
        width: 300px;
        height: auto;
    }
    
    .callout-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .btn-callout {
        align-self: center;
    }
}

/* ==========================================
   CONTENT CARD (Voorwaarden, Privacy, etc.)
   ========================================== */
.content-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 48rem;
    margin: 0 auto;
}

.content-card h2 {
    font-family: 'Teko', sans-serif;
    font-size: 1.75rem;
    color: var(--agrigroen);
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 0.25rem;
}

.content-card h2:first-of-type {
    margin-top: 0;
}

.content-card p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   CONTACTPAGINA & FORMULIEREN
   ========================================== */
.contact-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 40rem;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--agrigroen);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-light-gray);
    border: 1.5px solid var(--border-gray);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--erwtgroen);
    background-color: var(--white);
}

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

.captcha-code {
    background-color: var(--agrigroen);
    color: var(--erwtgroen);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}

/* ==========================================
   ALERTS / MELDINGEN
   ========================================== */
.alert-box {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    text-align: center;
}

.alert-success {
    background-color: rgba(113, 170, 52, 0.15);
    border: 1px solid var(--erwtgroen);
    color: var(--agrigroen);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}