/* ============================================
   10HOUR10MILLION - Gold Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gold Palette */
    --gold-50: #FFFDE7;
    --gold-100: #FFF8E1;
    --gold-200: #FFECB3;
    --gold-300: #FFE082;
    --gold-400: #FFD54F;
    --gold-500: #FFC107;
    --gold-600: #FFB300;
    --gold-700: #FFA000;
    --gold-800: #FF8F00;
    --gold-900: #E65100;

    /* Accent */
    --accent: #FFB300;
    --accent-light: #FFD54F;
    --accent-glow: rgba(255, 179, 0, 0.5);

    /* Text */
    --text-primary: #4E342E;
    --text-secondary: #6D4C41;
    --text-muted: #8D6E63;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 179, 0, 0.25);
    --glass-shadow: rgba(255, 179, 0, 0.1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        160deg,
        #FFFDF5 0%,
        #FFF8E1 20%,
        #FFECB3 50%,
        #FFE082 80%,
        #F0C850 100%
    );
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Subtle animated shimmer on the background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255, 215, 0, 0.08) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(255, 160, 0, 0.06) 0%,
        transparent 50%
    );
    animation: bgShimmer 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShimmer {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 3%) scale(1.05); }
}

/* --- Page Wrapper --- */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    padding: 50px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* --- Hero Card --- */
.hero-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    padding: 52px 40px;
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        #C6941A 0%,
        #D4A52A 25%,
        #E8BE3E 50%,
        #D4A52A 75%,
        #B8862A 100%
    );
    background-size: 200% 200%;
    animation: heroGradient 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(196, 148, 26, 0.3),
        0 2px 8px rgba(196, 148, 26, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0.9; }
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(255, 255, 255, 0.2);
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

/* --- Tagline --- */
.tagline {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-align: center;
    margin-top: 4px;
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -14px;
    line-height: 1.5;
}

/* --- Countdown Timer --- */
.countdown-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.timer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-digits {
    display: flex;
    gap: 6px;
}

.digit {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--gold-700);
    line-height: 1;
    text-shadow:
        0 0 20px var(--accent-glow),
        0 0 40px rgba(255, 179, 0, 0.2);
    background: linear-gradient(
        180deg,
        var(--gold-600) 0%,
        var(--gold-800) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 46px;
    text-align: center;
    transition: transform 0.1s ease;
}

.timer-separator {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-600);
    line-height: 1;
    opacity: 0.7;
    padding: 0 2px;
}

.timer-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.timer-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-align: center;
}

/* --- Stats Card (Glassmorphism) --- */
.stats-card {
    width: 100%;
    max-width: 560px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.progress-container {
    margin-bottom: 28px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255, 224, 130, 0.35);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--gold-600) 0%,
        var(--gold-400) 50%,
        var(--gold-600) 100%
    );
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.target-label {
    color: var(--gold-700);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-700);
    letter-spacing: 0.5px;
}

/* --- CA Pill --- */
.ca-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 20px;
    max-width: 560px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--glass-shadow);
}

.ca-pill:hover {
    border-color: var(--gold-400);
    box-shadow: 0 4px 24px rgba(255, 179, 0, 0.2);
    transform: translateY(-1px);
}

.ca-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-700);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ca-address {
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.ca-copy-btn {
    background: none;
    border: none;
    color: var(--gold-600);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ca-copy-btn:hover {
    color: var(--gold-800);
    background: rgba(255, 179, 0, 0.1);
}

.ca-pill.copied {
    border-color: var(--gold-500);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.3);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glass-shadow);
}

.social-btn:hover {
    color: var(--gold-700);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.2);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 32px 16px 28px;
        gap: 22px;
    }

    .hero-card {
        padding: 40px 28px;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .digit {
        font-size: 2.8rem;
        min-width: 30px;
    }

    .timer-separator {
        font-size: 2.4rem;
    }

    .stats-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .stat-value {
        font-size: 0.95rem;
    }

    .ca-pill {
        padding: 12px 16px;
    }

    .ca-address {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .digit {
        font-size: 2.2rem;
        min-width: 24px;
    }

    .timer-separator {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
