/* Custom CSS Variables */
:root {
    --primary-dark: #0a0e27;
    --primary-darker: #0c1133;
    --accent-orange: #ea580c;
    --accent-orange-hover: #f97316;
    --success-green: #16a34a;
    --success-green-darker: #15803d;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #64748b;
    --border-light: #e2e8f0;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 20px 40px rgba(10, 14, 39, 0.1);
    --shadow-hover: 0 25px 50px rgba(10, 14, 39, 0.15);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.quiz-app {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    padding: 2rem 0;
}

.container {
    max-width: 1024px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-accent {
    color: var(--accent-orange);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Quiz Card */
.quiz-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--gray-light) 100%);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: none;
    animation: slideUp 0.5s ease-out;
}

/* Progress Section */
.progress-section .progress-text,
.progress-section .progress-percentage {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-medium);
}

.quiz-progress {
    height: 0.75rem;
    background-color: #e2e8f0;
    border-radius: 50px;
}

.quiz-progress .progress-bar {
    background: linear-gradient(90deg, var(--success-green) 0%, var(--success-green-darker) 100%);
    border-radius: 50px;
    transition: width 0.5s ease-out;
}

/* Question Section */
.question-section {
    animation: fadeIn 0.6s ease-out;
}

.question-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-button {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    transform: scale(1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-button:hover {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
    color: var(--white);
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.option-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-text {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Results Section */
.results-emoji {
    font-size: 3.75rem;
}

.results-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.results-description {
    font-size: 1.25rem;
    color: var(--gray-medium);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-button {
    background: var(--accent-orange) !important;
    border: none !important;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    transform: scale(1);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    animation: pulseGentle 2s ease-in-out infinite;
}

.cta-button:hover {
    background: var(--accent-orange-hover) !important;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.4);
}

.cta-subtitle {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
    z-index: 1000;
}

.sticky-cta-button {
    background: var(--accent-orange) !important;
    border: none !important;
    color: var(--white) !important;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transform: scale(1);
    transition: var(--transition-smooth);
}

.sticky-cta-button:hover {
    background: var(--accent-orange-hover) !important;
    transform: scale(1.02);
}

/* Footer */
.footer-section {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGentle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .quiz-app {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .question-title {
        font-size: 2.25rem;
    }
    
    .results-title {
        font-size: 2.5rem;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 1.5rem 2rem;
        width: auto !important;
    }
}

/* Utility Classes */
.w-md-auto {
    width: auto !important;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}