/* =========================================
   Oudercomité Waterpolo – elegante zwembadlook
   ========================================= */


/* ==========================
   Design tokens
   ========================== */

:root {
    --bg: #050b18;
    --bg-alt: #071222;
    --panel: #020617;
    --panel-soft: #081424;
    --brand: #38bdf8;
    /* helder zwembadblauw */
    --brand-soft: rgba(56, 189, 248, 0.15);
    --accent: #0ea5e9;
    --accent-soft: rgba(14, 165, 233, 0.18);
    --accent-2: #facc15;
    /* geel accent */
    --text: #f9fafb;
    --muted: #94a3b8;
    --danger: #ef4444;
    --radius: 18px;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.9);
}


/* ==========================
   Basis
   ========================== */

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #020617;
}

body.theme-waterpolo {
    /* lichtere, frisse zwembadgradient */
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%), radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.22), transparent 55%), radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.20), transparent 55%), #071427;
}


/* Layout helpers */

.container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    padding: 4rem 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.94));
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--muted);
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(7, 16, 31, 0.96), rgba(7, 16, 31, 0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header::after {
    /* subtiele, dunne "baanlijn" onder de header */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background-image: linear-gradient( to right, rgba(56, 189, 248, 0.8), rgba(125, 211, 252, 0.9), rgba(56, 189, 248, 0.8));
    opacity: 0.85;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.9));
}

.logo-text h1 {
    font-size: 1.1rem;
    margin: 0;
}

.logo-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.main-nav a:hover {
    color: #e5e7eb;
    background: rgba(148, 163, 184, 0.16);
}


/* ==========================
   Hero – elegante zwembadlook
   ========================== */

.hero {
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    /* Foto veel lichter houden: overlay transparanter
       en iets hoger in beeld zodat het water beter zichtbaar is */
    background-image: linear-gradient(to bottom, rgba(5, 12, 30, 0.45), rgba(5, 12, 30, 0.80)), url("/static/img/waterpolo.jpeg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.hero-text h2 {
    font-size: clamp(2.2rem, 3vw, 2.9rem);
    margin-bottom: 0.8rem;
}

.hero-text p {
    color: var(--muted);
    max-width: 580px;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.hero-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.hero-note {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 0.75rem;
}


/* Highlight card rechts */

.hero-highlight {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), rgba(15, 23, 42, 0.98));
    border-radius: 22px;
    padding: 1.7rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(56, 189, 248, 0.65);
    position: relative;
    overflow: hidden;
}

.hero-highlight::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient( from 180deg at 50% 50%, rgba(56, 189, 248, 0.25), transparent, rgba(148, 163, 253, 0.28), transparent);
    opacity: 0.8;
    filter: blur(42px);
    z-index: -1;
}

.hero-highlight .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    margin-bottom: 0.6rem;
}

.hero-highlight h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.highlight-desc {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.event-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
}

.event-pill span {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
}


/* ==========================
   Buttons
   ========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.16s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1120;
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.8);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.95);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: rgba(148, 163, 184, 0.9);
    color: #e5e7eb;
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn[disabled],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ==========================
   Grids & lists
   ========================== */

.grid-2 {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.bullet-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.bullet-list li+li {
    margin-top: 0.3rem;
}


/* ==========================
   Stats onder hero
   ========================== */

.stats-strip {
    padding-top: 1.6rem;
    padding-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.90));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.2rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.stat-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}


/* ==========================
   Events
   ========================== */

.event-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.event-type-chips span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.95);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.event-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.89));
    border-radius: var(--radius);
    padding: 1.25rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.40);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(37, 99, 235, 0.20);
    color: #bfdbfe;
    align-self: flex-start;
}

.event-tag-highlight {
    background: rgba(250, 204, 21, 0.22);
    color: #fef9c3;
}

.event-card h3 {
    margin: 0.3rem 0 0;
    font-size: 1.1rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.event-desc {
    font-size: 0.9rem;
}

.admin-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.event-closed-msg {
    font-size: 0.85rem;
    color: #facc15;
}


/* Flyerin events */

.event-flyer-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.7rem;
    background: #020617;
}

.event-flyer {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: cover;
}


/* ==========================
   Gallery
   ========================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    display: block;
    height: 180px;
    object-fit: cover;
}

.gallery-item figcaption {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem 0.7rem;
    color: var(--muted);
}


/* ==========================
   Forms & contact
   ========================== */

.contact-form {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius);
    padding: 1.3rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-soft);
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.field label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.field input,
.field textarea {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(56, 189, 248, 0.95);
    outline-offset: 1px;
    border-color: transparent;
}


/* Status */

.form-status {
    min-height: 1.2rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: var(--danger);
}

.muted {
    color: var(--muted);
}


/* ==========================
   Tabellen (inschrijvingen)
   ========================== */

.table-wrapper {
    overflow-x: auto;
}

.table-registrations {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-registrations th,
.table-registrations td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
}

.table-registrations th {
    background: rgba(15, 23, 42, 0.96);
}


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

.site-footer {
    padding: 1.6rem 0;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-note {
    opacity: 0.9;
}


/* ==========================
   Modal
   ========================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 1rem;
}

.modal {
    background: #020617;
    border-radius: 20px;
    width: min(480px, 100%);
    max-height: min(80vh, 640px);
    overflow-y: auto;
    padding: 1.4rem 1.3rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(56, 189, 248, 0.65);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.modal-subtitle {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: var(--muted);
}


/* Helpers */

.hidden {
    display: none;
}


/* ==========================
   Responsive
   ========================== */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-highlight {
        order: -1;
    }
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .main-nav {
        display: none;
        /* eventueel later hamburger */
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        padding-top: 2.4rem;
    }
    .logo-text h1 {
        font-size: 0.95rem;
    }
    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}


/* Admin knoppen */

.admin-events .admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.admin-events form {
    margin: 0;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.7);
    color: #fecaca;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.badge-open,
.badge-closed {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.badge-open {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.badge-closed {
    background: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

.footer-admin-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.15s ease-out;
}

.footer-admin-link:hover {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.95);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.support-card {
    border-radius: 16px;
    padding: 1rem 0.9rem;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.9);
    text-align: center;
}

.support-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.6rem;
}

.support-name {
    margin: 0.2rem 0 0.4rem;
    font-size: 0.95rem;
}

.support-text {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.support-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.16s ease-out;
}

.support-link:hover {
    border-color: rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.95);
}


/* mobile */

@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-link:hover .gallery-item {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 1);
}


/* standaard grid */

.support-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}


/* als er maar één partner is: maak de kaart groter en centreer hem */

.support-grid>.support-card:only-child {
    max-width: 420px;
    margin-inline: auto;
    padding: 2.2rem 2.6rem;
    text-align: center;
}

.form-status.success {
    color: #22c55e;
    /* groen */
}

.form-status.error {
    color: #f97373;
    /* zacht rood */
}