/* Extracted from ui/templates/components/events/events.html. Linked via sekizai so a page loads it once,
   however many instances it renders. */

.event-detail-media-card,
.event-detail-media-card *,
.event-detail-past-events,
.event-detail-past-events * {
    box-sizing: border-box;
    font-family: "NYU Perstare", system-ui, sans-serif;
}

.event-detail-media-card {
    width: 100%;
}

.event-detail-media-frame {
    position: relative;
    display: flex;
    width: 100%;
    height: 244px;
    overflow: hidden;
    border-radius: 3px;
    background: #F2F2F2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.event-detail-media-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-detail-media-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-detail-media-fallback {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #57068C;
    background: #F2F2F2;
}

.event-detail-media-fallback-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.event-detail-media-fallback-emblem {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.event-detail-media-fallback-word {
    color: #57068C;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.event-detail-media-fallback-label {
    margin-top: 10px;
    border-radius: 3px;
    background: #FFFFFF;
    padding: 4px 28px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.event-detail-desktop-actions,
.event-detail-mobile-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

.event-detail-desktop-actions {
    display: none;
}

.event-detail-mobile-actions {
    display: flex;
    margin-top: 12px;
}

.event-detail-action {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #57068C;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.event-detail-action:hover,
.event-detail-action:active,
.event-detail-action:visited {
    text-decoration: none !important;
    outline: none;
}

/* Keyboard focus needs its own indicator (WCAG 2.4.7). The --primary /
   --secondary :focus styles only swap background, which is identical to
   :hover and too weak to stand alone. */
.event-detail-action:focus-visible {
    outline: 2px solid #57068C;
    outline-offset: 2px;
}

.event-detail-action--primary {
    background: #57068C;
    color: #F2F2F2 !important;
    border-color: #57068C;
}

.event-detail-action--primary:hover,
.event-detail-action--primary:focus {
    background: #460573;
    border-color: #460573;
    color: #F2F2F2 !important;
}

.event-detail-action--primary:visited {
    color: #F2F2F2 !important;
    background: #57068C;
    border-color: #57068C;
}

.event-detail-action--secondary {
    background: #FFFFFF;
    color: #57068C !important;
    border-color: #57068C;
}

.event-detail-action--secondary:hover,
.event-detail-action--secondary:focus {
    background: #F7F7F7;
    color: #57068C !important;
}

.event-detail-action--secondary:visited {
    color: #57068C !important;
    background: #FFFFFF;
    border-color: #57068C;
}

@media (min-width: 1024px) {
    .event-detail-media-frame {
        height: 349px;
    }

    .event-detail-media-image-wrap {
        flex: 1 1 auto;
    }

    .event-detail-media-fallback-emblem {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .event-detail-media-fallback-word {
        font-size: 48px;
    }

    .event-detail-media-fallback-label {
        margin-top: 16px;
        padding: 4px 32px;
        font-size: 20px;
        line-height: 26px;
    }

    .event-detail-desktop-actions {
        display: flex;
        margin-top: 20px;
    }

    .event-detail-mobile-actions {
        display: none !important;
    }

    .event-detail-action {
        min-height: 66px;
        font-size: 20px;
        line-height: 26px;
        font-weight: 500;
        letter-spacing: -0.04em;
    }
}

@media (max-width: 767px) {
    .event-detail-sidebar {
        margin-top: 0 !important;
    }

    .event-detail-media-frame {
        height: 188px;
    }

    .event-detail-mobile-actions .event-detail-action {
        min-height: 48px;
        font-size: 14px;
        line-height: 18px;
        font-weight: 500;
        letter-spacing: -0.04em;
    }
}
