/* Base Styles */
:root {
    --primary-color: #4527a0;
    --secondary-color: #7c4dff;
    --dark-bg: #0a1929;
    --light-text: #ffffff;
    --cta-color: #ffab00;
    --progress-bg: rgba(255, 255, 255, 0.2);
    --border-radius: 12px;
    --card-bg: rgba(25, 32, 71, 0.8);
    --gradient-start: #0a1929;
    --gradient-end: #192047;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 20px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 15px;
    line-height: 1.3;
}

.subheadline {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.5;
}

.ps5-image {
    width: 180px;
    margin: 0 auto;
}

.ps5-image img {
    width: 100%;
    height: auto;
}

.ps5-image-small {
    width: 120px;
    margin: 0 auto 15px;
}

.ps5-image-small img {
    width: 100%;
    height: auto;
}

/* Countdown */
.countdown-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    width: 100%;
}

.countdown-label {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--cta-color);
}

.countdown-item .countdown-label {
    font-size: 12px;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 28px;
    font-weight: 700;
    margin-top: -10px;
}

.start-btn {
    background: var(--cta-color);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 171, 0, 0.4);
}

/* Survey Container */
.survey-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 20px;
    display: none;
}

/* Header */
.header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.progress-container {
    height: 8px;
    background-color: var(--progress-bg);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-counter {
    text-align: right;
    font-size: 14px;
    opacity: 0.7;
}

/* Content */
.content {
    position: relative;
    min-height: 350px;
}

.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.question-slide.active {
    display: flex;
    opacity: 1;
    z-index: 1;
}

h2 {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Loading Screen */
.loading-container {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    margin: 30px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Result Screen */
.result-container {
    text-align: center;
    padding: 20px 0;
}

.cta-button {
    display: inline-block;
    background: var(--cta-color);
    color: #000;
    font-weight: 700;
    font-size: 18px;
    padding: 16px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(255, 171, 0, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 171, 0, 0.5);
}

/* Urgency Text */
.urgency-text {
    margin-top: 15px;
    font-size: 16px;
    color: #ff5252;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Timestamp */
.timestamp {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* Trust Elements */
.trust-elements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.flag {
    font-size: 18px;
}

/* Footer */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    padding-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-links span {
    margin-right: 5px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .hero-section {
        padding: 20px 15px;
    }
    
    .hero-section h1 {
        font-size: 22px;
        margin: 15px 0 12px;
    }
    
    .subheadline {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .countdown-container {
        margin: 15px 0;
        padding: 12px;
    }
    
    .countdown-item span:first-child {
        font-size: 24px;
    }
    
    .countdown-separator {
        font-size: 24px;
    }
    
    .start-btn {
        font-size: 15px;
        padding: 12px 24px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .option-btn {
        padding: 14px 15px;
        font-size: 15px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 14px 25px;
    }
    
    .urgency-text {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .content {
        min-height: 380px; /* Ensure enough space for all content */
    }
    
    .result-container {
        padding: 15px 0;
    }
    
    .footer-links {
        gap: 10px;
        font-size: 11px;
    }
}
