/* Events list + event waiting page.
   Markup: Views/Events/Index.cshtml (.event-card) and Views/Events/Event.cshtml (.event-countdown).
   Loaded only from those views. There is no events file in css-chunks. */

.zeam-events,
.zeam-event {
    --events-card-bg: #0c1f46;
    --events-ink: #000024;
    --events-text: #e1e3e9;
    --events-muted: #a4abbe;
    --events-dim: #8790a9;
    --events-primary: #eeff41;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6, 24px);
    width: 100%;
    box-sizing: border-box;
}

/* Nav is position:fixed at ≤1049. Figma phone content sits 8px below the 64px header. */
@media (max-width: 1049px) {
    .zeam-events,
    .zeam-event {
        padding-top: calc(64px + var(--spacing-2, 8px));
    }
}

.events-page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-4, 16px);
    width: 100%;
    padding: var(--spacing-8, 32px) 0;
    border-bottom: 1px solid var(--events-card-bg);
    box-sizing: border-box;
}

.events-page-header__title {
    margin: 0;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
    color: var(--events-text);
}

.events-page-header__description {
    margin: 0;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--events-muted);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4, 16px);
    width: 100%;
}

.events-empty {
    margin: 0;
    padding: 48px 0 80px;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    color: var(--events-muted);
}

.event-card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 16px 8px;
    border-radius: 8px;
    background: var(--events-card-bg);
    color: var(--events-text);
    text-decoration: none;
    box-sizing: border-box;
}

.event-card:hover,
.event-card:focus {
    color: var(--events-text);
    text-decoration: none;
}

.event-card:focus-visible {
    outline: 2px solid var(--events-primary);
    outline-offset: 3px;
}

.event-card__body {
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr);
    column-gap: var(--spacing-2, 8px);
    row-gap: var(--spacing-2, 8px);
    width: 100%;
    min-width: 0;
}

.event-card__copy {
    display: contents;
}

.event-card__image {
    grid-column: 1;
    grid-row: 1;
    width: 114px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--events-ink);
}

.event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__heading {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.event-card__title {
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--events-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-card__when {
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--events-dim);
}

.event-card__description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--events-text);
}

@media (min-width: 768px) {
    .event-card {
        padding: 16px;
    }

    .event-card__body {
        grid-template-columns: 277px minmax(0, 1fr);
        column-gap: var(--spacing-4, 16px);
        row-gap: 0;
    }

    .event-card__image {
        width: 277px;
        height: 156px;
    }

    .event-card__copy {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-2, 8px);
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .event-card__heading,
    .event-card__description {
        grid-column: auto;
        grid-row: auto;
    }

    .event-card__title {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}

@media (min-width: 1440px) {
    .event-card__title {
        font-size: 24px;
        line-height: 32px;
    }

    .event-card__description {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 767px) {
    .events-page-header__title {
        font-size: 30px;
        line-height: 36px;
    }
}

/* Event waiting page */

.event-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6, 24px);
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
}

.event-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: var(--events-ink);
}

.event-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6, 24px);
    width: 100%;
}

.event-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4, 16px);
    width: 280px;
    padding: 16px;
    border-radius: 16px;
    background: var(--events-card-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.event-countdown__label-main {
    margin: 0;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--events-text);
    text-align: center;
}

.event-countdown__units {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-2, 8px);
}

.event-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 56px;
}

.event-countdown__value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--events-ink);
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--events-text);
}

.event-countdown__unit-label {
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: var(--events-text);
    text-align: center;
}

.event-countdown__when {
    margin: 0;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--events-muted);
    text-align: center;
}

.event-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-2, 8px);
    width: 100%;
    min-width: 0;
}

.event-copy__title {
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--events-text);
}

.event-copy__description {
    margin: 0;
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--events-text);
}

.event-live {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6, 24px);
    width: 100%;
}

.event-live__video,
.zeam-event #videoJsContainer {
    width: 100%;
    background: var(--events-ink);
}

.zeam-event #videoJsContainer .video-js {
    width: 100%;
    font-family: Poppins, "Source Sans Pro", sans-serif;
}

.event-debug {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

@media (min-width: 768px) {
    .event-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .event-copy {
        flex: 1 1 auto;
    }
}

@media (min-width: 1024px) {
    .event-countdown {
        width: 312px;
    }

    .event-countdown__label-main {
        font-size: 24px;
        line-height: 32px;
    }

    .event-countdown__unit,
    .event-countdown__value {
        width: 64px;
    }

    .event-countdown__value {
        height: 64px;
        font-size: 30px;
        line-height: 36px;
    }

    .event-countdown__unit-label {
        font-size: 14px;
        line-height: 20px;
    }

    .event-countdown__when {
        font-size: 16px;
        line-height: 24px;
    }

    .event-copy__title {
        font-size: 24px;
        line-height: 32px;
    }

    .event-copy__description {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (min-width: 1440px) {
    .event-copy__description {
        max-width: 633px;
    }
}
