/* Brand tokens, type and the primitives shared by every page (event card, registration). */
:root {
    --brown:  #3E232A;
    --green:  #063A23;
    --cyan:   #55FFE8;
    --lime:   #E4FF6A;
    --red:    #E51622;
    --pink:   #FBDCFF;

    /* Theme slots — overridden by js/theme.js on load */
    --theme-bg:          #3E232A;
    --theme-card-bg:     #2a1820;
    --theme-title:       #FBDCFF;
    --theme-host:        #55FFE8;
    --theme-date-bg:     #E4FF6A;
    --theme-date-text:   #3E232A;
    --theme-cta-bg:      #E4FF6A;
    --theme-cta-text:    #3E232A;
    --theme-cta-sub:     rgba(255, 255, 255, 0.35);
    --theme-avatar-bg:   #55FFE8;
    --theme-avatar-text: #3E232A;
    --theme-badge:       #55FFE8;
}

@font-face {
    font-family: 'HersheyTimes';
    src: url('../fonts/Hershey-Noailles-Times-Simplex-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Riposte';
    src: url('../fonts/Riposte-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

[hidden] {
    display: none !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--theme-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Riposte', sans-serif;
    transition: background-color 0.2s ease;
}

.page {
    width: 100%;
    max-width: 420px;
    padding: 32px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ── CTA section ── */
.cta-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-pill {
    display: block;
    width: 100%;
    border: 0;
    background-color: var(--theme-cta-bg);
    color: var(--theme-cta-text);
    font-family: 'Riposte', sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 15px 24px;
    border-radius: 40px;
    text-decoration: none;
    cursor: pointer;
}

.cta-pill[disabled] {
    opacity: 0.45;
    cursor: default;
}

.cta-sub {
    font-family: 'Riposte', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-cta-sub);
    margin-bottom: 2px;
}

/* ── Card ── */
.card {
    width: 100%;
    background-color: var(--theme-card-bg);
    border-radius: 20px;
    overflow: hidden;
}

/* ── Image + micro badge ── */
.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 4px;
}

.badge-logo {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    display: block;
    flex-shrink: 0;
}


/* ── Card body ── */
.card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.host-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--theme-avatar-bg);
    color: var(--theme-avatar-text);
    font-family: 'HersheyTimes', serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-transform: uppercase;
}

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