/* Frontend styles – Yoga Agenda shortcode */

/* ── Container ───────────────────────────────────────────── */
.ya-agenda {
    margin: 1.5em 0;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* ── Single event card ───────────────────────────────────── */
.ya-event {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2em;
    scroll-margin-top: 80px;
}

.ya-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Event title ─────────────────────────────────────────── */
.ya-event-titel {
    margin: 0 0 0.6em !important;
    font-size: 1.25em !important;
    line-height: 1.3 !important;
}

/* ── Two-column body ─────────────────────────────────────── */
.ya-event-body {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0 1.5em;
    align-items: start;
}

/* ── Tear-off calendar block ─────────────────────────────── */
.ya-cal {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    user-select: none;
    flex-shrink: 0;
    width: 110px;
}

.ya-cal-header {
    background: #82824a;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 5px 4px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.ya-cal-dag {
    background: #fff;
    width: 100%;
    text-align: center;
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1.05;
    padding: 6px 0 2px;
    color: #1a1a1a;
}

.ya-cal-weekdag {
    background: #fff;
    width: 100%;
    text-align: center;
    font-size: 0.72em;
    color: #555;
    padding: 0 4px 6px;
    text-transform: capitalize;
    border-top: 1px solid #f0f0f0;
}

.ya-cal-uur {
    background: #f5f5f5;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    font-weight: 600;
    color: #82824a;
    padding: 5px 4px;
    border-top: 1px solid #e8e8e8;
}

/* ── Right column: content + link ───────────────────────── */
.ya-event-content {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.ya-event-tekst {
    font-size: 0.95em;
    color: #333;
    line-height: 1.6;
}

.ya-event-tekst p {
    margin-top: 0;
    margin-bottom: 0.75em;
}

.ya-event-tekst p:last-child {
    margin-bottom: 0;
}

.ya-event-link {
    display: inline-block;
    padding: 7px 18px;
    background: #82824a;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 600;
    align-self: flex-start;
    transition: background 0.2s;
}

.ya-event-link:hover {
    background: #6a6a3c;
}

/* ── Empty state ─────────────────────────────────────────── */
.ya-geen-items {
    color: #777;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 540px ) {
    .ya-event-body {
        grid-template-columns: 1fr;
        gap: 0.75em 0;
    }

    /* On mobile: compact pill-shaped date bar */
    .ya-cal {
        flex-direction: row;
        width: 100%;
        border-radius: 6px;
        align-items: stretch;
    }

    /* Month header: fixed narrow width, vertically centred */
    .ya-cal-header {
        width: 72px;
        min-width: 72px;
        padding: 6px 6px;
        font-size: 0.68em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
    }

    /* Day number: compact */
    .ya-cal-dag {
        font-size: 1.6em;
        padding: 4px 10px;
        width: auto;
        flex-shrink: 0;
        border-left: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
    }

    /* Weekday: grows to fill remaining space */
    .ya-cal-weekdag {
        display: flex;
        align-items: center;
        padding: 6px 10px;
        flex: 1;
        border-top: none;
        border-left: 1px solid #f0f0f0;
        font-size: 0.82em;
        color: #444;
    }

    /* Time: fixed width, right-aligned */
    .ya-cal-uur {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        width: auto;
        flex-shrink: 0;
        border-top: none;
        border-left: 1px solid #e8e8e8;
        font-size: 0.82em;
    }
}
