/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Mono', monospace;
}

body {
    background-color: #f5f5f5;
    color: #000;
}

/* Top Banner */
.top-banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 6rem;
}

header h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-button {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-button:hover {
    background: #000;
    color: #fff;
}

.social-button.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* Poll Container */
.poll-container {
    background: #fff;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 6rem;
}

.poll-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.poll-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.poll-button {
    height: 10rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: #f5f5f5;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-button:hover:not(.voted) {
    background: #000;
    color: #fff;
}

.poll-button.voted {
    background: #000;
    color: #fff;
    cursor: default;
}

/* Poll Results */
.results {
    display: none;
    margin-top: 2rem;
}

.progress-bar {
    height: 1rem;
    background: #f5f5f5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background: #000;
    width: 0;
    transition: width 1s ease;
}

.results-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.total-votes {
    text-align: center;
    color: #666;
    margin-top: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

.stat-label {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: #22c55e;
}

.stat-change.negative {
    color: #ef4444;
}

/* Buy Button */
.buy-button {
    display: block;
    margin: 0 auto;
    background: #000;
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background: #333;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1000;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 6rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 1.25rem;
    }
    
    .social-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .social-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .poll-options {
        grid-template-columns: 1fr;
    }
    
    .poll-button {
        height: 8rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .poll-container {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
