/**
 * Enhanced Events - Frontend Block Styles
 *
 * Lightweight styles for event-date and event-location blocks.
 * Works with any block theme — no overrides, just defaults.
 *
 * @package EnhancedEvents
 * @since 1.5.6
 */

/* ── Event Date ─────────────────────────────────────── */

.ee-event-date-display {
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--wp--preset--color--contrast, #1e1e1e);
}

.ee-event-date-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.ee-event-date-text::before {
    content: "📅";
    font-size: 0.95em;
    flex-shrink: 0;
}

/* ── Event Date Badge (compact day/month box) ───────── */

.ee-event-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    background: var(--ee-date-badge-color, #1e1e1e);
    color: #fff;
    border-radius: 4px;
    line-height: 1.1;
}

.ee-event-date-badge__day {
    font-size: 1.4em;
    font-weight: 700;
}

.ee-event-date-badge__month {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ── Event Location ─────────────────────────────────── */

.ee-event-location {
    font-size: 0.9em;
    line-height: 1.4;
}

.ee-event-location__address {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    font-style: normal;
    color: var(--wp--preset--color--contrast, #1e1e1e);
}

.ee-event-location__address::before {
    content: "📍";
    font-size: 0.95em;
    flex-shrink: 0;
}

/* ── Spacing between date + location in cards ───────── */

.ee-event-date-display + .ee-event-location {
    margin-top: 0.3em;
}

/* ── Map attribution ────────────────────────────────── */

.ee-event-location__attribution {
    font-size: 11px;
    color: #646970;
    margin-top: 4px;
}

/* ── Map fallback link ──────────────────────────────── */

.ee-event-location__map-fallback {
    margin-top: 8px;
    font-size: 13px;
}

/* ── Join Online link (Online / Hybrid events) ──────── */

.ee-event-location__join-online {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

/* ── Address below map ──────────────────────────────── */

.ee-event-location__address--below {
    margin-top: 8px;
}
