/**
 * Extraction Results Page — Dark gold theme
 * All classes prefixed with .er- to avoid collisions with base.html
 */

/* ===== PAGE WRAPPER ===== */
.er-page {
    min-height: 100vh;
    background: #0a0f1a;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Force all child sections to inherit dark bg */
.er-page section {
    background: #0a0f1a;
}

/* ===== HERO ===== */
.er-hero {
    position: relative;
    padding: 5rem 0 3rem;
    text-align: center;
    overflow: hidden;
}

.er-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 20%, rgba(255,215,0,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 70% 60%, rgba(255,165,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.er-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,215,0,0.12);
    border: 1.5px solid rgba(255,215,0,0.35);
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.er-badge i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}

.er-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, #fff 30%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
}

.er-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0 0 3rem;
    font-weight: 400;
}

/* ===== WINNER CARD ===== */
.er-winner-card {
    position: relative;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(160deg, rgba(17,24,39,0.97), rgba(10,15,26,0.97));
    border: 2px solid rgba(255,215,0,0.4);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow:
        0 0 80px rgba(255,215,0,0.08),
        0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    text-align: center;
}

.er-winner-card-shine {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 60%);
    animation: er-shine 16s ease-in-out infinite;
    pointer-events: none;
}
@keyframes er-shine {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(8%,8%); }
}

.er-winner-icon {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 14px rgba(255,215,0,0.5));
    position: relative;
    z-index: 1;
}

.er-winner-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFD700;
    margin: 0 0 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    text-shadow: 0 2px 12px rgba(255,215,0,0.3);
    position: relative;
    z-index: 1;
}

.er-winner-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

/* Ticket box */
.er-ticket-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,165,0,0.08));
    border: 1.5px solid rgba(255,215,0,0.3);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.er-ticket-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.er-ticket-number {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 900;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 0 0 16px rgba(255,215,0,0.4);
}

/* Prize box */
.er-prize-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,215,0,0.15);
    position: relative;
    z-index: 1;
}

.er-prize-label {
    display: block;
    font-size: 0.75rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.er-prize-text {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Replay button */
.er-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(255,215,0,0.25);
    position: relative;
    z-index: 1;
}

.er-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,215,0,0.35);
    color: #0f172a;
    text-decoration: none;
}

/* ===== RESERVES ===== */
.er-reserves {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.er-reserves-heading {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 1rem;
}

.er-reserves-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.er-reserve-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    min-width: 180px;
    transition: border-color 0.25s;
}

.er-reserve-card:hover {
    border-color: rgba(255,215,0,0.2);
}

.er-reserve-ordinal {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.er-reserve-ticket {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 2px;
}

.er-reserve-name {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== DETAILS ROW ===== */
.er-details-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 640px;
    margin: 0 auto;
}

.er-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    flex: 1;
    min-width: 160px;
}

.er-detail i {
    font-size: 1.3rem;
    color: #FFD700;
    flex-shrink: 0;
}

.er-detail strong {
    display: block;
    color: #FFD700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.15rem;
}

.er-detail span {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===== STATS ===== */
.er-stats {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.er-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.er-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.er-stat {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: border-color 0.25s;
}

.er-stat:hover {
    border-color: rgba(255,215,0,0.2);
}

.er-stat-icon {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.3));
}

.er-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
}

.er-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== NO WINNER ===== */
.er-no-winner {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(15,23,42,0.8);
    border: 1.5px solid rgba(255,215,0,0.15);
    border-radius: 24px;
    text-align: center;
}

.er-waiting-icon {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    animation: er-hourglass 3s ease-in-out infinite;
}

@keyframes er-hourglass {
    0%,100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.er-no-winner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    margin: 0 0 1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.er-no-winner p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.er-date-highlight {
    color: #FFD700 !important;
    font-weight: 700 !important;
}

.er-note {
    font-size: 0.9rem !important;
    font-style: italic;
    color: #64748b !important;
    margin-top: 1.5rem !important;
}

/* ===== BACK LINK ===== */
.er-back {
    padding: 2rem 0 3rem;
    text-align: center;
}

.er-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border: 1.5px solid rgba(255,215,0,0.25);
    border-radius: 50px;
    transition: all 0.25s ease;
    background: rgba(255,215,0,0.05);
}

.er-back-link:hover {
    border-color: rgba(255,215,0,0.5);
    background: rgba(255,215,0,0.12);
    color: #FFD700;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .er-hero { padding: 3.5rem 0 2rem; }
    .er-winner-card { padding: 2rem 1.25rem 2rem; margin: 0 auto 2rem; }
    .er-winner-name { font-size: 1.5rem; }
    .er-ticket-number { font-size: 2rem; }
    .er-details-row { flex-direction: column; }
    .er-detail { min-width: auto; }
    .er-stats-row { grid-template-columns: 1fr; max-width: 320px; }
    .er-reserves-row { flex-direction: column; align-items: center; }
    .er-reserve-card { width: 100%; max-width: 280px; }
}

/* ===== FOOTER OVERRIDE ===== */
.er-page ~ footer,
.er-page + footer,
footer {
    background: #060a14 !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}
