/* ============================================
   5 MINUTE WORK FACE SYSTEM - QUIZ STYLES
   ============================================ */

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

:root {
    --pink-light: #fce4ec;
    --pink-medium: #f8bbd9;
    --pink-dark: #e91e63;
    --gold-light: #f5d5c8;
    --gold-medium: #d4a574;
    --gold-dark: #b8860b;
    --cream: #fdf6f0;
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --text-medium: #5a5a5a;
    --text-light: #8a8a8a;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--cream) 50%, var(--gold-light) 100%);
    color: var(--text-dark);
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink-dark), var(--gold-medium));
    transition: width 0.5s ease;
    border-radius: 0 3px 3px 0;
}

.progress-text {
    position: fixed;
    top: 12px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quiz Container */
.quiz-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Quiz Screens */
.quiz-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.quiz-screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quiz-screen.exit {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 500px;
}

.logo-icon {
    margin-bottom: 30px;
}

.makeup-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.2);
    border: 4px solid var(--white);
    animation: float 3s ease-in-out infinite;
}

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

.welcome-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.5;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--pink-dark), var(--gold-medium));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Question Content */
.question-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.question-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pink-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.question-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option:hover {
    background: var(--white);
    border-color: var(--pink-medium);
    transform: translateX(5px);
}

.option.selected {
    background: var(--white);
    border-color: var(--pink-dark);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pink-light), var(--gold-light));
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.option.selected .option-letter {
    background: linear-gradient(135deg, var(--pink-dark), var(--gold-medium));
    color: var(--white);
}

.option-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Result Screen */
.result-content {
    text-align: center;
    max-width: 500px;
}

.result-icon {
    margin-bottom: 25px;
}

.success-icon {
    width: 100px;
    height: 100px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.result-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.result-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    line-height: 1.5;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.result-button {
    font-size: 1.2rem;
    padding: 18px 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 1.8rem;
    }
    
    .question-content h2 {
        font-size: 1.5rem;
    }
    
    .option {
        padding: 15px;
    }
    
    .option-letter {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .result-content h1 {
        font-size: 1.7rem;
    }
    
    .result-stats {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 1.5rem;
    }
    
    .question-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .result-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-screen.active .question-number {
    animation: slideUp 0.5s ease 0.1s both;
}

.quiz-screen.active h2 {
    animation: slideUp 0.5s ease 0.2s both;
}

.quiz-screen.active .option:nth-child(1) {
    animation: slideUp 0.5s ease 0.3s both;
}

.quiz-screen.active .option:nth-child(2) {
    animation: slideUp 0.5s ease 0.4s both;
}

.quiz-screen.active .option:nth-child(3) {
    animation: slideUp 0.5s ease 0.5s both;
}

.quiz-screen.active .option:nth-child(4) {
    animation: slideUp 0.5s ease 0.6s both;
}

/* Loading State */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--pink-light);
    border-top-color: var(--pink-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Focus States for Keyboard Navigation */
.option:focus {
    outline: 2px solid var(--pink-dark);
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid var(--pink-dark);
    outline-offset: 2px;
}
