/* ── Beryl Med Events – Frontend Calendar Widget ── */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700;800&display=swap');

.bme-calendar-widget {
    font-family: 'Lato', sans-serif;
    color: #1a1a2e;
    max-width: 780px;
    margin: 0 auto;
}

/* ── Mini Calendar ── */
.bme-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0d4f8c, #1a7dc4);
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
}
.bme-cal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bme-nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.bme-nav-btn:hover { background: rgba(255,255,255,0.3); }

/* Grid */
.bme-cal-grid {
    background: #fff;
    border: 1px solid #dce6f2;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(13,79,140,0.1);
}
.bme-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.bme-cal-weekday {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #8a9ab0;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 0;
}
.bme-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.bme-cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 14px;
    cursor: default;
    line-height: 1;
    transition: background .12s;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
}
.bme-cal-day.bme-empty { cursor: default; }
.bme-cal-day.bme-today { background: #e8f3fb; font-weight: 700; color: #0d4f8c; }
.bme-cal-day.bme-has-event {
    background: #0d4f8c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13,79,140,0.3);
}
.bme-cal-day.bme-has-event:hover {
    background: #1a7dc4;
    transform: scale(1.08);
}
.bme-cal-day.bme-has-event .bme-dot {
    width: 5px;
    height: 5px;
    background: #7dd3fc;
    border-radius: 50%;
}

/* ── Events List ── */
.bme-events-list { margin-top: 0; }

.bme-list-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a9ab0;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dce6f2;
}
.bme-calendar-widget .bme-list-heading {
    display: none;
}

.bme-event-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dce6f2;
    border-left: 4px solid #1a7dc4;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.bme-event-card:hover {
    border-left-color: #0d4f8c;
    box-shadow: 0 4px 20px rgba(13,79,140,0.12);
    transform: translateX(3px);
}
.bme-event-card.bme-card-highlighted {
    border-left-color: var(--main-color);
    background: #f0f6ff;
    box-shadow: 0 4px 20px rgb(11 72 245 / 15%);
}

.bme-event-date-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d4f8c, #1a7dc4);
    color: #fff;
    border-radius: 8px;
    width: 54px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 3px 10px rgba(13,79,140,0.25);
}
.bme-badge-day {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}
.bme-badge-month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .8;
}

.bme-event-body { flex: 1; min-width: 0; }
.bme-event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0d4f8c;
    line-height: 1.3;
}
.bme-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}
.bme-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #5a7a9a;
    font-weight: 500;
}
.bme-meta-item svg { flex-shrink: 0; opacity: .7; }

.bme-event-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6a7a8a;
    line-height: 1.5;
}

/* No events */
.bme-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #8a9ab0;
}
.bme-no-events-icon { font-size: 52px; margin-bottom: 16px; }
.bme-no-events p { margin: 4px 0; font-size: 15px; }

/* Filtered state (show only selected month events) */
.bme-event-card.bme-hidden { display: none; }

/* Responsive */
@media (max-width: 480px) {
    .bme-event-card { gap: 12px; padding: 14px; }
    .bme-event-date-badge { width: 46px; min-height: 50px; }
    .bme-badge-day { font-size: 20px; }
    .bme-event-title { font-size: 14px; }
}
