/* ===== Wolfsden Cosplay - Main Dark Theme ===== */
/* Basis styling geladen op alle pagina's */


/* ===== CSS Variables ===== */
:root {
    /* Primaire kleuren - Turquoise accenten */
    --color-primary: #5FB3B3;        /* Zacht turquoise (links/accenten) */
    --color-primary-dark: #4A9999;   /* Donker turquoise hover */
    --color-secondary: #6B9E78;      /* Forest green (secundair) */
    
    /* Achtergronden - Koel grijs */
    --color-bg-dark: #1C1F26;        /* Donker koel grijs */
    --color-bg-darker: #151820;      /* Extra donker koel grijs */
    --color-bg-card: #252A34;        /* Card achtergrond (grijs) */
    --color-bg-hover: #2E3440;       /* Hover state (lichter grijs) */
    
    /* Tekst kleuren */
    --color-text-primary: #E5E9F0;   /* Licht grijs-wit tekst */
    --color-text-secondary: #D8DEE9; /* Secundaire tekst */
    --color-text-muted: #A3B3C5;     /* Muted tekst */
    
    /* Borders */
    --color-border: #3B4252;         /* Subtiele koel grijze border */
    --color-border-accent: #5FB3B3;  /* Turquoise border accent */
    
    /* Buttons - Forest Green */
    --color-btn-primary: #6B9E78;    /* Forest green primary button */
    --color-btn-primary-hover: #5A8A67; /* Donker forest green hover */
    --color-btn-secondary: #4C566A;  /* Grijs secondary button */
    --color-btn-secondary-hover: #5E6E8A; /* Lichter grijs hover */
    
    /* Menu button (blijft rood) */
    --color-menu-red: #470000;
    --color-menu-red-hover: #750000;
    
    /* Status kleuren */
    --color-success: #A3BE8C;        /* Gedempte groen voor success */
    --color-warning: #EBCB8B;        /* Geel voor warnings */
    --color-danger: #BF616A;         /* Gedempte rood voor errors */
}


/* ===== Basis Reset & Layout ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}


/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}


h1 {
    font-size: 2.5em;
    border-bottom: 3px solid var(--color-border-accent);
    padding-bottom: 10px;
}


h2 {
    font-size: 2em;
    color: var(--color-primary);
}


h3 {
    font-size: 1.5em;
}


p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}


/* ===== Links ===== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}


a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* ===== Header ===== */
.wd-header {
    background: var(--color-bg-darker);
    border-bottom: 2px solid var(--color-border-accent);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.wd-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.wd-header-language {
    flex: 0 0 auto;
    margin: 0;
}

.wd-header-language button {
    width: 38px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0;
    background: var(--color-bg-card);
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.wd-language-flag {
    width: 22px;
    height: 15px;
    display: block;
    flex: 0 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 20%);
}

.wd-header-language button:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

.wd-header-language button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


.wd-logo img {
    height: 150px;
    width: auto;
    display: block;
}


.wd-site-name {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
}


.wd-site-name:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}


/* ===== Navigation ===== */
.wd-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}


.wd-nav a {
    color: var(--color-text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.wd-nav a:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
    text-decoration: none;
}


.wd-nav a.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}


/* ===== Hamburger Menu Dropdown ===== */
.wd-menu-dropdown {
    position: relative;
}


.wd-menu-button {
    background: var(--color-menu-red);
    border: none;
    color: var(--color-text-primary);
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}


.wd-menu-button:hover {
    background: var(--color-menu-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}


/* Hamburger Icon - X vorm (\|/) */
.wd-menu-icon {
    position: relative;
    width: 20px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.wd-menu-icon span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #DC143C;
    transform: rotate(-25deg);
    transform-origin: left center;
}


.wd-menu-icon span:nth-child(2) {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
}


.wd-menu-icon span:nth-child(3) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #DC143C;
    transform: rotate(25deg);
    transform-origin: left center;
}


/* Menu Panel (dropdown) */
.wd-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border-accent);
    border-radius: 8px;
    padding: 0.75rem;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}


.wd-menu-dropdown:hover .wd-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Menu Items */
.wd-menu-panel a {
    display: block;
    padding: 10px 15px;
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}


.wd-menu-panel a:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
    padding-left: 20px;
}

/* HR divider in menu */
.wd-menu-panel hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 8px 0;
}


/* Logged in user info in menu */
.wd-menu-panel div {
    padding: 4px 0;
    font-size: 0.85em;
    color: var(--color-text-muted);
}


/* ===== Main Content ===== */
.wd-flash-messages {
    position: fixed;
    z-index: 2000;
    inset: 0;
    pointer-events: none;
}

.wd-flash-modal {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(10, 14, 22, 0.72);
    pointer-events: auto;
}

.wd-flash {
    position: relative;
    box-sizing: border-box;
    width: min(32rem, 100%);
    padding: 1.5rem 3.5rem 1.5rem 1.5rem;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border-accent);
    border-radius: 8px;
    color: var(--color-text-primary);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    font-size: 1.05rem;
    line-height: 1.5;
}

.wd-flash-success {
    border-color: var(--color-success, #6b9e78);
}

.wd-flash-error,
.wd-flash-warning {
    border-color: var(--color-danger, #a83246);
}

.wd-flash-info {
    border-color: var(--color-primary);
}

.wd-flash-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.wd-flash-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.wd-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}


/* ===== Cards (basis) ===== */
.wd-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}


.wd-card:hover {
    border-color: var(--color-border-accent);
    box-shadow: 0 0 15px rgba(95, 179, 179, 0.2);
}


.wd-card h2,
.wd-card h3 {
    margin-top: 0;
}



/* ===== Buttons (basis) ===== */
.wd-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}


.wd-btn-primary {
    background: var(--color-btn-primary);
    color: var(--color-text-primary);
}


.wd-btn-primary:hover {
    background: var(--color-btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 158, 120, 0.4);
    text-decoration: none;
}


.wd-btn-secondary {
    background: var(--color-btn-secondary);
    color: var(--color-text-primary);
}


.wd-btn-secondary:hover {
    background: var(--color-btn-secondary-hover);
    text-decoration: none;
}

.wd-btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.wd-attachment-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.wd-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
}

.wd-attachment-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
    margin-left: auto;
}

.wd-file-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.4rem 1rem 0.4rem 0;
}

.wd-file-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.wd-file-picker__input:focus-visible + label {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wd-file-picker label.wd-btn {
    margin: 0;
    cursor: pointer;
}

.wd-attachment-actions .wd-btn {
    min-width: 6.5rem;
    text-align: center;
    transform: none;
}


.wd-btn-danger {
    background: var(--color-danger);
    color: white;
}


.wd-btn-danger:hover {
    background: #A54E56;
    text-decoration: none;
}


/* ===== Forms (basis) ===== */
.wd-form-group {
    margin-bottom: 1.5rem;
}


.wd-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 500;
}


.wd-form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-size: 1rem;
}


.wd-form-control:focus {
    outline: none;
    border-color: var(--color-border-accent);
    box-shadow: 0 0 8px rgba(95, 179, 179, 0.3);
}


/* ===== Tables (basis) ===== */
.wd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}


.wd-table th {
    background: var(--color-bg-darker);
    color: var(--color-primary);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--color-border-accent);
}


.wd-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}


.wd-table tr:hover {
    background: var(--color-bg-hover);
}

.event-badge-discussion {
    background: #5a4300;
    color: #ffe9a6;
}


/* ===== Alerts (basis) ===== */
.wd-alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}


.wd-alert-success {
    background: rgba(163, 190, 140, 0.15);
    border-color: var(--color-success);
    color: var(--color-success);
}


.wd-alert-error {
    background: rgba(191, 97, 106, 0.15);
    border-color: var(--color-danger);
    color: var(--color-danger);
}


.wd-alert-info {
    background: rgba(95, 179, 179, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* ===== Footer ===== */
.wd-footer {
    background: var(--color-bg-darker);
    border-top: 2px solid var(--color-border-accent);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--color-text-secondary);
}


.wd-footer p {
    margin: 0.5rem 0;
}


/* ===== Event Styling (voor publieke pagina's) ===== */
.event-hero {
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-card) 100%);
    border: 2px solid var(--color-border-accent);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}


.event-title {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(95, 179, 179, 0.3);
}


.event-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    background: rgba(95, 179, 179, 0.05);
    border-radius: 8px;
}


.event-detail {
    text-align: center;
}


.event-label {
    color: var(--color-text-muted);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.event-value {
    color: var(--color-primary);
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 5px;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .wd-header {
        padding: 1rem;
    }
    
    .wd-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .wd-header-language {
        flex-wrap: wrap;
    }
    
    .wd-site-name {
        font-size: 1.5em;
    }
    
    .wd-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .wd-nav a {
        width: 100%;
        text-align: center;
    }
    
    .wd-menu-button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .wd-menu-panel {
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    .wd-content {
        padding: 0 1rem;
    }
    
    .event-title {
        font-size: 1.8em;
    }
    
    .event-hero {
        padding: 20px;
    }
    
    .event-info {
        padding: 15px;
        gap: 15px;
    }
}


/* ===== System Banners (algemeen) ===== */

.system-banner-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.critical-banner-wrapper {
    margin: -0.75rem 0 1.5rem;
}

/* Basisstijl voor banners */
.system-banner {
    border-width: 2px;
    border-style: solid;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0;
    display: none;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.critical-banner-wrapper .system-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.system-banner-dismiss {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 0.25rem;
}

/* Alleen de actieve banner tonen */
.system-banner.is-active {
    display: block;
}

.system-banner-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.system-banner-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.4rem;
    text-decoration: underline;
}

.notification-detail {
    display: block;
    margin: 1.5rem 0;
}

.notification-index {
    margin: 1.5rem 0;
}

.notification-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-index li {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.notification-admin-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    margin: 1.5rem 0;
    padding: 1.25rem;
}

.notification-admin-form form {
    display: grid;
    gap: 0.75rem;
}

.notification-admin-form label {
    display: grid;
    gap: 0.35rem;
}

.notification-admin-form input,
.notification-admin-form textarea,
.notification-admin-form select {
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.55rem;
}

.notification-admin-form textarea {
    min-height: 8rem;
}

.notification-toggle-form {
    display: inline;
}

/* Info – rustig, blauw */
.system-banner.banner-info {
    border-color: #4da3ff;
    background: rgba(77, 163, 255, 0.10);
    color: var(--color-text-primary);
}

.system-banner.banner-critical {
    border-color: #c4475d;
    background: rgba(196, 71, 93, 0.2);
    box-shadow: 0 0 18px rgba(196, 71, 93, 0.5);
    color: #fff0f2;
}

/* Waarschuwing – opvallend geel/oranje */
.system-banner.banner-waarschuwing,
.system-banner.banner-warning {
    border-color: #ffb400;
    background: rgba(255, 180, 0, 0.18);
    box-shadow: 0 0 18px rgba(255, 180, 0, 0.6);
    color: #fffbe8;
}

.system-banner.banner-waarschuwing strong {
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Update – duidelijk groen */
.system-banner.banner-update {
    border-color: #41b883;
    background: rgba(65, 184, 131, 0.16);
    box-shadow: 0 0 14px rgba(65, 184, 131, 0.35);
    color: #e8fff4;
}

/* Optioneel: iconen voor snelle herkenning */
.system-banner.banner-info::before,
.system-banner.banner-waarschuwing::before,
.system-banner.banner-warning::before,
.system-banner.banner-critical::before,
.system-banner.banner-update::before {
    margin-right: 0.5rem;
    font-weight: 700;
}

.system-banner.banner-info::before {
    content: "ℹ";
}

.system-banner.banner-waarschuwing::before {
    content: "⚠";
}

.system-banner.banner-warning::before {
    content: "⚠";
}

.system-banner.banner-critical::before {
    content: "!";
}

.system-banner.banner-update::before {
    content: "✔";
}

/* ===== Homepage layout (2 kolommen) ===== */

.wd-page {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

@media (min-width: 900px) {
    .wd-page {
        display: grid;
        grid-template-columns: 2fr 1fr; /* links breed, rechts smal */
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 899px) {
    .wd-page {
        display: block;
    }

    .wd-main,
    .wd-sidebar {
        margin-bottom: 1.5rem;
    }
}

/* ===== Portal agenda ===== */
.wd-page-portal {
    display: block;
}

.wd-page-portal .wd-main {
    min-width: 0;
    width: 100%;
}

.wd-agenda-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wd-agenda-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg-card);
}

.wd-page-portal .wd-card h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.wd-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wd-calendar-nav .wd-btn {
    padding: 0.55rem 0.85rem;
}

.wd-agenda-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.wd-agenda-table th {
    padding: 0.5rem 0.2rem;
    color: var(--color-primary);
    text-align: center;
}

.wd-agenda-table td {
    height: 5rem;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    vertical-align: top;
}

.wd-agenda-day .wd-day-link {
    display: flex;
    min-height: 4.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.wd-day-number {
    font-weight: 700;
}

.wd-day-other-month .wd-day-number {
    color: var(--color-text-muted);
}

.wd-day-count {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.wd-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.wd-agenda-upcoming {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.wd-agenda-upcoming-col {
    min-width: 0;
}

.wd-agenda-upcoming-col h2 {
    font-size: 1.35rem;
}

.wd-upcoming-list,
.wd-combined-list {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    list-style: none;
}

.wd-upcoming-list li,
.wd-combined-list li {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg-darker);
    overflow-wrap: anywhere;
}

.wd-calendar-legend .wd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#booking-messages {
    scroll-margin-top: 7rem;
}

.wd-legend-color {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.wd-legend-free {
    background: #133313;
}

.wd-legend-limited {
    background: #3a2a00;
}

.wd-legend-full {
    background: #331313;
}

@media (max-width: 640px) {
    #booking-messages {
        scroll-margin-top: 20rem;
    }

    .wd-page.wd-page-portal {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    .wd-page-portal .wd-card {
        padding: 1rem;
    }

    .wd-agenda-upcoming {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wd-agenda-upcoming-col + .wd-agenda-upcoming-col {
        margin-top: 1rem;
    }

    .wd-agenda-table th {
        font-size: 0.8rem;
    }

    .wd-agenda-table td {
        height: 3.75rem;
        padding: 0.25rem;
    }

    .wd-agenda-day .wd-day-link {
        min-height: 3.2rem;
        font-size: 0.85rem;
    }

    .wd-calendar-nav .wd-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ===== Homepage-kaarten (portal-look) ===== */

.wd-box {
    background: #353C4A;                          /* zelfde basis als dashboard-card */
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.wd-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(95, 179, 179, 0.3);
    background: #353941;
}

/* Titels in blocks, vergelijkbaar met portal-kaarten */

.wd-box > h1,
.wd-box > h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

/* Sidebar-kaarten iets compacter */

.wd-sidebar .wd-box {
    padding: 1.25rem 1.25rem;
}

/* Welkom boven kalender */

.wd-welcome {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(95, 179, 179, 0.12);
    border: 1px solid rgba(95, 179, 179, 0.4);
}

.wd-welcome-name {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.wd-welcome-name:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===== Mini-kalender + legend ===== */

.wd-mini-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.wd-mini-calendar-table th,
.wd-mini-calendar-table td {
    text-align: center;
    padding: 4px 0;
}

.wd-mini-calendar-table th {
    color: var(--color-text-muted);
    font-weight: 600;
}

.wd-mini-calendar-table a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.wd-mini-calendar-table a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Dagen-states */

.wd-mini-day-outside {
    background: #0a0a0a;
    color: #888;
}

.wd-mini-day-free {
    background: #133313;
}

.wd-mini-day-limited {
    background: #3a2a00;
}

.wd-mini-day-full {
    background: #331313;
}

.wd-mini-day-discussion {
    background: #5a4300;
}

.wd-booking-details {
    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) 1fr;
    gap: 0.45rem 1rem;
    margin: 1rem 0;
}

.wd-booking-details dt {
    color: var(--color-text-secondary);
    font-weight: 700;
}

.wd-booking-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.wd-booking-messages {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

.wd-booking-messages li {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border-accent);
    border-radius: 5px;
    background: var(--color-bg-card);
}

.wd-booking-messages time {
    margin-left: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.wd-mini-day-today {
    box-shadow: 0 0 0 2px var(--color-primary) inset;
}

.wd-mini-day-event {
    box-shadow: 0 0 0 2px #4da3ff inset;
}

.wd-mini-day-today.wd-mini-day-event {
    box-shadow: 0 0 0 2px #4da3ff inset, 0 0 0 3px var(--color-primary) inset;
}

/* Legend onder kalender */

.wd-calendar-legend-text {
    font-size: 0.75em;
    margin-top: 6px;
    color: var(--color-text-muted);
}

.wd-cal-legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.wd-cal-event {
    background: #4da3ff;
}

.wd-cal-free {
    background: #133313;
}

.wd-cal-limited {
    background: #3a2a00;
}

.wd-cal-full {
    background: #331313;
}

.wd-cal-discussion {
    background: #5a4300;
}

.wd-calendar-note {
    font-size: 0.8em;
    margin-top: 6px;
    color: var(--color-text-secondary);
}

/* ===== Aankomende events ===== */

.wd-event-list-title {
    font-size: 1em;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
}

.wd-event-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
}

.wd-event-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.wd-event-list li:last-child {
    border-bottom: none;
}

/* Badges voor type event */

.event-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

.event-badge-public {
    background: rgba(95, 179, 179, 0.2);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.event-badge-private {
    background: rgba(163, 190, 140, 0.2);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

/* ===== Mini-gallery in sidebar ===== */

.wd-mini-gallery-strip {
    display: flex;
    gap: 6px;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.wd-mini-gallery-strip img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wd-mini-gallery-strip img:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-accent);
    box-shadow: 0 4px 10px rgba(95, 179, 179, 0.3);
}

/* ===== Impressie-strip in main ===== */

.wd-mini-gallery-strip-main {
    display: flex;
    gap: 10px;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.wd-mini-gallery-strip-main img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wd-mini-gallery-strip-main img:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-accent);
    box-shadow: 0 6px 14px rgba(95, 179, 179, 0.3);
}

/* ===== Footer (theme versie) ===== */
.wd-footer {
    background: var(--color-bg-darker);
    border-top: 2px solid var(--color-border-accent);
    margin-top: 30px;
    padding: 20px 15px 10px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.wd-footer a {
    color: var(--color-primary);          /* turquoise links */
    text-decoration: none;
}

.wd-footer a:hover {
    color: var(--color-primary-dark);     /* donkerder turquoise */
    text-decoration: underline;
}

.wd-footer-inner {
    max-width: 1200px;
    margin: 0 auto 10px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.wd-footer-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.wd-footer-section p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.wd-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

.wd-social-follow { margin-top: 1.5rem; text-align: center; }
.wd-social-follow-label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; color: var(--color-text-muted); font-size: .9rem; }
.wd-social-follow-label::before, .wd-social-follow-label::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.wd-social-follow-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.wd-footer-section .wd-social-follow { margin-top: .5rem; }
.wd-footer-section .wd-social-follow-buttons { justify-content: flex-start; }
.wd-social-follow-btn { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-bg-card); border: 1px solid var(--color-border); transition: border-color .2s, box-shadow .2s, transform .2s; }
.wd-social-follow-btn svg { width: 1.5rem; height: 1.5rem; display: block; }
.wd-social-follow-btn:hover, .wd-social-follow-btn:focus-visible { border-color: var(--color-border-accent); box-shadow: 0 0 10px rgba(95,179,179,.35); transform: translateY(-1px); }

.wd-social-carousel-track { min-height: 8rem; }
.wd-social-slide { display: flex; flex-direction: column; gap: .75rem; overflow-wrap: anywhere; animation: wd-slide-in .5s ease-out; }
.wd-social-slide[hidden] { display: none; }
.wd-social-slide-date { color: var(--color-text-muted); font-size: .8rem; }
.wd-social-slide img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 4px; }
.wd-social-slide-badge { align-self: flex-start; padding: .15rem .7rem; border: 1px solid var(--color-border-accent); border-radius: 999px; color: var(--color-primary); font-size: .8rem; font-weight: 700; }
.wd-social-carousel-nav { display: flex; align-items: center; gap: .7rem; margin: .8rem 0; }
.wd-social-timer { flex: 1; height: 4px; border-radius: 2px; background: rgba(95,179,179,.2); overflow: hidden; }
.wd-social-timer-bar { display: block; height: 100%; width: 100%; background: var(--color-primary); transform-origin: left; animation: wd-social-timer 6s linear forwards; }
.wd-social-carousel.is-paused .wd-social-timer-bar { animation-play-state: paused; background: var(--color-text-muted, #9aa3b2); }
.wd-social-carousel.is-static .wd-social-timer { visibility: hidden; }
@keyframes wd-social-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wd-social-carousel-nav button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--color-border-accent); background: var(--color-bg-card); color: var(--color-primary); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.wd-social-carousel-nav button:hover, .wd-social-carousel-nav button:focus-visible { box-shadow: 0 0 10px rgba(95,179,179,.35); transform: translateY(-1px); }
@keyframes wd-slide-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wd-social-slide { animation: none; } }

.wd-social-page {
    padding: 2.5rem 1rem;
}

.wd-social-page h1 { text-align: center; }
.wd-social-page > .wd-container > p:first-of-type { text-align: center; color: var(--color-text-muted); max-width: 40rem; margin: 0 auto 1.5rem; }
.wd-social-feed h2 { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; color: var(--color-primary); font-size: 1.3rem; }
.wd-social-feed h2::after { content: ""; flex: 1; height: 1px; background: var(--color-border-accent); }
.wd-social-post { transition: border-color .2s, box-shadow .2s; }
.wd-social-post:hover { border-color: var(--color-border-accent); box-shadow: 0 0 10px rgba(95,179,179,.25); }
.wd-social-post > a { color: var(--color-primary); font-weight: 700; }
.wd-social-empty { text-align: center; color: var(--color-text-muted); margin-top: 2rem; padding: 1rem; border: 1px dashed var(--color-border); border-radius: 8px; }

.wd-social-links,
.wd-social-feed-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.wd-social-link,
.wd-social-post {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--color-bg-card);
}

.wd-social-link {
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}

.wd-social-feeds {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.wd-social-post {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-wrap: anywhere;
}

.wd-social-feed-items {
    grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
}

.wd-social-post img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

.wd-social-post time {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: auto;
}

.wd-social-update-notice {
    border-left: 4px solid var(--color-primary);
    padding: 0.75rem 1rem;
    background: var(--color-bg-card);
}

.wd-connected-accounts {
    margin-top: 1.5rem;
}

.wd-connected-account-list {
    display: grid;
    gap: 0.75rem;
}

.wd-connected-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.wd-connected-account form {
    margin: 0;
}

.wd-totp-secret,
.wd-recovery-codes code {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: var(--color-bg-darker);
    overflow-wrap: anywhere;
}

.wd-recovery-codes {
    columns: 2;
}

@media (prefers-reduced-motion: no-preference) {
    .wd-social-update-notice.is-new {
        animation: wd-social-notice 0.8s ease-out;
    }
}

@keyframes wd-social-notice {
    0% { background: var(--color-primary); color: var(--color-bg-dark); }
    100% { background: var(--color-bg-card); color: var(--color-text-primary); }
}

/* Mobiel: onder elkaar tonen */
@media (max-width: 768px) {
    .wd-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
}
.wd-legal { padding: 2rem 0; }
.wd-legal .wd-container { max-width: 900px; }
.wd-legal-section { margin-top: 1.5rem; scroll-margin-top: 6rem; }
.wd-legal ul, .wd-legal ol { padding-left: 1.4rem; }
.wd-legal li { margin: .35rem 0; }
.wd-legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.wd-legal-table th, .wd-legal-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.15); }

/* ===== Achtergrondthema's (seizoen en event) ===== */
body.wd-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}
body.wd-theme-event::before {
    background-image: linear-gradient(rgba(21, 24, 32, .55), rgba(21, 24, 32, .75)), var(--wd-bg-image);
}
body.wd-theme-halloween::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 117, 24, .22), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(120, 60, 180, .25), transparent 40%),
        linear-gradient(180deg, #120a1a, #1c1020 60%, #0d0810);
}
body.wd-theme-christmas::before {
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .10), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(191, 97, 106, .22), transparent 40%),
        linear-gradient(180deg, #0f1f1a, #14261f 60%, #0a1410);
}

/* Eigen tekstkleur van een event: alleen voor tekst buiten kaarten, header en footer */
body.wd-theme-text { color: var(--wd-event-text); }
body.wd-theme-text :is(h1, h2, h3, h4, h5, h6) { color: var(--wd-event-text); }
body.wd-theme-text :is(.wd-card, .wd-header, .wd-footer, .wd-menu-panel) { color: var(--color-text-primary); }
body.wd-theme-text :is(.wd-card, .wd-header, .wd-footer, .wd-menu-panel) :is(h1, h2, h3, h4, h5, h6) { color: var(--color-text-primary); }

/* Scare evening optie en uitleg (ook op publieke pagina's) */
.wd-scare-option { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.wd-scare-option:hover, .wd-scare-option:has(input:checked) { border-color: #5FB3B3; box-shadow: 0 0 10px rgba(95,179,179,.35); }
.wd-scare-icon { font-size: 1.4rem; line-height: 1; }
.wd-scare-info { margin-top: .6rem; font-size: .9rem; }
.wd-scare-info summary { display: flex; align-items: center; gap: .6rem; list-style: none; cursor: pointer; padding: .55rem .9rem; border: 1px solid #5FB3B3; border-radius: 8px; background: rgba(95,179,179,.12); color: #5FB3B3; font-weight: 600; transition: background .2s, box-shadow .2s; }
.wd-scare-info summary::-webkit-details-marker { display: none; }
.wd-scare-info summary::before { content: "\2139"; display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: .85rem; line-height: 1; flex: 0 0 auto; }
.wd-scare-info summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; }
.wd-scare-info[open] summary::after { content: "\2212"; }
.wd-scare-info summary:hover, .wd-scare-info summary:focus-visible { background: rgba(95,179,179,.22); box-shadow: 0 0 10px rgba(95,179,179,.35); }
.wd-scare-info p { margin: .6rem 0 0; padding: 0 .3rem; }

.wd-social-embed { margin-top: 1.5rem; }
.wd-social-embed iframe { display: block; width: 100%; max-width: 500px; height: 700px; border: 0; border-radius: 12px; background: #fff; }
.wd-social-embeds { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-top: 1.5rem; }
.wd-social-embeds .wd-social-embed { margin-top: 0; flex: 0 1 500px; min-width: 280px; }
.wd-social-embed-post { flex: 0 1 500px; min-width: 280px; max-width: 100%; }
.wd-social-embed-post iframe { display: block; width: 100%; max-width: 500px; border: 0; border-radius: 12px; background: #fff; }

.wd-switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.wd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wd-switch-track { position: relative; width: 44px; height: 24px; flex: 0 0 44px; border-radius: 12px; background: #555; transition: background .2s; }
.wd-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.wd-switch input:checked + .wd-switch-track { background: #2e9e57; }
.wd-switch input:checked + .wd-switch-track::after { transform: translateX(20px); }
.wd-switch input:focus-visible + .wd-switch-track { outline: 2px solid #fff; outline-offset: 2px; }
