/* Quiz Page Styles */
.quiz-page {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 50%, #ffd4d4 100%);
    min-height: 100vh;
}

/* Header Navigation CTA */
.nav-cta {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.nav-cta.active {
    background: linear-gradient(135deg, #ff4757, #ff6348);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Quiz Hero Section */
.quiz-hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffcccc" opacity="0.5"/><circle cx="80" cy="40" r="1.5" fill="%23ffcccc" opacity="0.3"/><circle cx="40" cy="80" r="1" fill="%23ffcccc" opacity="0.4"/></svg>');
    animation: float 20s infinite linear;
    pointer-events: none;
}

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

.audio-intro {
    margin-bottom: 30px;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b6b;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.audio-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.05);
}

.audio-btn.small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.typewriter {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2d3436;
    overflow: hidden;
    border-right: 3px solid #ff6b6b;
    white-space: nowrap;
    animation: typing 3s steps(20) forwards, blink 1s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.subheadline {
    font-size: 1.4rem;
    color: #636e72;
    margin-bottom: 15px;
    font-weight: 300;
}

.teaser {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 500;
    margin-bottom: 40px;
}

.cta-pulse {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}

.cta-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.7);
}

/* Quiz Section */
.quiz-section {
    padding: 60px 0;
    display: none;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 10px;
}

.hearts {
    font-size: 1.5rem;
    letter-spacing: 5px;
}

.quiz-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.audio-question {
    text-align: right;
    margin-bottom: 20px;
}

.question-container {
    margin-bottom: 30px;
}

.question {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255,107,107,0.1), transparent);
    transition: width 0.3s ease;
}

.answer-option:hover::before {
    width: 100%;
}

.answer-option:hover {
    border-color: #ff6b6b;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.2);
}

.answer-option.selected {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-color: #ff6b6b;
    animation: heartPulse 0.5s ease;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.answer-icon {
    font-size: 1.5rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #dfe6e9;
    color: #636e72;
}

.btn-secondary:hover {
    background: #b2bec3;
    color: #2d3436;
}

/* Result Section */
.result-section {
    padding: 80px 0;
    display: none;
}

.result-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease;
}

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

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

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

.result-card h2 {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 15px;
}

.result-card > p {
    color: #636e72;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.result-score {
    margin: 40px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 30px rgba(255,107,107,0.4);
    animation: scaleIn 0.5s ease 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.score-circle span {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    color: #636e72;
    font-size: 0.9rem;
}

.result-audio {
    margin: 25px 0;
}

.result-actions {
    margin: 30px 0;
}

.cta-button.large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    margin-top: 10px;
}

.cta-button.secondary:hover {
    background: #ff6b6b;
    color: white;
}

.result-bonus {
    background: #fff5f5;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.result-bonus p {
    margin-bottom: 15px;
    color: #2d3436;
}

/* Share Section */
.share-section {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #dfe6e9;
}

.share-section p {
    color: #636e72;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.copy {
    background: #636e72;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.result-retry {
    margin-top: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .typewriter {
        font-size: 2rem;
        white-space: normal;
        border: none;
        animation: none;
    }
    
    .quiz-hero {
        padding: 60px 20px;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    .teaser {
        font-size: 1rem;
    }
    
    .cta-pulse {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
    
    .quiz-content {
        padding: 25px;
        margin: 0 15px;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .answer-option {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .result-card {
        margin: 0 15px;
        padding: 30px 20px;
    }
    
    .result-card h2 {
        font-size: 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-circle span {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .answer-option:hover {
        transform: none;
    }
    
    .answer-option:active {
        transform: scale(0.98);
    }
}