/* Borrelfeest — styles v2
   Stijl matched op de uitnodiging:
     - Ivoor #f7f1e4 (achtergrond, breathable)
     - Navy #0d2b46 (hoofdkleur, titels, accenten)
     - Goud #c9a961 (highlights, sierlijn)
     - Tekst donkergrijs #2a2a2a, muted #6b6358
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f7f1e4;
    color: #2a2a2a;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Invitation banner --- */
.invitation-banner {
    width: 100%;
    background-color: #f7f1e4;
    padding: 0;
    display: flex;
    justify-content: center;
    border-bottom: 4px solid #0d2b46;
    position: relative;
}

.invitation-banner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #c9a961;
}

.invitation-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero (used on success page only) --- */
.hero {
    background-color: #0d2b46;
    color: #ffffff;
    padding: 80px 24px 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #c9a961;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #c9a961;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #c9a961;
}

.hero-subtitle {
    font-size: clamp(17px, 2.2vw, 20px);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
}

.hero-success {
    background-color: #0d2b46;
}

.check-icon {
    width: 88px;
    height: 88px;
    background-color: rgba(201, 169, 97, 0.15);
    border: 2px solid #c9a961;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #c9a961;
}

/* --- Ornament (decoratieve scheidingslijn zoals op de uitnodiging) --- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 28px;
    max-width: 280px;
    color: #c9a961;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a961, transparent);
}

.ornament-diamond {
    font-size: 10px;
    color: #c9a961;
}

/* --- Content --- */
.content {
    max-width: 720px;
    width: 100%;
    margin: 48px auto 0;
    padding: 0 24px 64px;
    flex: 1;
}

.content-narrow {
    max-width: 480px;
    margin-top: 80px;
}

.content-wide {
    max-width: 1200px;
    margin-top: 64px;
}

.intro {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(13, 43, 70, 0.06);
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid rgba(201, 169, 97, 0.25);
}

.intro p {
    font-size: 18px;
    color: #2a2a2a;
    line-height: 1.7;
}

.intro .meta {
    font-size: 15px;
    color: #6b6358;
    margin-top: 16px;
}

/* --- Event details cards --- */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.detail-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13, 43, 70, 0.05);
    border-top: 3px solid #c9a961;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    color: #6b6358;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.detail-value {
    color: #0d2b46;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Playfair Display', Georgia, serif;
}

.detail-sub {
    color: #6b6358;
    font-size: 14px;
}

/* --- Form section --- */
.form-section {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 48px 40px 40px;
    box-shadow: 0 4px 24px rgba(13, 43, 70, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.3);
    position: relative;
}

.form-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: #0d2b46;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.form-intro {
    color: #6b6358;
    margin-bottom: 32px;
    font-size: 15px;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #0d2b46;
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    border: 1.5px solid #e6dcc4;
    background-color: #fbf8f0;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #2a2a2a;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a961;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

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

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background-color: #fbf8f0;
    border: 1.5px solid #e6dcc4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 15px;
    font-weight: 500;
    color: #2a2a2a;
}

.radio-label:hover {
    border-color: #c9a961;
    background-color: #ffffff;
}

.radio-label input[type="radio"] {
    accent-color: #0d2b46;
}

.radio-label:has(input:checked) {
    border-color: #0d2b46;
    background-color: #ffffff;
    color: #0d2b46;
    box-shadow: 0 0 0 2px rgba(13, 43, 70, 0.08);
}

/* --- Buttons --- */
.btn-primary {
    background-color: #0d2b46;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    font-family: inherit;
    margin-top: 8px;
    position: relative;
}

.btn-primary:hover {
    background-color: #163b5d;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #0d2b46;
    border: 1.5px solid #0d2b46;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: #0d2b46;
    color: #ffffff;
}

.btn-tertiary {
    display: inline-block;
    color: #6b6358;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

.btn-tertiary:hover {
    color: #0d2b46;
}

.btn-delete {
    background-color: transparent;
    color: #a04545;
    border: 1px solid #e8d0d0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.btn-delete:hover {
    background-color: #a04545;
    color: #ffffff;
    border-color: #a04545;
}

.privacy-note {
    color: #8a8275;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* --- Flash messages --- */
.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
}

.flash {
    padding: 14px 24px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flash-error {
    background-color: #fff0f0;
    color: #a04545;
    border: 1px solid #f0d0d0;
}

.flash-success {
    background-color: #f0f7f0;
    color: #2d5a2d;
    border: 1px solid #d0e8d0;
}

/* --- Footer & actions --- */
.actions {
    text-align: center;
    margin: 40px 0;
}

.page-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    color: #6b6358;
    font-size: 14px;
}

.page-footer a {
    color: #0d2b46;
    text-decoration: none;
    font-weight: 600;
}

.page-footer a:hover {
    text-decoration: underline;
    text-decoration-color: #c9a961;
}

/* --- Admin --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: #0d2b46;
    margin-bottom: 4px;
}

.admin-header p {
    color: #6b6358;
    font-size: 14px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13, 43, 70, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 3px solid #c9a961;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #0d2b46;
    font-family: 'Playfair Display', Georgia, serif;
}

.stat-positive .stat-value { color: #2d6a4f; }
.stat-negative .stat-value { color: #a04545; }

.stat-label {
    color: #6b6358;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.table-wrapper {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(13, 43, 70, 0.05);
    overflow-x: auto;
    border: 1px solid rgba(201, 169, 97, 0.25);
}

.rsvp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.rsvp-table th {
    background-color: #f7f1e4;
    color: #0d2b46;
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #c9a961;
}

.rsvp-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0e9d8;
    vertical-align: top;
}

.rsvp-table tr:last-child td {
    border-bottom: none;
}

.rsvp-table tr:hover td {
    background-color: #fbf8f0;
}

.row-declined {
    opacity: 0.55;
}

.rsvp-table a {
    color: #0d2b46;
    text-decoration: none;
    font-weight: 500;
}

.rsvp-table a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-yes {
    background-color: #d4ead8;
    color: #2d6a4f;
}

.badge-no {
    background-color: #f0d4d4;
    color: #a04545;
}

.badge-pending {
    background-color: #f0e6cc;
    color: #8a6f1f;
}

.stat-pending .stat-value { color: #8a6f1f; }

/* --- Block sections for admin --- */
.block {
    margin-bottom: 40px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.block-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #0d2b46;
    font-size: 22px;
    margin: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f7f1e4;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4a4239;
}

.filter-bar label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #4a4239;
    font-weight: 500;
}

.filter-bar select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #d4ccba;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    color: #2a2a2a;
    cursor: pointer;
}

.filter-bar .btn-tertiary {
    margin-left: auto;
}

.format-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 24px;
}

.format-list li {
    padding: 6px 0;
    color: #6b6358;
    font-size: 14px;
}

.format-list code {
    background-color: #f7f1e4;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    color: #0d2b46;
}

.btn-mini {
    background-color: #f7f1e4;
    color: #0d2b46;
    border: 1px solid #c9a961;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mini:hover {
    background-color: #c9a961;
    color: #ffffff;
}

.btn-mini-primary {
    background-color: #0d2b46;
    color: #ffffff;
    border-color: #0d2b46;
}

.btn-mini-primary:hover {
    background-color: #163b5d;
    color: #ffffff;
}

.btn-primary-small {
    background-color: #0d2b46;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary-small:hover {
    background-color: #163b5d;
}

.link-cell {
    max-width: 280px;
}

.token-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 11px;
    color: #6b6358;
    background-color: #f7f1e4;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.token-link:hover {
    color: #0d2b46;
    background-color: #f0e6cc;
}

.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* --- Batch sending panel --- */
.batch-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.batch-section {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 24px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 2px 8px rgba(13, 43, 70, 0.04);
}

.batch-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #0d2b46;
    font-size: 18px;
    margin: 0 0 8px;
}

.batch-info {
    color: #6b6358;
    font-size: 14px;
    margin: 0 0 16px;
}

.batch-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.batch-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #0d2b46;
    font-weight: 600;
}

.batch-form input[type="number"] {
    width: 80px;
    border: 1.5px solid #e6dcc4;
    background-color: #fbf8f0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.batch-form input[type="number"]:focus {
    outline: none;
    border-color: #c9a961;
    background-color: #ffffff;
}

.batch-hint {
    color: #8a8275;
    font-size: 12px;
    margin: 12px 0 0;
    font-style: italic;
}

.message-cell {
    max-width: 240px;
    word-wrap: break-word;
}

.time-cell {
    color: #8a8275;
    font-size: 12px;
    white-space: nowrap;
}

.empty-state {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 64px 24px;
    text-align: center;
    color: #8a8275;
    font-size: 15px;
    border: 1px solid rgba(201, 169, 97, 0.25);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero {
        padding: 56px 20px 72px;
    }

    .content {
        margin-top: 32px;
        padding: 0 16px 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 36px 24px 28px;
    }

    .form-section h2 {
        font-size: 26px;
    }

    .intro {
        padding: 28px 24px;
    }

    .intro p {
        font-size: 16px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================================
   Multi-event additions
   ============================================================================ */

.topnav {
    background: #0d2b46;
    color: #f7f1e4;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topnav-brand {
    color: #f7f1e4;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}
.topnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topnav-user {
    color: #d4c8b0;
    font-size: 14px;
}
.topnav-right .btn-tertiary {
    color: #f7f1e4;
    border: 1px solid rgba(247,241,228,0.3);
    padding: 6px 14px;
    font-size: 13px;
}
.topnav-right .btn-tertiary:hover {
    background: rgba(247,241,228,0.1);
}

.flash-area {
    max-width: 800px;
    margin: 16px auto 0;
    padding: 0 16px;
}
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.site-footer {
    text-align: center;
    padding: 32px 16px;
    color: #6b6358;
    font-size: 13px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e1ce;
    box-shadow: 0 2px 8px rgba(13,43,70,0.04);
}
.event-card.event-archived {
    opacity: 0.65;
    background: #f7f1e4;
}
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    margin-bottom: 8px;
}
.event-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #0d2b46;
    margin: 0;
    font-size: 20px;
}
.event-card-date, .event-card-loc {
    color: #6b6358;
    font-size: 14px;
    margin: 4px 0;
}
.event-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 16px 0;
    font-size: 13px;
    color: #4a4239;
}
.event-card-stats .stat-positive { color: #2d6a4f; }
.event-card-stats .stat-negative { color: #9d4444; }
.event-card-stats .stat-pending  { color: #8a7100; }
.event-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.invitation-banner {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) {
    .field-row { grid-template-columns: 1fr; }
    .event-card-stats { flex-direction: column; gap: 6px; }
    .topnav-inner { padding: 0 12px; }
    .topnav-user { display: none; }
}

/* Honeypot: off-screen geplaatst (robuuster dan display:none, want sommige
   bots slaan display:none-velden over). Onzichtbaar en onbereikbaar voor
   echte gebruikers en screenreaders. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
