/* Genesis Pass Whitelist - Cyberpunk Web3 Design */

:root {
    --neon-blue: #00d9ff;
    --neon-purple: #b537ff;
    --electric-cyan: #00ffff;
    --deep-space: #0a0e27;
    --void-black: #000000;
    --sharp-white: #ffffff;
    --holographic-1: rgba(0, 217, 255, 0.1);
    --holographic-2: rgba(181, 55, 255, 0.1);
    --grid-color: rgba(0, 217, 255, 0.15);
}

/* Main Container */
.genesis-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    overflow: hidden;
}

/* Animated Background */
.genesis-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 50%, #16213e 100%);
    z-index: -1;
}

.genesis-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    opacity: 0.15;
}

@keyframes gridScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Particles Canvas */
.genesis-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Main Card */
.genesis-card {
    position: relative;
    background: rgba(10, 14, 39, 0.85);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) 1;
    backdrop-filter: blur(20px);
    padding: 60px;
    transform: skewY(-1deg);
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.1),
        inset 0 0 30px rgba(181, 55, 255, 0.05);
    z-index: 2;
}

.genesis-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.genesis-card:hover::before {
    opacity: 0.1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

/* Header Section */
.genesis-header {
    text-align: center;
    margin-bottom: 60px;
    transform: skewY(1deg);
}

.genesis-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    color: var(--sharp-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(181, 55, 255, 0.4); }
}

.genesis-title {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--sharp-white);
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: glitchTitle 5s infinite;
}

@keyframes glitchTitle {
    0%, 98%, 100% {
        text-shadow:
            0 0 5px rgba(0, 217, 255, 0.3),
            0 0 10px rgba(0, 217, 255, 0.2),
            0 0 15px rgba(181, 55, 255, 0.1);
    }
    2%, 5% {
        text-shadow:
            1px 1px rgba(0, 217, 255, 0.4),
            -1px -1px rgba(181, 55, 255, 0.3);
        transform: translate(-1px, 1px);
    }
    6%, 7% {
        text-shadow:
            -1px -1px rgba(0, 217, 255, 0.4),
            1px 1px rgba(181, 55, 255, 0.3);
        transform: translate(1px, -1px);
    }
}

.genesis-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Dashboard */
.genesis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    position: relative;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 30px 20px;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(200px); }
}

.stat-label {
    font-size: 14px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--sharp-white);
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.stat-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    line-height: 1.4;
}

/* Mini Leaderboard */
.genesis-leaderboard {
    margin: 50px 0;
    padding: 40px 30px 30px 30px;
    background: rgba(181, 55, 255, 0.05);
    border-left: 3px solid var(--neon-purple);
    position: relative;
    overflow: visible;
}

.genesis-leaderboard::before {
    content: 'TOP 3';
    position: absolute;
    top: 10px;
    left: 20px;
    background: var(--deep-space);
    padding: 5px 15px;
    font-size: 12px;
    color: var(--neon-purple);
    letter-spacing: 2px;
    font-weight: 700;
    z-index: 10;
}

.leaderboard-title {
    font-size: 20px;
    color: var(--sharp-white);
    margin-bottom: 20px;
    font-weight: 600;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(181, 55, 255, 0.2);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(181, 55, 255, 0.1);
    border-color: var(--neon-purple);
    transform: translateX(5px);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--sharp-white);
    font-weight: 700;
    clip-path: circle(50%);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.leaderboard-user {
    flex: 1;
    margin-left: 15px;
    font-family: monospace;
    color: var(--electric-cyan);
    font-size: 16px;
}

.leaderboard-points {
    font-weight: 700;
    color: var(--sharp-white);
    font-size: 18px;
    text-shadow: 0 0 5px rgba(181, 55, 255, 0.3);
}

.leaderboard-points::after {
    content: ' PTS';
    font-size: 12px;
    color: var(--neon-purple);
}

/* Countdown Timer */
.genesis-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.3);
    position: relative;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--sharp-white);
    text-shadow:
        0 0 5px rgba(0, 217, 255, 0.3),
        0 0 10px rgba(0, 217, 255, 0.2);
    font-family: 'Space Grotesk', monospace;
}

.countdown-label {
    font-size: 12px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* CTA Button - Portal Effect */
.genesis-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.genesis-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-genesis {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 60px;
    background: var(--sharp-white);
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--neon-blue);
    cursor: pointer;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 0 15px rgba(0, 217, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.btn-genesis::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-genesis:hover::before {
    left: 100%;
}

.btn-genesis:hover {
    background: #000000;
    color: var(--sharp-white);
    border-color: var(--neon-purple);
    transform: scale(1.03);
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.4),
        0 0 40px rgba(181, 55, 255, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-genesis:active {
    transform: scale(0.98);
}

/* Paid Genesis Button Variant */
.btn-genesis-paid {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: var(--sharp-white);
    border: 2px solid var(--neon-purple);
    font-weight: 700;
}

.btn-genesis-paid:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--electric-cyan));
    border-color: var(--electric-cyan);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.5),
        0 0 50px rgba(181, 55, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-genesis-paid svg {
    width: 20px;
    height: 20px;
}

/* Primary Genesis Button (Free) */
.btn-genesis-primary {
    /* Inherit default .btn-genesis styles */
}

/* Win Explosion Effect */
@keyframes winExplosion {
    0% {
        box-shadow:
            0 0 15px rgba(0, 217, 255, 0.2),
            inset 0 0 10px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 217, 255, 0.5),
            0 0 60px rgba(181, 55, 255, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
        transform: scale(1.1);
    }
    100% {
        box-shadow:
            0 0 15px rgba(0, 217, 255, 0.2),
            inset 0 0 10px rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
}

.btn-genesis.explode {
    animation: winExplosion 0.6s ease-out;
}

/* Social Link */
.genesis-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--sharp-white);
    border: 2px solid var(--neon-blue);
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.genesis-social:hover {
    background: #000000;
    border-color: var(--neon-purple);
    color: var(--sharp-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
}

.genesis-social svg {
    fill: currentColor;
}


@keyframes socialFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Privacy Vault Effect */
.privacy-lock {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-purple);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-lock:hover {
    background: rgba(181, 55, 255, 0.15);
    transform: rotate(15deg);
    box-shadow: 0 0 12px rgba(181, 55, 255, 0.3);
}

.privacy-lock svg {
    width: 20px;
    height: 20px;
    color: var(--neon-purple);
}

/* Vanishing Ink Effect */
.vanish-text {
    position: relative;
    overflow: hidden;
}

.vanish-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8), transparent);
    animation: vanishSweep 3s ease-in-out infinite;
}

@keyframes vanishSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Holographic Overlay */
.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 217, 255, 0.03) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holographicShift 5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .genesis-card {
        padding: 30px 20px;
    }

    .genesis-title {
        font-size: 2rem;
    }

    .genesis-stats {
        grid-template-columns: 1fr;
    }

    .genesis-countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-value {
        font-size: 32px;
    }

    .btn-genesis {
        padding: 16px 40px;
        font-size: 16px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .genesis-card {
        border-width: 3px;
    }

    .btn-genesis {
        border: 2px solid var(--sharp-white);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
