/* ═══════════════════════════════════════════════════════
   SHOWCASE — cinematic candidate presentation
═══════════════════════════════════════════════════════ */

:root {
    --sc-bg: #04060a;
    --sc-text: #e8eaf0;
    --sc-text2: #8a91a8;
    --sc-font-title: 'Bebas Neue', sans-serif;
    --sc-font-body:  'Crimson Pro', serif;
    --sc-font-mono:  'DM Mono', monospace;
    --sc-card-w: 340px;
    --sc-card-h: 520px;
}

/* ── Click-to-start overlay ─────────────────────────── */
.sc-start-overlay {
    position: absolute; inset: 0; z-index: 200;
    background: rgba(4,6,10,.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    animation: sc-fade-in .6s ease both;
}
.sc-start-box {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.sc-start-icon {
    font-size: 64px; line-height: 1;
    color: #e8eaf0; opacity: .85;
    animation: sc-pulse 2s ease-in-out infinite;
}
.sc-start-label {
    font-family: 'DM Mono', monospace;
    font-size: 13px; letter-spacing: .25em;
    color: #8a91a8; text-transform: uppercase;
}
.sc-start-caption {
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: .2em;
    color: #8a91a8; text-transform: uppercase;
    margin-top: -10px;
}

/* ── Countdown nell'overlay ─────────────────────────── */
.sc-countdown {
    display: flex; align-items: center; gap: 8px;
}
.sc-cd-unit {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 16px; min-width: 64px;
}
.sc-cd-num {
    font-family: 'DM Mono', monospace;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700; line-height: 1;
    color: #e8eaf0; letter-spacing: .04em;
}
.sc-cd-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: .18em;
    color: #8a91a8; text-transform: uppercase;
    margin-top: 4px;
}
.sc-cd-sep {
    font-size: 28px; font-weight: 700;
    color: #8a91a8; margin-bottom: 18px; line-height: 1;
}
@keyframes sc-pulse {
    0%, 100% { transform: scale(1);   opacity: .85; }
    50%       { transform: scale(1.1); opacity: 1;   }
}

/* ── Root ───────────────────────────────────────────── */
.sc-loading {
    display: flex; align-items: center; justify-content: center;
    height: 100vh; background: #04060a;
    color: #e8eaf0; font-family: 'DM Mono', monospace;
    font-size: 13px; letter-spacing: .2em;
}

.sc-root {
    position: relative;
    width: 100%; min-height: 100vh;
    background: var(--sc-bg);
    overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 0 0 60px;
}

/* ── Vignette ───────────────────────────────────────── */
.sc-vignette {
    pointer-events: none;
    position: fixed; inset: 0; z-index: 50;
    background: radial-gradient(ellipse at center,
        transparent 50%, rgba(4,6,10,0.72) 100%);
}

/* ── Controls ───────────────────────────────────────── */
.sc-controls {
    position: fixed; top: 18px; right: 24px;
    z-index: 200;
    display: flex; gap: 10px;
}
.sc-ctrl-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: #e8eaf0; font-size: 18px;
    width: 44px; height: 44px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.sc-ctrl-btn:hover { background: rgba(255,255,255,0.12); }

/* ── Stage ──────────────────────────────────────────── */
.sc-stage {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 0;
    width: 100%;
    max-width: 1200px;
    position: relative; z-index: 10;
}

/* ── Column ─────────────────────────────────────────── */
.sc-column {
    flex: 1; max-width: var(--sc-card-w);
    display: flex; flex-direction: column; align-items: center;
    gap: 28px;
}

/* ── Party header ───────────────────────────────────── */
.sc-party-header {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid;
    padding-bottom: 12px; width: 100%;
    opacity: 0;
    animation: sc-fade-down 0.8s ease forwards;
}
.sc-column:nth-child(1) .sc-party-header { animation-delay: 0.2s; }
.sc-column:nth-child(2) .sc-party-header { animation-delay: 0.4s; }
.sc-column:nth-child(3) .sc-party-header { animation-delay: 0.6s; }

.sc-party-logo {
    width: 44px; height: 44px; object-fit: contain; border-radius: 6px;
}
.sc-party-name {
    font-family: var(--sc-font-title);
    font-size: 22px; letter-spacing: .08em;
    line-height: 1;
}

/* ── Card slot ──────────────────────────────────────── */
.sc-card-slot {
    width: var(--sc-card-w);
    height: var(--sc-card-h);
    position: relative;
    perspective: 900px;
}

/* ── Card ───────────────────────────────────────────── */
.sc-card {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1018;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);

    /* initial state: invisible — JS drives entry */
    opacity: 0;
    transform: translateY(60px) scale(0.94);
}

/* entry animation triggered by JS */
.sc-card.sc-card--enter {
    animation: sc-card-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.sc-card.sc-card--exit {
    animation: sc-card-exit 0.7s cubic-bezier(0.7, 0, 1, 0.6) forwards;
}

@keyframes sc-card-enter {
    from { opacity: 0; transform: translateY(60px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sc-card-exit {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-40px) scale(0.97); }
}
@keyframes sc-fade-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Photo ──────────────────────────────────────────── */
.sc-card-photo-wrap {
    position: absolute; inset: 0;
}
.sc-card-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.6s;
}
.sc-card:hover .sc-card-photo {
    filter: grayscale(0%) contrast(1.08);
}
.sc-card-photo-overlay {
    position: absolute; inset: 0;
}

/* ── Content ────────────────────────────────────────── */
.sc-card-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 20px 20px;
    display: flex; flex-direction: column; gap: 4px;
}

/* each text line slides in from left — delays set by JS */
.sc-card-name,
.sc-card-alias,
.sc-card-city,
.sc-card-dob,
.sc-card-bio,
.sc-card-mayor-badge {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.sc-card-name.sc-text--visible,
.sc-card-alias.sc-text--visible,
.sc-card-city.sc-text--visible,
.sc-card-dob.sc-text--visible,
.sc-card-bio.sc-text--visible,
.sc-card-mayor-badge.sc-text--visible {
    opacity: 1;
    transform: translateX(0);
}

.sc-card-name {
    font-family: var(--sc-font-title);
    font-size: 28px; letter-spacing: .06em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    line-height: 1.1;
}
.sc-card-alias {
    font-family: var(--sc-font-title);
    font-size: 15px; letter-spacing: .12em;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    line-height: 1.2;
    margin-top: -2px;
}
.sc-card-city {
    font-family: var(--sc-font-mono);
    font-size: 11px; letter-spacing: .18em;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
}
.sc-card-dob {
    font-family: var(--sc-font-mono);
    font-size: 11px; color: rgba(255,255,255,0.45);
    letter-spacing: .12em;
}
.sc-card-bio {
    font-family: var(--sc-font-body);
    font-size: 14px; color: rgba(255,255,255,0.78);
    line-height: 1.5; margin-top: 6px;
    font-style: italic;
}
.sc-card-mayor-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--sc-font-mono);
    font-size: 11px; letter-spacing: .12em;
    padding: 4px 10px; border-radius: 20px;
    margin-top: 8px; align-self: flex-start;
    border: 1px solid currentColor;
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    font-weight: 600;
}

/* ── Scanlines retro effect ─────────────────────────── */
.sc-root::after {
    content: '';
    pointer-events: none;
    position: fixed; inset: 0; z-index: 100;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
}
