/* ==========================================================================
   Denktank KEINA — Portaal Theme
   Hergebruikt variabelen uit het hoofdthema
   ========================================================================== */

:root {
    --navy: #1B2A4A;
    --navy-deep: #0F1A2E;
    --navy-light: #2A3F6A;
    --gold: #C9A84C;
    --gold-light: #E0C472;
    --cream: #FAF8F5;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-body: #3A3A4A;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
}

/* ---------- Base ---------- */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    font-weight: 700;
}

::selection {
    background-color: var(--gold);
    color: var(--navy-deep);
}

/* ---------- Navigation ---------- */

.portaal-nav {
    background-color: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.portaal-nav.navbar-shrink {
    padding: 0.5rem 0;
    background-color: rgba(15, 26, 46, 0.98);
}

.portaal-nav > .container {
    position: relative;
}

.portaal-nav .navbar-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .portaal-nav .navbar-brand {
        position: absolute;
        left: var(--bs-gutter-x, 0.75rem);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .portaal-nav .navbar-collapse {
        justify-content: center;
        padding-left: 180px;
        padding-right: 180px;
    }

    .portaal-nav .navbar-nav.nav-profiel-wrap {
        position: absolute;
        right: var(--bs-gutter-x, 0.75rem);
        top: 50%;
        transform: translateY(-50%);
    }
}

.portaal-nav .brand-accent {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
}

.portaal-nav .brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portaal-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.portaal-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.portaal-nav .nav-link:hover,
.portaal-nav .nav-link.active {
    color: var(--gold);
}

/* ---------- Profiel dropdown (navbar) ---------- */

.profiel-dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.nav-profiel-foto {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
}

.nav-profiel-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.nav-profiel-naam {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portaal-nav .dropdown-menu {
    background-color: var(--navy);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
}

.portaal-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.portaal-nav .dropdown-item:hover {
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.portaal-nav .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Main Content ---------- */

.portaal-main {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    min-height: calc(100vh - 60px);
}

/* ---------- Auth / Login ---------- */

.auth-body {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: var(--white);
    border-radius: 4px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    border-top: 4px solid var(--gold);
}

.login-card .login-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 4px;
    text-align: center;
}

.login-card .login-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: block;
    margin-bottom: 2rem;
}

/* ---------- Cards ---------- */

.portaal-card {
    background-color: var(--white);
    border-left: 4px solid var(--gold);
    padding: 2rem 2.5rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.portaal-card-top {
    background-color: var(--white);
    border-top: 4px solid var(--gold);
    padding: 2rem 2.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.portaal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ---------- Section Titles ---------- */

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-divider {
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    margin-bottom: 2rem;
}

/* ---------- Buttons ---------- */

.btn-gold {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-deep);
    background-color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.6rem 1.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-deep);
}

.btn-outline-gold {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    background-color: transparent;
    border: 1px solid var(--gold);
    padding: 0.6rem 1.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy-deep);
}

.btn-navy {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--navy);
    border: 1px solid var(--navy);
    padding: 0.6rem 1.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
}

/* ---------- Forms ---------- */

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Tables ---------- */

.table-portaal {
    font-size: 0.9rem;
}

.table-portaal thead th {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--gold);
    padding: 0.75rem 1rem;
}

.table-portaal tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* ---------- Vragenlijst ---------- */

.vraag-list {
    list-style: none;
    padding: 0;
    counter-reset: vraag;
}

.vraag-list li {
    counter-increment: vraag;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    line-height: 1.6;
}

.vraag-list li:last-child {
    border-bottom: none;
}

.vraag-list li::before {
    content: counter(vraag);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--gold);
    color: var(--navy-deep);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Status badges ---------- */

.badge-gepland {
    background-color: var(--navy);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
}

.badge-afgerond {
    background-color: #2D6A4F;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
}

/* ---------- Archief lijst ---------- */

.archief-lijst {
    padding: 0;
}

.archief-item {
    padding: 1rem 1.5rem;
    transition: background-color 0.15s ease;
    gap: 1rem;
    border-color: var(--border-light) !important;
}

.archief-item:hover {
    background-color: var(--cream);
}

.archief-titel {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.15rem;
}

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

.archief-chevron {
    color: var(--border-light);
    font-size: 0.75rem;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.archief-item:hover .archief-chevron {
    color: var(--gold);
}

/* ---------- Empty State ---------- */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-light);
    margin-bottom: 1rem;
    display: block;
}

/* ---------- Footer ---------- */

.portaal-footer {
    background-color: var(--navy-deep);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.portaal-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ---------- Profielen ---------- */

.profiel-foto-groot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.profiel-foto-placeholder-groot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 3.5rem;
}

.profiel-foto-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
    vertical-align: middle;
}

.profiel-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
}

.vraag-lid {
    margin-bottom: 0.35rem;
}

.vraag-lid-naam {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.vraag-lid-naam:hover {
    color: var(--gold);
}

/* ---------- Leden overzicht ---------- */

.lid-kaart {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.lid-kaart:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.15);
}

.lid-kaart-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.lid-kaart-foto-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lid-kaart-naam {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
}

.lid-kaart-email,
.lid-kaart-tel,
.lid-kaart-sinds {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.lid-kaart-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.lid-kaart-inactief {
    opacity: 0.6;
    border-left-color: var(--border-light);
}

.lid-kaart-inactief:hover {
    opacity: 0.8;
}

.lid-kaart-foto-inactief {
    filter: grayscale(100%);
    border-color: var(--border-light);
}

/* ---------- Voorzitter badge ---------- */

.badge-voorzitter {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    vertical-align: middle;
}

/* ---------- Reacties ---------- */

.reactie-lijst {
    border-top: 1px solid var(--border-light);
}

.reactie-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.reactie-item:last-child {
    border-bottom: none;
}

.reactie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reactie-inhoud {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
}

.reactie-bestand {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--cream);
    border-radius: 4px;
    display: inline-block;
}

.reactie-bestand a {
    color: var(--navy);
    font-weight: 500;
}

.reactie-bestand a:hover {
    color: var(--gold);
}

.reactie-form {
    border-top: 2px solid var(--border-light);
    padding-top: 1.5rem;
}

/* ---------- Bottom Navigation (mobiel) ---------- */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--navy-deep);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    z-index: 1040;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease;
}

.bottom-nav-item i {
    font-size: 1.1rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--gold);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .portaal-main {
        padding-bottom: 5rem;
    }

    .portaal-footer {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 768px) {
    .portaal-main {
        padding-top: 5.5rem;
    }

    .portaal-card,
    .portaal-card-top {
        padding: 1.25rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-divider {
        margin-bottom: 1.25rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    /* Profiel foto's kleiner op mobiel */
    .profiel-foto-groot {
        width: 100px;
        height: 100px;
    }

    .profiel-foto-placeholder-groot {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .lid-kaart-foto,
    .lid-kaart-foto-placeholder {
        width: 44px;
        height: 44px;
    }

    .lid-kaart-foto-placeholder {
        font-size: 1.1rem;
    }

    .lid-kaart-naam {
        font-size: 0.95rem;
    }

    /* Vragenlijst compacter */
    .vraag-list li {
        padding-left: 2rem;
        font-size: 0.9rem;
    }

    .vraag-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }

    /* Reacties */
    .reactie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .reactie-form .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .reactie-form .btn {
        align-self: flex-start;
    }

    /* Buttons compacter */
    .btn-gold,
    .btn-outline-gold,
    .btn-navy {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Footer */
    .portaal-footer p {
        font-size: 0.7rem;
    }

    /* Archief compacter */
    .archief-item {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Uitwerkingen — HTML content styling
   ========================================================================== */

.uitwerking-inhoud {
    line-height: 1.7;
    font-size: 0.95rem;
}

.uitwerking-inhoud h2,
.uitwerking-inhoud h3,
.uitwerking-inhoud h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.uitwerking-inhoud h2 { font-size: 1.4rem; }
.uitwerking-inhoud h3 { font-size: 1.2rem; }
.uitwerking-inhoud h4 { font-size: 1.05rem; color: var(--gold); }

.uitwerking-inhoud p {
    margin-bottom: 0;
}

.uitwerking-inhoud ul,
.uitwerking-inhoud ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.uitwerking-inhoud li {
    margin-bottom: 0.35rem;
}

.uitwerking-inhoud table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.uitwerking-inhoud table th,
.uitwerking-inhoud table td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.uitwerking-inhoud table th {
    background: rgba(201, 168, 76, 0.1);
    font-weight: 600;
    color: var(--navy);
}

.uitwerking-inhoud table tr:nth-child(even) td {
    background: rgba(27, 42, 74, 0.02);
}

.uitwerking-inhoud blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 1rem 0;
}

.uitwerking-inhoud a {
    color: var(--gold);
    text-decoration: underline;
}

/* Quill list rendering — Quill slaat lijsten op als <ol> met data-list attributen.
   Alleen <li> elementen MET data-list attribuut worden speciaal behandeld,
   standaard <ul>/<ol> lijsten blijven onaangetast. */
.uitwerking-inhoud ol:has(> li[data-list]) {
    list-style-type: none;
    padding-left: 1.5rem;
    counter-reset: list-counter;
}
.uitwerking-inhoud li[data-list="bullet"]::before {
    content: '\2022';
    margin-right: 0.5rem;
}
.uitwerking-inhoud li[data-list="ordered"] {
    counter-increment: list-counter;
}
.uitwerking-inhoud li[data-list="ordered"]::before {
    content: counter(list-counter) '.';
    margin-right: 0.5rem;
}

/* Quill indent classes voor geneste lijsten */
.uitwerking-inhoud li.ql-indent-1 { margin-left: 1.5rem; }
.uitwerking-inhoud li.ql-indent-2 { margin-left: 3rem; }
.uitwerking-inhoud li.ql-indent-3 { margin-left: 4.5rem; }
