/* Quiz Page Specific Styles */

/* Main container for quiz */
.quiz-main {
    padding: 4rem clamp(1rem, 6vw, 6rem) 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    flex: 1;
    position: relative;
}

/* Donation Counter Pill */
.donation-counter-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(17, 21, 33, 0.1);
    animation: fadeInUp 0.6s ease forwards;
}

.pill-icon {
    font-size: 1.2rem;
}

/* Quiz Glass Card */
.quiz-glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 25px 50px rgba(17, 21, 33, 0.12);
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease forwards;
}

.hidden {
    display: none !important;
}

/* Welcome Screen */
.quiz-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.quiz-hero-title {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.quiz-hero-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.feature-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 107, 95, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover .icon {
    transform: scale(1.1);
    background: rgba(255, 107, 95, 0.2);
}

/* Start Button */
.quiz-start-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Quiz Screen */
.quiz-header {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(28, 29, 42, 0.1);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c7a);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.question-tracker {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.question-container h3 {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--text);
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: rgba(28, 29, 42, 0.04);
    border: 1px solid var(--border);
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-btn:hover:not(.disabled) {
    background: rgba(255, 107, 95, 0.08);
    border-color: var(--accent);
    transform: translateX(5px);
}

.option-btn.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #15803d;
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #b91c1c;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.75;
}

.feedback {
    margin-top: 1.5rem;
    font-weight: 600;
    min-height: 24px;
}

/* Success Screen */
.celebration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paw-animation {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    height: 80px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bowl {
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

.food-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
}

/* Celebration Animation */
.active-section .food-particle {
    animation: dropFood 1s ease forwards;
}

.p1 {
    animation-delay: 0.2s;
}

.p2 {
    animation-delay: 0.4s;
}

.p3 {
    animation-delay: 0.6s;
}

@keyframes dropFood {
    0% {
        transform: translate(-50%, -150%);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--tx, 0px)), 0);
        opacity: 1;
    }
}

.success-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.success-message {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.donation-badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.35);
    animation: pulse-glow-green 2s infinite;
}

@keyframes pulse-glow-green {
    0% {
        box-shadow: 0 15px 30px rgba(22, 163, 74, 0.35);
    }

    50% {
        box-shadow: 0 15px 40px rgba(22, 163, 74, 0.5);
    }

    100% {
        box-shadow: 0 15px 30px rgba(22, 163, 74, 0.35);
    }
}

.donation-badge .plus-one {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.symbolic-note {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 85%;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Restart Button */
.quiz-restart-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quiz-restart-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .quiz-glass-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .quiz-hero-title {
        font-size: 1.75rem;
    }

    .feature-list {
        gap: 1rem;
    }

    .question-container h3 {
        font-size: 1.15rem;
    }
}