/* ============================================================
   KALENDER.CSS  —  Exclusief voor kalender.html
   Vereist: smra.css (variabelen, masthead, footer, hamburger)
   ============================================================ */

/* ── PAGINATITEL ── */
.kal-main { width: 100%; }

.kal-page-title {
    background: var(--paper-dark);
    border-bottom: 1px solid var(--rule);
    padding: 48px 24px 40px;
    text-align: center;
}
.kal-page-title h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--ink);
}

/* ── HOOFD LAYOUT ── */
.kal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.kal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}

/* ── SECTIES (kaarten) ── */
.kal-section {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    padding: 25px;
    margin-bottom: 0;
}

.kal-right-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.kal-section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

/* ── ACTIVITEITEN HEADER MET MAANDNAVIGATIE ── */
.kal-activities-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.month-nav { display: flex; align-items: center; gap: 1rem; }

.nav-btn {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    line-height: 1;
    transition: all 0.25s;
}
.nav-btn:hover {
    background: var(--ink);
    color: var(--paper);
}

.current-month {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    min-width: 180px;
    text-align: center;
}

.activities-list { overflow-y: auto; padding-right: 5px; }

/* ── ACTIVITEIT ITEMS ── */
.activity-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--rule);
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 20px;
}
.activity-item:hover {
    border-left-color: var(--title-color);
    background: var(--paper-dark);
}
.activity-item.selected {
    border-left-color: var(--title-color);
    border-color: var(--title-color);
    background: #fffcf0;
}

.activity-date .day-name { color: var(--ink-muted); font-weight: 600; font-size: 0.8rem; }
.activity-date .date-number { font-size: 24px; font-weight: 700; line-height: 1; color: var(--ink); }
.activity-content .activity-title { font-weight: 700; color: var(--ink); }

/* ── ACTIVITEIT DETAILS ── */
.activity-details, .participation-form {
    min-height: 150px;
}
.no-activity, #noParticipation {
    text-align: center;
    color: var(--ink-muted);
    font-style: italic;
    padding: 40px 0;
    font-family: var(--font-display);
}
.activity-info { display: none; }
.activity-info.active { display: grid; gap: 12px; }

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
}
.info-label { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.info-value { color: var(--ink-soft); font-size: 0.9rem; }

.participants-list { display: flex; flex-wrap: wrap; gap: 5px; }
.participant-tag {
    background: var(--title-color);
    color: var(--ink);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-ui);
}

/* ── DEELNAME FORMULIER ── */
.participation-form { display: none; }
.participation-form.active { display: block; }

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rule-heavy);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--title-color);
    box-shadow: 0 0 0 3px rgba(254,191,17,0.2);
}

.form-buttons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.btn {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--title-color);
    border-color: var(--title-color);
    color: var(--ink);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-heavy);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.form-note { margin-top: 15px; color: var(--ink-muted); font-size: 0.85rem; }

/* ── BERICHTEN ── */
.messages-list { max-height: 250px; overflow-y: auto; padding-right: 5px; }
.message-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.message-item:hover { background: var(--paper-mid); }
.message-date { font-size: 0.75rem; color: var(--ink-muted); margin-bottom: 5px; }
.message-subject { font-weight: 700; color: var(--ink); font-size: 0.9rem; }

.messages-full-width { margin-top: 30px; margin-bottom: 4rem; }
.messages-full-width .messages-list { max-height: none; }
.messages-full-width .kal-section-title { text-align: center; }

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
}
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background: var(--paper);
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--rule);
}
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .kal-grid { grid-template-columns: 1fr; }
    .kal-content { padding: 24px 16px 60px; }
}
