/* =============================================================================
 * Webinar Manager — public styles
 * Stijl afgestemd op Norsan: licht canvas, witte cards met afgeronde hoeken,
 * blauwe (#005694) accenten, oranje (#ce6632) "Lees verder" links en buttons.
 * Typografie en links erven van het theme waar mogelijk.
 * ============================================================================= */

:root {
    --wbm-primary: #005694;
    --wbm-primary-hover: #00457a;
    --wbm-accent: #ce6632;
    --wbm-accent-hover: #b3551f;
    --wbm-text: #222;
    --wbm-text-muted: #6b6b6b;
    --wbm-card-bg: #ffffff;
    --wbm-border: rgba(0, 0, 0, 0.08);
    --wbm-radius: 12px;
    --wbm-radius-sm: 8px;
    --wbm-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --wbm-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* =============================================================================
 * LIST / GRID / CARDS
 * ============================================================================= */

.wbm-list {
    margin: 2.5rem 0;
}

.wbm-layout-grid,
.wbm-layout-cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.wbm-layout-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wbm-item {
    background: var(--wbm-card-bg);
    border-radius: var(--wbm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--wbm-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wbm-item:hover {
    box-shadow: var(--wbm-shadow-hover);
    transform: translateY(-2px);
}

.wbm-item--list {
    flex-direction: row;
    align-items: stretch;
}

.wbm-item--list .wbm-item__thumb {
    flex: 0 0 220px;
}

.wbm-item--list .wbm-item__thumb img {
    height: 100%;
    min-height: 160px;
}

.wbm-item__thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.wbm-item__thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.wbm-item:hover .wbm-item__thumb img {
    transform: scale(1.03);
}

.wbm-item__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.wbm-item__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    /* serif erft van theme; valt terug op systeem-serif */
    font-family: inherit;
    color: var(--wbm-text);
}

.wbm-item__title a {
    text-decoration: none;
    color: inherit;
    box-shadow: none;
}

.wbm-item__title a:hover {
    color: var(--wbm-primary);
}

.wbm-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--wbm-text-muted);
}

.wbm-item__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wbm-item__meta i {
    color: var(--wbm-primary);
    font-size: 0.95em;
}

.wbm-item__excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--wbm-text-muted);
    margin: 0.25rem 0 0.5rem;
}

/* =============================================================================
 * "Meld je aan →" link in oranje, Norsan-stijl
 * ============================================================================= */

.wbm-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wbm-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.wbm-readmore:hover,
.wbm-readmore:focus {
    color: var(--wbm-accent-hover);
    gap: 0.75rem;
}

.wbm-readmore i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

/* =============================================================================
 * STATUS BADGE — over de afbeelding heen
 * ============================================================================= */

.wbm-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-block;
    padding: 0.3em 0.85em;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wbm-badge--upcoming {
    background: rgba(0, 86, 148, 0.92);
    color: #fff;
}

.wbm-badge--live {
    background: rgba(206, 102, 50, 0.92);
    color: #fff;
}

.wbm-badge--past {
    background: rgba(60, 60, 60, 0.85);
    color: #fff;
}

/* Pill (gebruikt op single hero) */
.wbm-pill {
    display: inline-block;
    padding: 0.35em 1em;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--wbm-primary);
    margin-bottom: 1rem;
}

/* =============================================================================
 * BUTTONS
 * ============================================================================= */

.wbm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85em 1.75em;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.1s ease;
}

.wbm-btn--primary {
    background: var(--wbm-accent);
    color: #fff;
}

.wbm-btn--primary:hover,
.wbm-btn--primary:focus {
    background: var(--wbm-accent-hover);
    color: #fff;
}

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

.wbm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
 * AANMELDFORMULIER
 * ============================================================================= */

.wbm-form {
    max-width: 560px;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wbm-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wbm-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wbm-text);
}

.wbm-field input[type="text"],
.wbm-field input[type="email"] {
    width: 100%;
    padding: 0.85em 1em;
    border: 1px solid var(--wbm-border);
    border-radius: var(--wbm-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wbm-field input:focus {
    outline: none;
    border-color: var(--wbm-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 148, 0.15);
}

.wbm-field--checkbox label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wbm-field--checkbox input[type="checkbox"] {
    margin-top: 0.25em;
    accent-color: var(--wbm-primary);
}

.wbm-field--checkbox a {
    color: var(--wbm-accent);
    text-decoration: underline;
}

.wbm-field .required {
    color: var(--wbm-accent);
}

.wbm-form-message {
    font-size: 0.95rem;
    padding: 0;
}

.wbm-form-message.is-success {
    color: #1a5e1f;
    padding: 0.85em 1.15em;
    background: #f0f9f1;
    border-left: 3px solid #4caf50;
    border-radius: var(--wbm-radius-sm);
}

.wbm-form-message.is-error {
    color: #a4262c;
    padding: 0.85em 1.15em;
    background: #fdf2f2;
    border-left: 3px solid #c84141;
    border-radius: var(--wbm-radius-sm);
}

.wbm-form-closed {
    padding: 1.25em 1.5em;
    background: #f5f5f5;
    border-radius: var(--wbm-radius-sm);
    color: var(--wbm-text-muted);
}

.wbm-empty {
    padding: 2.5em 1em;
    text-align: center;
    color: var(--wbm-text-muted);
    background: #fff;
    border-radius: var(--wbm-radius);
    box-shadow: var(--wbm-shadow);
}

/* =============================================================================
 * SINGLE — HERO + CONTENT
 * ============================================================================= */

.wbm-single {
    /* Override theme padding zodat hero edge-to-edge kan */
}

.wbm-single__hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wbm-primary);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
}

.wbm-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.wbm-single__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.wbm-single__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    font-weight: 400;
    /* serif valt terug op theme of systeem-serif */
    font-family: inherit;
}

.wbm-single__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.wbm-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wbm-single__meta-item i {
    color: rgba(255, 255, 255, 0.85);
}

/* Content container */
.wbm-single__article {
    background: #fff;
}

.wbm-single__container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.wbm-breadcrumbs {
    font-size: 0.88rem;
    color: var(--wbm-text-muted);
    margin-bottom: 2rem;
}

.wbm-breadcrumbs a {
    color: var(--wbm-primary);
    text-decoration: none;
}

.wbm-breadcrumbs a:hover {
    text-decoration: underline;
}

.wbm-breadcrumbs__sep {
    margin: 0 0.4em;
    opacity: 0.6;
}

.wbm-breadcrumbs__current {
    color: var(--wbm-text-muted);
}

.wbm-single__content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--wbm-text);
}

.wbm-single__content p {
    margin: 0 0 1.25em;
}

.wbm-single__content h2,
.wbm-single__content h3 {
    margin-top: 2em;
    margin-bottom: 0.6em;
    font-family: inherit;
    font-weight: 400;
    color: var(--wbm-text);
}

.wbm-single__content h2 { font-size: 1.6rem; }
.wbm-single__content h3 { font-size: 1.25rem; }

.wbm-single__content a {
    color: var(--wbm-accent);
}

.wbm-single__form {
    margin-top: 3rem;
    padding: 2rem;
    background: #f7f9fb;
    border-radius: var(--wbm-radius);
    border: 1px solid var(--wbm-border);
}

.wbm-single__form-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 400;
    color: var(--wbm-primary);
}

/* =============================================================================
 * ARCHIVE
 * ============================================================================= */

.wbm-archive {
    background: #fafafa;
    padding: 3rem 0 5rem;
}

.wbm-archive__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wbm-archive__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wbm-archive__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    margin: 0;
    font-family: inherit;
    color: var(--wbm-text);
}

/* =============================================================================
 * RESPONSIVE
 * ============================================================================= */

@media (max-width: 600px) {
    .wbm-item--list {
        flex-direction: column;
    }
    .wbm-item--list .wbm-item__thumb {
        flex: 0 0 auto;
    }
    .wbm-item--list .wbm-item__thumb img {
        height: 200px;
    }
    .wbm-single__hero {
        min-height: 320px;
        padding: 3rem 1.25rem;
    }
    .wbm-single__form {
        padding: 1.5rem;
    }
}
