/* Charlie likes Quiz - Frontend Styles */

.clq-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--clq-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.6;
    color: #333;
}

/* Quiz Header */
.clq-quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.clq-quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.clq-quiz-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Progress Bar */
.clq-progress-container {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.clq-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.clq-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    background-color: #4CAF50;
}

.clq-progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Questions */
.clq-question {
    margin-bottom: 4rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

/* Question Image */
.clq-question-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.clq-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



.clq-question-prompt {
    font-size: var(--clq-question-title-font-size, 1.5rem);
    font-weight: var(--clq-question-title-font-weight, 600);
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Answer Grids */
.clq-answers-grid {
    display: grid;
    gap: 1rem;
}

.clq-answers-text {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.clq-answers-image {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Answer Options */
.clq-answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 120px;
    height: auto;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.clq-answer-option:hover {
    border-color: #4CAF50 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
    color: #333 !important;
}

/* Fun theme hover override - no border color change */
.clq-theme-fun .clq-answer-option:hover {
    border-color: #d3d3d3 !important;
}

/* Override Elementor button styles for quiz answer options */
.clq-quiz-container .clq-answer-option:hover,
.clq-quiz-container .clq-answer-option:focus {
    background-color: var(--clq-brand-color, #4CAF50) !important;
    color: #333 !important;
    text-decoration: none !important;
}

/* Hover styles that match the answer state when explanations are shown */
.clq-answer-option.user-choice:hover {
    border-color: #2196F3 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.clq-answer-option.correct-answer:hover {
    border-color: #4CAF50 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.clq-answer-option.user-choice.correct-answer:hover {
    border-color: #4CAF50 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.clq-answer-option.selected {
    border-color: #4CAF50;
    background-color: #f1f8e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Fun theme selected answer override - no border color */
.clq-theme-fun .clq-answer-option.selected {
    border-color: transparent;
}

.clq-answer-image {
    width: 100%;
    margin-bottom: 0;
    position: relative;
}

.clq-answer-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease;
    margin-bottom: 0;
    display: block;
}

.clq-answer-label {
    font-weight: var(--clq-answer-label-font-weight, 500);
    color: #333 !important;
    font-size: var(--clq-answer-label-font-size, 1rem);
    line-height: 1.3;
    margin-top: 0.75rem;
    text-align: center;
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.clq-answer-option:hover .clq-answer-image img {
    transform: scale(1.05);
}

.clq-answer-option:hover .clq-answer-label {
    color: #333 !important;
}

.clq-answer-option.selected .clq-answer-label {
    color: #333 !important;
}

/* Fun theme selected answer label override */
.clq-theme-fun .clq-answer-option.selected .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
}

/* Results Container */
.clq-results-container {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 3px solid #4CAF50;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.clq-results-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #4CAF50);
}

.clq-results-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.clq-result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.clq-result-outcome {
    margin-bottom: 2rem;
}

.clq-result-image {
    margin-bottom: 1rem;
}

.clq-result-image img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clq-result-outcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    background: linear-gradient(135deg, #4CAF50, #45a049, #2E7D32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    outline: none;
}

.clq-result-outcome-title:focus {
    outline: none !important;
}

.clq-result-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Results animation */
.clq-results-container {
    animation: slideInResults 0.5s ease-out;
}

@keyframes slideInResults {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Share Section */
.clq-share-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.clq-share-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clq-share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.clq-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    position: relative;
}

.clq-share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.clq-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.clq-share-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.clq-share-facebook {
    background-color: #1877f2;
}

.clq-share-facebook:hover {
    background-color: #166fe5;
}

.clq-share-x {
    background-color: #000;
}

.clq-share-x:hover {
    background-color: #333;
}

.clq-share-pinterest {
    background-color: #e60023;
}

.clq-share-pinterest:hover {
    background-color: #cc001f;
}

.clq-share-copylink {
    background-color: #ffffff;
}

.clq-share-copylink:hover {
    background-color: #f0f0f0;
}

/* Action Buttons Container */
.clq-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Retake Button */
.clq-retake-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 1;
}

.clq-retake-btn:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.clq-retake-btn:active {
    transform: translateY(-1px);
}

/* See Answers Button */
.clq-see-answers-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--clq-brand-color, #4CAF50), #45a049);
    color: #fff;
    border: 2px solid var(--clq-brand-color, #4CAF50);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.clq-see-answers-btn:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    border-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.clq-see-answers-btn:active {
    transform: translateY(-1px);
}

.clq-see-answers-btn.showing-answers {
    background: linear-gradient(135deg, var(--clq-brand-color, #4CAF50), #45a049);
    border-color: var(--clq-brand-color, #4CAF50);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.clq-see-answers-btn.showing-answers:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    border-color: #45a049;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/* Loading State */
.clq-loading {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.clq-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clq-loading p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .clq-quiz-container {
        padding: 0 1rem;
    }
    
    .clq-quiz-title {
        font-size: 2rem;
    }
    
    .clq-question {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .clq-question-prompt {
        font-size: calc(var(--clq-question-title-font-size, 1.5rem) * 0.87);
    }
    
    .clq-answers-grid {
        grid-template-columns: 1fr;
    }
    
    .clq-answer-option {
        min-height: 100px;
        padding: 1rem;
    }
    
    .clq-answer-image img {
        height: 100px;
    }
    
    .clq-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .clq-share-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .clq-result-title {
        font-size: 1.6rem;
    }
    
    .clq-result-outcome-title {
        font-size: 2rem;
    }
    
    .clq-share-btn {
        width: 45px;
        height: 45px;
    }
    
    .clq-share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .clq-action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .clq-retake-btn,
    .clq-see-answers-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 160px;
    }
    
    .clq-result-image img {
        max-width: 250px;
    }
    
    .clq-question-image img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .clq-quiz-title {
        font-size: 1.8rem;
    }
    
    .clq-question {
        padding: 1rem;
    }
    
    .clq-question-prompt {
        font-size: calc(var(--clq-question-title-font-size, 1.5rem) * 0.8);
    }
    
    .clq-answer-option {
        padding: 0.75rem;
    }
    
    .clq-result-title {
        font-size: 1.4rem;
    }
    
    .clq-result-outcome-title {
        font-size: 1.2rem;
    }
}

/* Accessibility */
.clq-answer-option:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    border-radius: 8px;
}

.clq-share-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.clq-retake-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .clq-answer-option {
        border-width: 3px;
    }
    
    .clq-answer-option.selected {
        border-width: 4px;
    }
    
    .clq-question,
    .clq-results-container,
    .clq-loading {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .clq-answer-option,
    .clq-progress-fill,
    .clq-spinner,
    .clq-share-btn,
    .clq-retake-btn {
        transition: none;
        animation: none;
    }
    
    .clq-answer-option:hover,
    .clq-answer-option.selected {
        transform: none;
    }
    
    .clq-answer-option:hover .clq-answer-image img {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .clq-quiz-container {
        color: #e0e0e0;
    }
    
    .clq-quiz-title,
    .clq-question-prompt,
    .clq-result-title,
    .clq-result-outcome-title {
        color: #fff;
    }
    
    .clq-quiz-description,
    .clq-progress-text,
    .clq-result-description {
        color: #ccc;
    }
    
    .clq-question,
    .clq-results-container,
    .clq-loading {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .clq-answer-option {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .clq-answer-option:hover {
        border-color: #4CAF50;
        background-color: #1a2e1a;
    }
    
    .clq-answer-option.selected {
        background-color: #1a2e1a;
    }
    
    .clq-answer-label {
        color: #e0e0e0;
        font-size: var(--clq-answer-label-font-size, 1rem);
        font-weight: var(--clq-answer-label-font-weight, 500);
        margin-top: 0.75rem;
        text-align: center;
        display: block !important;
        position: static !important;
        background: none !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: auto !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .clq-share-section {
        background-color: #ffffff;
    }
    
    .clq-share-section h4 {
        color: #333;
    }
    
    .clq-progress-bar {
        background-color: #444;
    }
}

/* Print styles */
@media print {
    .clq-share-section,
    .clq-retake-btn,
    .clq-progress-container {
        display: none !important;
    }
    
    .clq-quiz-container {
        max-width: none;
        margin: 0;
    }
    
    .clq-question,
    .clq-results-container {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Scoring Quiz Styles */
.clq-scoring-result {
    text-align: center;
    margin-bottom: 2rem;
}

.clq-score-display {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.clq-grade-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.clq-feedback {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.clq-show-answers-btn {
    padding: 1rem 2rem;
    background-color: #2196F3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1rem;
}

.clq-show-answers-btn:hover {
    background-color: #1976D2;
}

.clq-show-answers-btn.showing-answers {
    background-color: #FF9800;
}

.clq-show-answers-btn.showing-answers:hover {
    background-color: #F57C00;
}

/* User Choice and Correct Answer Highlighting */
.clq-answer-option.user-choice {
    border-color: #2196F3 !important;
    background-color: #E3F2FD !important;
    position: relative;
}

/* User choice is wrong answer */
.clq-answer-option.user-choice:not(.correct-answer)::after {
    content: "✗";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.clq-answer-option.correct-answer {
    border-color: #4CAF50 !important;
    background-color: #E8F5E8 !important;
    position: relative;
}

.clq-answer-option.correct-answer::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* When user choice is also correct answer */
.clq-answer-option.user-choice.correct-answer {
    border-color: #4CAF50 !important;
    background-color: #E8F5E8 !important;
    position: relative;
}

/* User choice is correct answer */
.clq-answer-option.user-choice.correct-answer::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Answer Explanation Styles */
.clq-answer-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2E7D32;
    line-height: 1.4;
    position: relative;
}

.clq-answer-explanation::before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Question Explanation Styles */
.clq-question-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.clq-explanation-summary {
    margin-bottom: 1rem;
}

.clq-user-choice {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.clq-user-choice-correct {
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    color: #2E7D32;
}

.clq-user-choice-incorrect {
    background-color: #FFEBEE;
    border: 1px solid #f44336;
    color: #C62828;
}

.clq-correct-answer {
    padding: 0.75rem;
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #2E7D32;
    font-size: 1rem;
}

.clq-user-choice {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.clq-user-choice-correct {
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    color: #2E7D32;
}

.clq-user-choice-incorrect {
    background-color: #FFEBEE;
    border: 1px solid #f44336;
    color: #C62828;
}

.clq-correct-answer {
    padding: 0.75rem;
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #2E7D32;
    font-size: 1rem;
}

/* Vintage theme explanation styles */
.clq-theme-vintage .clq-answer-explanation {
    background-color: var(--clq-vintage-choices-bg, #F5F5DC);
    border: 2px solid #000000;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-answer-explanation::before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.clq-theme-vintage .clq-question-explanation {
    background-color: var(--clq-vintage-choices-bg, #F5F5DC);
    border: 3px solid #000000;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-user-choice-correct {
    background-color: #E8F5E8;
    border: 2px solid #000000;
    color: #2E7D32;
}

.clq-theme-vintage .clq-user-choice-incorrect {
    background-color: #FFEBEE;
    border: 2px solid #000000;
    color: #C62828;
}

.clq-theme-vintage .clq-correct-answer {
    background-color: #E8F5E8;
    border: 2px solid #000000;
    color: #2E7D32;
}

/* Mobile responsive for scoring quiz */
@media (max-width: 768px) {
    .clq-score-display {
        font-size: 1.5rem;
    }
    
    .clq-grade-display {
        font-size: 1.3rem;
    }
    
    .clq-show-answers-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .clq-question-explanation {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .clq-user-choice,
    .clq-correct-answer {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Vintage Theme Styles */
.clq-quiz-container.clq-theme-vintage {
    background-color: var(--clq-vintage-bg-color, #2E7D32);
    color: #ffffff;
    padding: 2rem;
    border-radius: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.clq-theme-vintage .clq-quiz-title {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.clq-theme-vintage .clq-quiz-description {
    color: #f0f0f0;
    font-style: italic;
}

.clq-theme-vintage .clq-question {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0;
    transition: all 0.3s ease;
}



.clq-theme-vintage .clq-question-prompt {
    color: #ffffff;
    font-size: var(--clq-question-title-font-size, 1.8rem);
    font-weight: var(--clq-question-title-font-weight, 700);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.clq-theme-vintage .clq-answer-option {
    background-color: var(--clq-vintage-choices-bg, #F5F5DC);
    border: 2px solid #000000;
    border-radius: 8px;
    box-shadow: 
        0 0 0 1px #000000,
        0 8px 16px rgba(0,0,0,0.4);
    color: #333333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.clq-theme-vintage .clq-answer-option::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #000000;
    border-radius: 10px;
    z-index: -1;
}

.clq-theme-vintage .clq-answer-option:hover {
    background-color: var(--clq-brand-color, #4CAF50);
    transform: translateY(-4px);
    box-shadow: 
        0 0 0 1px #000000,
        0 12px 24px rgba(0,0,0,0.6);
}

/* Vintage theme hover styles that match the answer state when explanations are shown */
.clq-theme-vintage .clq-answer-option.user-choice:hover {
    border-color: #2196F3 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 
        0 0 0 1px #000000,
        0 12px 24px rgba(33, 150, 243, 0.3);
}

.clq-theme-vintage .clq-answer-option.correct-answer:hover {
    border-color: #4CAF50 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 
        0 0 0 1px #000000,
        0 12px 24px rgba(76, 175, 80, 0.3);
}

.clq-theme-vintage .clq-answer-option.user-choice.correct-answer:hover {
    border-color: #4CAF50 !important;
    background-color: var(--clq-brand-color, #4CAF50) !important;
    box-shadow: 
        0 0 0 1px #000000,
        0 12px 24px rgba(76, 175, 80, 0.3);
}

.clq-theme-vintage .clq-answer-option.selected {
    background-color: var(--clq-vintage-choices-bg, #F5F5DC);
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 2px #000000,
        0 6px 12px rgba(0,0,0,0.5);
}

.clq-theme-vintage .clq-answer-label {
    color: #333333;
    font-weight: var(--clq-answer-label-font-weight, 700);
    font-size: var(--clq-answer-label-font-size, 1.1rem);
    margin-top: 0.75rem;
    text-align: center;
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.clq-theme-vintage .clq-answer-image img {
    border: 2px solid #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.clq-theme-vintage .clq-progress-bar {
    background-color: rgba(255,255,255,0.3);
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-progress-fill {
    background: linear-gradient(45deg, #F5F5DC, #E8E8D0);
    border-right: 2px solid #000000;
}

.clq-theme-vintage .clq-progress-text {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.clq-theme-vintage .clq-results-container {
    background: var(--clq-vintage-choices-bg, #F5F5DC);
    border: 3px solid #000000;
    box-shadow: 
        0 0 0 2px #000000,
        0 12px 24px rgba(0,0,0,0.4);
    color: #333333;
}

.clq-theme-vintage .clq-result-outcome-title {
    color: #333333;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-result-outcome-title:focus {
    outline: none !important;
}

.clq-theme-vintage .clq-result-description {
    color: #555555;
}

.clq-theme-vintage .clq-share-section {
    background: var(--clq-vintage-choices-bg, #F5F5DC);
    border: 2px solid #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-share-section h4 {
    color: #333333;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.clq-theme-vintage .clq-retake-btn {
    background: linear-gradient(45deg, #333333, #555555);
    border: 2px solid #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clq-theme-vintage .clq-retake-btn:hover {
    background: linear-gradient(45deg, #555555, #777777);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.clq-theme-vintage .clq-see-answers-btn {
    background: linear-gradient(45deg, var(--clq-brand-color, #4CAF50), #45a049);
    border: 3px solid #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.clq-theme-vintage .clq-see-answers-btn:hover {
    background: linear-gradient(45deg, #45a049, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.clq-theme-vintage .clq-see-answers-btn.showing-answers {
    background: linear-gradient(45deg, var(--clq-brand-color, #4CAF50), #45a049);
    border-color: #000000;
}

.clq-theme-vintage .clq-see-answers-btn.showing-answers:hover {
    background: linear-gradient(45deg, #45a049, #2E7D32);
}

/* Mobile responsive for vintage theme */
@media (max-width: 768px) {
    .clq-theme-vintage .clq-quiz-container {
        padding: 1rem;
    }
    
    .clq-theme-vintage .clq-question-prompt {
        font-size: calc(var(--clq-question-title-font-size, 1.8rem) * 0.83);
    }
    
    .clq-theme-vintage .clq-answer-option {
        padding: 1.2rem;
    }
}

/* Fun Theme Styles - Buzzfeed-inspired design */
.clq-quiz-container.clq-theme-fun {
    background-color: #ffffff;
    color: #333333;
    padding: 1rem;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.clq-theme-fun .clq-quiz-title {
    color: #333333;
    font-weight: 700;
    text-shadow: none;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.clq-theme-fun .clq-quiz-description {
    color: #666666;
    font-style: normal;
}

.clq-theme-fun .clq-question {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    min-height: auto;
    height: auto;
    overflow: visible;
}

.clq-theme-fun .clq-question-prompt {
    background-color: var(--clq-fun-bg-color, #2E7D32);
    color: var(--clq-fun-text-color, #90EE90);
    font-size: var(--clq-question-title-font-size, 1.6rem);
    font-weight: var(--clq-question-title-font-weight, 700);
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
    text-align: center;
    line-height: 1.3;
    min-height: auto;
    height: auto;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    /* Additional fixes for image tile questions */
    display: block;
    position: relative;
    z-index: 1;
}

/* Specific fixes for image tile questions */
.clq-theme-fun .clq-question[data-question-type="image"] .clq-question-prompt {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    font-size: var(--clq-question-title-font-size, 1.4rem);
    line-height: 1.4;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.clq-theme-fun .clq-answers-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.clq-theme-fun .clq-answers-grid.clq-answers-text {
    grid-template-columns: repeat(2, 1fr);
}

.clq-theme-fun .clq-answers-grid.clq-answers-image {
    grid-template-columns: repeat(2, 1fr);
}

.clq-theme-fun .clq-answer-option {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32);
    border: 1px solid #d3d3d3;
    border-radius: 0;
    box-shadow: none;
    color: var(--clq-fun-choices-text-color, #90EE90);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: auto;
}

.clq-theme-fun .clq-answer-option:hover {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.clq-theme-fun .clq-answer-option:hover .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
}

.clq-theme-fun .clq-answer-option.selected {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32);
    border: 3px solid var(--clq-fun-text-color, #90EE90);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.clq-theme-fun .clq-answer-option.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ffffff;
    color: var(--clq-brand-color, #4CAF50);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid var(--clq-fun-text-color, #90EE90);
    z-index: 10;
}

.clq-theme-fun .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
    font-weight: var(--clq-answer-label-font-weight, 700) !important;
    font-size: var(--clq-answer-label-font-size, 1.1rem) !important;
    margin-top: 0.5rem;
    text-align: center;
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.clq-theme-fun .clq-answer-image {
    background: none;
    border: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
}

.clq-theme-fun .clq-answer-image img {
    border: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    z-index: 1;
}



.clq-theme-fun .clq-progress-bar {
    background-color: #e0e0e0;
    border: none;
    box-shadow: none;
}

.clq-theme-fun .clq-progress-fill {
    background: var(--clq-fun-bg-color, #2E7D32);
    border-right: none;
}

.clq-theme-fun .clq-progress-text {
    color: #666666;
    font-weight: 500;
    text-shadow: none;
}

.clq-theme-fun .clq-results-container {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333333;
    border-radius: 12px;
}

.clq-theme-fun .clq-result-outcome-title {
    color: #333333;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: none;
}

.clq-theme-fun .clq-result-outcome-title:focus {
    outline: none !important;
}

.clq-theme-fun .clq-result-description {
    color: #666666;
}

.clq-theme-fun .clq-share-section {
    background: #f8f9fa;
    border: none;
    box-shadow: none;
    border-radius: 8px;
}

.clq-theme-fun .clq-share-section h4 {
    color: #333333;
    font-weight: 600;
    text-shadow: none;
}

.clq-theme-fun .clq-retake-btn {
    background: var(--clq-fun-bg-color, #2E7D32);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--clq-fun-text-color, #90EE90);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 6px;
}

.clq-theme-fun .clq-retake-btn:hover {
    background: var(--clq-fun-bg-color, #2E7D32);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.clq-theme-fun .clq-see-answers-btn {
    background: var(--clq-fun-bg-color, #2E7D32);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--clq-fun-text-color, #90EE90);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    border-radius: 6px;
}

.clq-theme-fun .clq-see-answers-btn:hover {
    background: var(--clq-fun-bg-color, #2E7D32);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.clq-theme-fun .clq-see-answers-btn.showing-answers {
    background: var(--clq-brand-color, #4CAF50);
    border-color: transparent;
}

.clq-theme-fun .clq-see-answers-btn.showing-answers:hover {
    background: var(--clq-brand-color, #4CAF50);
    opacity: 0.9;
}

/* Fun theme overrides for user choice and correct answer styling */
.clq-theme-fun .clq-answer-option.user-choice {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32) !important;
    border-color: var(--clq-fun-text-color, #90EE90) !important;
    border-width: 3px !important;
}

.clq-theme-fun .clq-answer-option.user-choice .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
}

.clq-theme-fun .clq-answer-option.correct-answer {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32) !important;
    border: 1px solid #d3d3d3 !important;
}

.clq-theme-fun .clq-answer-option.correct-answer .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
}

.clq-theme-fun .clq-answer-option.user-choice.correct-answer {
    background-color: var(--clq-fun-choices-bg-color, #2E7D32) !important;
    border-color: var(--clq-fun-text-color, #90EE90) !important;
    border-width: 3px !important;
}

.clq-theme-fun .clq-answer-option.user-choice.correct-answer .clq-answer-label {
    color: var(--clq-fun-choices-text-color, #90EE90) !important;
}

/* Keep the indicators but style them for fun theme */
/* Fun theme - user choice is wrong answer */
.clq-theme-fun .clq-answer-option.user-choice:not(.correct-answer)::after {
    content: "✗";
    background-color: #f44336;
    color: #ffffff;
    border: 2px solid #f44336;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.clq-theme-fun .clq-answer-option.correct-answer::after {
    content: "✓";
    background-color: #4CAF50;
    color: #ffffff;
    border: 2px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Fun theme - user choice is correct answer */
.clq-theme-fun .clq-answer-option.user-choice.correct-answer::after {
    content: "✓";
    background-color: #4CAF50;
    color: #ffffff;
    border: 2px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Fun theme focus overrides */
.clq-theme-fun .clq-answer-option:focus {
    outline: 2px solid var(--clq-fun-text-color, #90EE90);
    outline-offset: 2px;
    border-radius: 0;
}

/* Fun theme explanation styles */
.clq-theme-fun .clq-question-explanation {
    background: #ffffff;
    border: 2px solid var(--clq-fun-bg-color, #2E7D32);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.clq-theme-fun .clq-answer-explanation {
    background-color: #f8f9fa;
    border: 1px solid var(--clq-fun-bg-color, #2E7D32);
    border-radius: 6px;
    color: #333333;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.clq-theme-fun .clq-answer-explanation::before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.clq-theme-fun .clq-user-choice-correct {
    background-color: #E8F5E8;
    border: 1px solid var(--clq-fun-bg-color, #2E7D32);
    color: #2E7D32;
}

.clq-theme-fun .clq-user-choice-incorrect {
    background-color: #FFEBEE;
    border: 1px solid #f44336;
    color: #C62828;
}

.clq-theme-fun .clq-correct-answer {
    background-color: #E8F5E8 !important;
    border: 1px solid var(--clq-fun-bg-color, #2E7D32) !important;
    color: #2E7D32 !important;
}



/* Mobile responsive for fun theme */
@media (max-width: 768px) {
    .clq-theme-fun .clq-quiz-container {
        padding: 0.5rem;
    }
    
    .clq-theme-fun .clq-question-prompt {
        font-size: calc(var(--clq-question-title-font-size, 1.6rem) * 0.9);
        padding: 1rem;
    }
    
    .clq-theme-fun .clq-answer-option {
        padding: 0.8rem;
    }
    
    .clq-theme-fun .clq-answer-label {
        font-size: calc(var(--clq-answer-label-font-size, 1.1rem) * 0.9);
    }
}

/* Ad Block Styles */
.clq-ad-block-wrapper {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.clq-ad-block {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 1rem;
    position: relative;
}

.clq-ad-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clq-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.clq-ad-content iframe {
    max-width: 100%;
    height: auto;
}

.clq-ad-content ins {
    display: block;
    margin: 0 auto;
}

/* Responsive ad blocks */
@media (max-width: 768px) {
    .clq-ad-block-wrapper {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
    }
    
    .clq-ad-block {
        padding: 0.75rem;
    }
    
    .clq-ad-content {
        min-height: 60px;
    }
}

/* Ad block loading state */
.clq-ad-block.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}