@charset "utf-8";
/* Title: Event Card Types
** Description: Styles for event cards on browse events, manage events, and throughout Nice Pass
** Created: 04-21-2026 by Jessica Greenwalt
** Updated: 04-23-2026 by Sean Yanik
************************************** */

/* = Browse Events Card */
.event-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    border: 2px solid #000;
    padding: 6px;
    text-align: left;
    color: inherit;
    text-decoration: none;
}

.event-card .event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.event-card .event-media {
    display: block;
    flex-shrink: 0;
    width: 125px;
    max-width: 100%;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.event-card .event-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.event-card .event-media.event-image-fallback {
    background: #F9F932;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card .event-media.event-image-fallback img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.event-card .event-media .event-image-shimmer {
    position: absolute;
    inset: 0;
    transition: opacity 0.2s ease-out;
}

.event-card .event-media.loaded .event-image-shimmer {
    opacity: 0;
    pointer-events: none;
}

.event-card .event-info .event-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto Slab', Georgia, Lato, Helvetica, Arial, sans-serif;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card .event-info .event-date,
.event-card .event-info .event-location {
    font-size: 14px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 420px) {
    .event-card {
        display: inline-block;
        width: 100%;
        max-width: 200px;
        border: 2px solid #000;
        padding: 6px;
        text-align: left;
    }

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

/* = Browse Events Skeleton Card
** Placeholder shown while a paginated batch is loading. Uses the same
** .event-card layout and breakpoints as real cards so scroll position
** is preserved when real cards replace them. Inner blocks pulse via
** the shared .loading-pulse class. */
.event-card.is-skeleton {
    pointer-events: none;
    border-color: #e0e0e0;
}

.event-card.is-skeleton .event-media {
    background: #e0e0e0;
}

.event-card.is-skeleton .skeleton-line {
    display: block;
    height: 14px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.event-card.is-skeleton .skeleton-line.title {
    height: 16px;
    width: 85%;
}

.event-card.is-skeleton .skeleton-line.short {
    width: 60%;
}

#browse-events-skeleton {
    display: contents;
}
#browse-events-skeleton.is-loaded {
    display: none;
}
