/* Quiz Modern CSS */

/* === VARIABLES === */
:root {
    --quiz-primary: #1b6f7c;
    --quiz-primary-light: #2a8a9a;
    --quiz-primary-dark: #0f4a52;
    --quiz-secondary: #f98253;
    --quiz-secondary-light: #ff9b73;
    --quiz-accent: #34d399;
    --quiz-success: #10b981;
    --quiz-warning: #f59e0b;
    --quiz-danger: #ef4444;
    --quiz-dark: #2c3e50;
    --quiz-light: #ecf0f1;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.25);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
}

/* === ANIMATIONS === */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: var(--target-width, 50%);
    }
}

@keyframes confetti {
    0% {
        transform: rotateZ(15deg) rotateY(0deg) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: rotateZ(405deg) rotateY(360deg) translate(-100px, 600px);
        opacity: 0;
    }
}

/* === UTILITY CLASSES === */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideInDown 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* === INTERACTIVE ELEMENTS === */
.interactive-hover {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.interactive-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.button-ripple {
    position: relative;
    overflow: hidden;
}

.button-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* === LOADING STATES === */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Removed spin animation */

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 2s linear infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* === PROGRESS INDICATORS === */
.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--quiz-success), var(--quiz-accent));
    border-radius: 10px;
    transition: width 0.8s ease;
    animation: progressFill 1s ease-out;
}

/* === CONFETTI EFFECT === */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--quiz-accent);
    animation: confetti 3s ease-out infinite;
}

/* === QUIZ AFFILIATE AND ANSWERS SECTIONS === */
.quiz-affiliate-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quiz-answers-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.quiz-answers-grid {
    margin: 0 auto;
    padding: 0 1rem;
}

.quiz-answers-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.quiz-answer-item {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    position: relative;
}

.quiz-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-answer-number {
    font-weight: 600;
    color: var(--quiz-primary);
    font-size: 0.9rem;
}

.quiz-answer-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.quiz-answer-status.majority {
    background: #10b981;
    color: white;
}

.quiz-answer-status.minority {
    background: #dc3545;
    color: white;
}

.quiz-answer-question {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.quiz-answer-choice {
    margin-bottom: 1.5rem;
}

.quiz-answer-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.quiz-answer-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-answer-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quiz-answer-badge.user-choice {
    background: var(--quiz-primary);
    color: white;
    border: 2px solid var(--quiz-primary);
}

.quiz-answer-badge.other-choice {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    opacity: 0.7;
}

.quiz-answer-badge-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.quiz-answer-badge-text {
    flex: 1;
}

.quiz-answer-badge-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 1rem;
}

/* Remove old stats styles */
.quiz-answer-stats {
    display: none;
}

@media (max-width: 768px) {
    .quiz-affiliate-content,
    .quiz-answers-detail {
        margin: 1rem;
        padding: 0 0.5rem;
    }

    .quiz-answers-grid {
        padding: 0 0.5rem;
    }

    .quiz-answer-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .quiz-answer-badge {
        padding: 0.5rem 0.75rem;
    }

    .quiz-answer-badge-content {
        gap: 0.25rem;
    }

    .quiz-answer-badge-percentage {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .quiz-answer-status {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* === NOTIFICATION STYLES === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform var(--transition-normal);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--quiz-success);
}

.notification.error {
    border-left: 4px solid var(--quiz-danger);
}

.notification.warning {
    border-left: 4px solid var(--quiz-warning);
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .animate-slide-up,
    .animate-slide-down,
    .animate-slide-left,
    .animate-slide-right {
        animation-duration: 0.4s;
    }
    
    .interactive-hover:hover {
        transform: none;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-pulse,
    .animate-bounce {
        animation: none;
    }
}

/* === DARK MODE SUPPORT - DISABLED FOR BETTER READABILITY === */
/* Commented out to prevent text readability issues on white backgrounds */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --quiz-light: #2c3e50;
        --quiz-dark: #ecf0f1;
    }
}
*/

/* === QUIZ LAYOUT === */
.quiz-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--quiz-primary), var(--quiz-secondary));
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quiz-container::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* === QUIZ HERO === */
.quiz-hero {
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.quiz-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.quiz-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.quiz-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.quiz-meta-item i {
    color: var(--quiz-accent);
}

/* === QUIZ CARD === */
.quiz-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    margin: 1rem auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    animation: slideInUp 0.6s ease;
}

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

.quiz-card-header {
    background: linear-gradient(135deg, var(--quiz-primary), var(--quiz-secondary));
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-card-header::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 40 40"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40px); }
}

.quiz-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* === PROGRESS BAR === */
.quiz-progress {
    background: rgba(0,0,0,0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--quiz-success), var(--quiz-accent));
    border-radius: 3px;
    transition: width 0.6s ease;
    position: relative;
}

.quiz-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quiz-progress-text {
    position: absolute;
    right: 1rem;
    top: -2rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

/* === QUESTION SECTION === */
.quiz-question {
    padding: 2rem 1.5rem;
    text-align: center;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.question-counter {
    display: inline-block;
    background: var(--quiz-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* === OPTIONS === */
.question-options {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.question-option {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.question-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left var(--transition-normal);
}

.question-option:hover {
    border-color: var(--quiz-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.question-option:hover::before {
    left: 100%;
}

.question-option.selected {
    background: linear-gradient(135deg, var(--quiz-primary), var(--quiz-secondary));
    border-color: var(--quiz-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.question-option-content {
    position: relative;
    z-index: 1;
}

.question-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--quiz-accent);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.question-option.selected .question-option-letter {
    background: white;
    color: var(--quiz-primary);
}

.question-option-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.question-vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.question-vs-text {
    background: var(--quiz-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* === QUIZ FOOTER === */
.quiz-footer {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--quiz-dark);
    font-weight: 600;
}

.quiz-timer.warning {
    color: var(--quiz-danger);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === BUTTONS === */
.btn-quiz {
    background: linear-gradient(135deg, var(--quiz-primary), var(--quiz-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.btn-quiz-secondary {
    background: white;
    color: var(--quiz-dark);
    border: 2px solid #e9ecef;
}

.btn-quiz-secondary:hover {
    border-color: var(--quiz-primary);
    color: var(--quiz-primary);
}

.btn-quiz-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border-radius: var(--border-radius-lg);
}

/* === RESULT SECTION === */
.quiz-result {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
    text-align: center;
}

.quiz-result-header {
    background: linear-gradient(135deg, var(--quiz-success), var(--quiz-accent));
    padding: 1rem 2rem;
    color: white;
    position: relative;
}

.quiz-result-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.quiz-result-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.quiz-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--quiz-accent) var(--score-percentage, 0%), #e9ecef 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    position: relative;
}

.quiz-score-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.quiz-score-text {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 800;
    color: var(--quiz-dark);
}

.quiz-personality {
    padding: 2rem;
    background: #f8f9fa;
}

.quiz-personality-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--quiz-primary);
    margin-bottom: 1rem;
}

.quiz-personality-description {
    font-size: 1.1rem;
    color: var(--quiz-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quiz-personality-icon {
    font-size: 3rem;
    color: var(--quiz-accent);
    margin-bottom: 1rem;
}

/* === STATS === */
.quiz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: white;
}

.quiz-stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.quiz-stat-icon {
    font-size: 2rem;
    color: var(--quiz-primary);
    margin-bottom: 0.5rem;
}

.quiz-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quiz-dark);
    margin-bottom: 0.25rem;
}

.quiz-stat-label {
    font-size: 0.9rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === BADGES === */
.quiz-badges {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.quiz-badges-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.quiz-badge {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: badgeAppear 0.6s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

.quiz-badge:nth-child(1) { animation-delay: 0.1s; }
.quiz-badge:nth-child(2) { animation-delay: 0.2s; }
.quiz-badge:nth-child(3) { animation-delay: 0.3s; }

@keyframes badgeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quiz-badge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--quiz-accent);
}

.quiz-badge-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quiz-badge-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === SHARE SECTION === */
.quiz-share {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.quiz-share-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quiz-dark);
    margin-bottom: 1.5rem;
}

.quiz-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.quiz-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

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

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

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

.quiz-share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 2.5rem;
    }
    
    .quiz-subtitle {
        font-size: 1.1rem;
    }
    
    .quiz-meta {
        gap: 1rem;
    }
    
    .quiz-meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .quiz-card {
        margin: 1rem;
        border-radius: var(--border-radius);
    }
    
    .quiz-question {
        padding: 2rem 1.5rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .question-options {
        gap: 1rem;
    }
    
    .question-option {
        padding: 1.5rem;
    }
    
    .quiz-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quiz-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quiz-share-btn {
        min-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quiz-hero {
        padding: 1rem 0;
    }
    
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-card-header {
        padding: 1rem;
    }

    .quiz-question {
        padding: 1.25rem 1rem;
    }
    
    .question-option {
        padding: 1rem;
    }
    
    .quiz-badges-grid {
        grid-template-columns: 1fr;
    }
}

/* === AMAZON AFFILIATE WIDGET === */
.amazon-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.amazon-product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amazon-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #ff9900;
}

.amazon-product-image {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.amazon-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amazon-product-image.placeholder {
    flex-direction: column;
    gap: 1rem;
    color: #ff9900;
}

.amazon-product-image.placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.amazon-product-image.placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.7;
}

.amazon-product-info {
    padding: 1.5rem;
}

.amazon-product-title {
    color: #111;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.amazon-product-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.amazon-product-price {
    color: #B12704;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.amazon-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amazon-product-rating i {
    color: #ff9900;
    font-size: 0.9rem;
}

.amazon-product-rating span {
    color: #6c757d;
    font-size: 0.85rem;
}

.amazon-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.amazon-product-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.amazon-product-features i {
    color: var(--quiz-success);
    font-size: 0.9rem;
}

.amazon-product-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff9900, #ffad33);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.amazon-product-button:hover {
    background: linear-gradient(135deg, #e88900, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Style pour les widgets Amazon intégrés */
.affiliate-products iframe {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Style pour les sections d'affiliation */
.quiz-affiliate-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.quiz-affiliate-title {
    color: var(--quiz-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-affiliate-title i {
    color: #ff9900;
    font-size: 1.8rem;
}

.quiz-affiliate-content {
    text-align: center;
}

.quiz-affiliate-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive pour les widgets Amazon */
@media (max-width: 768px) {
    .amazon-affiliate-btn {
        padding: 1rem;
        margin: 0 1rem;
    }

    .amazon-btn-content {
        gap: 0.75rem;
    }

    .amazon-btn-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .amazon-btn-title {
        font-size: 1rem;
    }

    .amazon-btn-subtitle {
        font-size: 0.8rem;
    }

    .quiz-affiliate-section {
        margin: 1rem;
        padding: 1.5rem;
    }
}