/* ==========================================================================
   Events Manager — Fonts: Anton (headings) / Lora (body)
   ========================================================================== */

.wpe-events-widget, .wpe-modal {
    font-family: 'Lora', serif;
}
.wpe-events-widget h1, .wpe-events-widget h2, .wpe-events-widget h3,
.wpe-empty-title, .wpe-day-num, .wpe-modal-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.wpe-accent { color: #EE4B2B; }
.wpe-underline { width: 60px; height: 3px; background-color: #EE4B2B; margin: 8px 0 14px; }
.wpe-underline-sm { width: 40px; height: 2px; margin: 4px 0 8px; }

/* ---------- Upcoming Events ---------- */
.wpe-upcoming-wrap {
    background: #F2EEE6;
    padding: 32px;
    border: 1px solid #e2ddd0;
}

/* Empty state */
.wpe-empty-state { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.wpe-empty-left { display: flex; gap: 20px; align-items: flex-start; }
.wpe-empty-icon {
    width: 64px; height: 64px; border-radius: 50%; background: #e6e1d6;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wpe-empty-icon .dashicons { font-size: 28px; width: 28px; height: 28px; }
.wpe-empty-title { font-size: 28px; }
.wpe-empty-subtitle { font-family: 'Lora', serif; font-weight: 600; letter-spacing: 1px; font-size: 14px; text-transform: uppercase; margin-top: 6px; }
.wpe-empty-desc { color: #6b6558; max-width: 480px; line-height: 1.6; margin: 0; }
.wpe-empty-right img { max-width: 320px; width: 100%; display: block; }

/* Event rows */
.wpe-event-row {
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    padding: 24px 0; border-bottom: 1px solid #ddd7c8;
}
.wpe-event-row:last-child { border-bottom: none; padding-bottom: 0; }
.wpe-event-date-block { width: 110px; flex-shrink: 0; }
.wpe-day-name { font-weight: 600; letter-spacing: 1px; font-size: 13px; text-transform: uppercase; }
.wpe-day-num { font-size: 52px; line-height: 1; color: #1a1a1a; }
.wpe-month-year { color: #6b6558; font-size: 14px; }

.wpe-event-info { flex: 1; min-width: 260px; }
.wpe-event-time { font-weight: 600; letter-spacing: 0.5px; font-size: 13px; text-transform: uppercase; margin-bottom: 6px; }
.wpe-event-title { font-size: 24px; margin-bottom: 8px; }
.wpe-event-excerpt { color: #55503f; line-height: 1.6; margin: 0 0 12px; max-width: 620px; }
.wpe-event-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.wpe-meta-item { font-size: 13px; letter-spacing: 0.5px; color: #3a362b; display: inline-flex; align-items: center; gap: 6px; }
.wpe-meta-item .dashicons { font-size: 16px; width: 16px; height: 16px; }

.wpe-btn {
    background: #EE4B2B; color: #fff; border: none; padding: 16px 36px;
    font-family: 'Lora', serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    font-size: 13px; cursor: pointer; transition: background-color .25s ease;
}
.wpe-btn:hover { background-color: #000000; }

/* ---------- Past Events / Recap Grid ---------- */
.wpe-past-wrap {
    background: #181818;
    padding: 40px;
    display: grid;
    gap: 24px;
}
.wpe-past-wrap.wpe-cols-1 { grid-template-columns: 1fr; }
.wpe-past-wrap.wpe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wpe-past-wrap.wpe-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wpe-past-wrap.wpe-cols-4 { grid-template-columns: repeat(4, 1fr); }

.wpe-recap-card { display: flex; flex-direction: column; }
.wpe-recap-image {
    background-size: cover; background-position: center;
    aspect-ratio: 4/3; background-color: #333;
}
.wpe-recap-body { background: #F2EEE6; padding: 24px; flex: 1; display: flex; flex-direction: column; }
.wpe-recap-meta { color: #6b6558; font-size: 13px; margin-bottom: 8px; }
.wpe-recap-title { font-size: 22px; margin-bottom: 10px; }
.wpe-recap-text { color: #55503f; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.wpe-recap-link {
    background: none; border: none; padding: 0; text-align: left; cursor: pointer;
    color: #EE4B2B; font-family: 'Lora', serif; font-weight: 600; letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 6px;
}
.wpe-recap-arrow { display: inline-block; transition: transform .25s ease; }
.wpe-recap-link:hover .wpe-recap-arrow { transform: translateX(6px); }

@media (max-width: 900px) {
    .wpe-past-wrap.wpe-cols-3, .wpe-past-wrap.wpe-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .wpe-past-wrap.wpe-cols-2, .wpe-past-wrap.wpe-cols-3, .wpe-past-wrap.wpe-cols-4 { grid-template-columns: 1fr; }
    .wpe-event-row { flex-direction: column; align-items: flex-start; }
    .wpe-event-cta { width: 100%; }
    .wpe-btn { width: 100%; }
}

/* ---------- Shared Modal ---------- */
.wpe-modal-overlay {
    position: fixed; inset: 0; background: rgba(10,10,10,0.8);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; padding: 24px;
}
.wpe-modal-overlay.wpe-open { display: flex; }
.wpe-modal {
    background: #F2EEE6; max-width: 780px; width: 100%; max-height: 92vh;
    overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.wpe-modal-close {
    position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.55); color: #fff;
    border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer;
    line-height: 1; z-index: 2;
}
.wpe-modal-image { width: 100%; aspect-ratio: 16/8; background-size: cover; background-position: center; background-color: #333; }
.wpe-modal-body { padding: 40px 44px 48px; }
.wpe-modal-status {
    font-weight: 600; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; margin-bottom: 10px;
}
.wpe-modal-title { font-size: 36px; line-height: 1.15; margin-bottom: 24px; }

.wpe-modal-details {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px;
    background: #e9e3d4; border: 1px solid #ddd7c8; padding: 22px 26px; margin-bottom: 24px;
}
.wpe-modal-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #2a2620; }
.wpe-modal-detail-row .dashicons { font-size: 18px; width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }

.wpe-modal-desc { color: #3a362b; line-height: 1.8; font-size: 16px; white-space: pre-line; margin-bottom: 24px; }
.wpe-modal-recap-link { display: none; color: #EE4B2B; font-weight: 600; }
.wpe-modal-recap-link.wpe-show { display: inline-block; }

@media (max-width: 640px) {
    .wpe-modal-overlay { padding: 0; }
    .wpe-modal { max-width: 100%; max-height: 100vh; height: 100%; }
    .wpe-modal-details { grid-template-columns: 1fr; }
    .wpe-modal-body { padding: 32px 24px 40px; }
    .wpe-modal-title { font-size: 28px; }
}
