/**
 * BSMC Event Hero Card — Component Styles
 * Identical structure to shopify-hero-card.css / video-hero-card.css
 */

/* ── Base card ─────────────────────────────────────────────────────────── */
.bsmc-event-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    margin: 20px;
    width: auto;
    aspect-ratio: 16 / 7;
}

/* ── Background image ──────────────────────────────────────────────────── */
.bsmc-event-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bsmc-event-card:hover .bsmc-event-card__bg {
    transform: scale(1.03);
}

/* ── Gradient ──────────────────────────────────────────────────────────── */
.bsmc-event-card__gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.60) 45%,
            rgba(0, 0, 0, 0.00) 75%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.55) 100%
        );
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
.bsmc-event-card__badge {
    position: absolute;
    top: 36px;
    left: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edeadf;
    border: none;
    color: #0e0e0e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 4;
}

/* ── Content ───────────────────────────────────────────────────────────── */
.bsmc-event-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 44px;
    max-width: 55%;
    z-index: 2;
}

.bsmc-event-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Title ─────────────────────────────────────────────────────────────── */
.bsmc-event-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    line-height: 0.95;
    color: #edeadf;
    text-transform: uppercase;
    margin: 0;
}

/* ── Description ──────────────────────────────────────────────────────── */
.bsmc-event-card__desc {
    font-family: 'Proxima Nova', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(237, 234, 223, 0.75);
    margin: 0;
    max-width: 480px;
}

/* ── Details ───────────────────────────────────────────────────────────── */
.bsmc-event-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bsmc-event-card__detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 13px;
    color: rgba(237, 234, 223, 0.82);
}

.bsmc-event-card__icon {
    width: 16px;
    height: 16px;
    color: #edeadf;
    flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.bsmc-event-card__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.bsmc-event-card__btn {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(237, 234, 223, 0.65);
    color: #edeadf;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    transition:
        background   0.2s ease,
        border-color 0.2s ease,
        color        0.2s ease;
}

.bsmc-event-card__btn:hover,
.bsmc-event-card__btn:focus-visible {
    background:   #edeadf;
    border-color: #edeadf;
    color:        #1a1208;
    outline:      none;
}

/* Secondary button (links to blog post) — filled gold to differentiate */
.bsmc-event-card__btn--secondary {
    background:   #C8A96E;
    border-color: #C8A96E;
    color:        #0e0e0e;
}

.bsmc-event-card__btn--secondary:hover,
.bsmc-event-card__btn--secondary:focus-visible {
    background:   #DFC08A;
    border-color: #DFC08A;
    color:        #0e0e0e;
}

/* ── Add-to-Calendar button + dropdown ────────────────────────────────── */
.bsmc-event-card__addcal-wrap {
    position: relative;
}

.bsmc-event-card__btn--addcal {
    background: transparent;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.bsmc-event-card__addcal-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bsmc-event-card__addcal-menu {
    position: absolute;
    top: calc( 100% + 6px );
    left: 0;
    z-index: 20;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid rgba( 237, 234, 223, 0.12 );
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.4 );
}

.bsmc-event-card__addcal-menu[hidden] {
    display: none;
}

.bsmc-event-card__addcal-menu a {
    display: block;
    padding: 14px 18px;
    color: #edeadf;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba( 237, 234, 223, 0.06 );
    transition: background 0.15s;
}

.bsmc-event-card__addcal-menu a:last-child {
    border-bottom: none;
}

.bsmc-event-card__addcal-menu a:hover,
.bsmc-event-card__addcal-menu a:focus-visible {
    background: rgba( 237, 234, 223, 0.06 );
    outline: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .bsmc-event-card {
        width: auto;
        margin-left: 8px;
        margin-right: 8px;
        aspect-ratio: 4 / 5;
    }

    .bsmc-event-card__gradient {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.00) 25%,
            rgba(0, 0, 0, 0.85) 75%,
            rgba(0, 0, 0, 0.97) 100%
        );
    }

    .bsmc-event-card__content {
        max-width: 100%;
        padding: 24px;
    }

    .bsmc-event-card__badge {
        top: 24px;
        left: 24px;
    }

    .bsmc-event-card__title {
        font-size: clamp(28px, 8vw, 40px);
    }
}
