/*
    Diamond Showcase event cards.

    Scoped under .dse-events so nothing here can reach the rest of the theme, and built from
    custom properties so a theme can retune the palette without editing this file:

        .dse-events { --dse-card: #0e6b76; --dse-radius: 18px; }

    Each kind of event gets its own tint. That was the client's own request when camps and
    showcases first appeared in one list — they wanted to tell them apart at a glance.
*/

.dse-events {
    --dse-card: #17707c;
    --dse-card-camp: #17707c;
    --dse-card-showcase: #145f74;
    --dse-card-tournament: #123f57;
    --dse-ink: #ffffff;
    --dse-muted: rgba(255, 255, 255, .72);
    --dse-cta-ink: #0d5561;
    --dse-radius: 18px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dse-events__heading {
    margin: 0 0 4px;
    text-align: center;
}

.dse-events__empty {
    margin: 0;
    opacity: .75;
}

.dse-events--error p {
    margin: 0;
    padding: 12px 16px;
    border-left: 4px solid #b32d2e;
    background: #fcf0f1;
    color: #6d1a1b;
}

.dse-event {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    border-radius: var(--dse-radius);
    background: var(--dse-card);
    color: var(--dse-ink);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}

.dse-event--camp        { background: var(--dse-card-camp); }
.dse-event--showcase    { background: var(--dse-card-showcase); }
.dse-event--tournament  { background: var(--dse-card-tournament); }

.dse-event__media {
    flex: 0 0 96px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

.dse-event__media img {
    display: block;
    width: 100%;
    height: auto;
}

.dse-event__body {
    flex: 1 1 auto;
    min-width: 0;
}

.dse-event__name {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--dse-ink);
}

.dse-event__facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dse-event__facts li {
    margin: 0;
    color: var(--dse-ink);
}

.dse-event__label {
    color: var(--dse-muted);
}

.dse-event__action {
    flex: 0 0 auto;
}

/*
    The button carries a long sentence rather than a word — "LOG-IN / CREATE PLAYER ACCOUNT TO
    VIEW MORE DETAILS" — so it is sized to wrap onto three lines and stay legible, not squeezed
    onto one.
*/
.dse-event__cta {
    display: inline-block;
    max-width: 230px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--dse-cta-ink);
    font-weight: 700;
    font-size: .82rem;
    line-height: 1.25;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
}

.dse-event__cta:hover,
.dse-event__cta:focus {
    background: #eefafb;
    color: var(--dse-cta-ink);
    text-decoration: none;
}

.dse-event__cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 782px) {
    .dse-event {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dse-event__cta {
        max-width: none;
        width: 100%;
    }
}
