/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GLOBAL ===== */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9100 0%, #ff7b00 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.shopee-img {
    display: block;
    margin: 30px auto;
    max-width: 200px;
    width: 100%;
}

/* ===== QUIZ CONTAINER ===== */
.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    animation: shimmer 2s infinite;
}

/* ===== ANIMAÇÕES ===== */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pointsFloat {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -80px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -120px) scale(1); }
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes fall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(40px) scale(0.5); opacity: 0; }
}

/* ===== HEADER & QUESTION ===== */
.header {
    margin-bottom: 30px;
}

.question-number {
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.question {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
    animation: slideInDown 0.6s ease-out;
}

/* ===== PROGRESS BAR ===== */
.progress-section {
    margin-bottom: 40px;
}

.progress-bar-container {
    background: #e0e0e0;
    border-radius: 25px;
    height: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 25px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ===== SCORE ===== */
.score-display {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-points {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
}

/* ===== ANSWERS ===== */
.answers-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.answer-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out both;
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.answer-btn.correct {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    animation: correctPulse 0.6s ease-out;
}

/* ===== PONTOS E CONFETES ===== */
.points-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    z-index: 1000;
}

.points-popup.show {
    animation: pointsFloat 1.5s ease-out;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
}

.confetti.blue { background: #4ecdc4; }
.confetti.yellow { background: #feca57; }
.confetti.green { background: #96ceb4; }
.confetti.purple { background: #667eea; }

/* ===== COMPLETION SCREEN ===== */
.completion-screen {
    display: none;
    text-align: center;
    animation: slideInDown 0.8s ease-out;
}

.completion-screen.show {
    display: block;
}

.completion-title {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: bold;
}

.final-score {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-bottom: 20px;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===== VENDA CONTAINER ===== */
.venda-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.venda-container h1 {
    font-size: 28px;
    color: #ff5100;
}

.venda-container p {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
}

.venda-container .preco {
    font-size: 36px;
    color: #008000;
    margin: 20px 0;
}

.venda-container .cta {
    display: inline-block;
    background-color: #ff5100;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.venda-container .cta:hover {
    background-color: #e24a00;
}

.venda-container .garantia {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff5100;
    border-radius: 50%;
    animation: fall 0.8s ease-out forwards;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }

    .question {
        font-size: 20px;
    }

    .answer-btn {
        font-size: 14px;
        padding: 14px 18px;
    }

    .score-display {
        flex-direction: column;
        gap: 10px;
        font-size: 18px;
    }

    .score-points {
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 15px;
    }

    .question {
        font-size: 18px;
    }

    .answer-btn {
        font-size: 13px;
        padding: 12px 15px;
        border-radius: 10px;
    }

    .completion-title {
        font-size: 24px;
    }

    .final-score {
        font-size: 36px;
    }

    .venda-container h1 {
        font-size: 22px;
    }

    .venda-container p {
        font-size: 16px;
    }

    .venda-container .preco {
        font-size: 28px;
    }

    .venda-container .cta {
        font-size: 16px;
        padding: 14px 28px;
    }
}
