/* NOVAWQUISPOP1 Frontend Styles - Clean Quiz Design, Minimal Animations */

.novawquispop1-quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.novawquispop1-quiz-wrapper {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    margin: 10px auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.novawquispop1-quiz-overlay.novawquispop1-show .novawquispop1-quiz-wrapper {
    transform: scale(1);
}

.novawquispop1-quiz-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
}

.novawquispop1-quiz-content {
    padding: 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.novawquispop1-quiz-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.novawquispop1-quiz-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.novawquispop1-quiz-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #333;
}

/* Quiz Header */
.novawquispop1-quiz-header {
    width: 100%;
    margin-bottom: 30px;
}

.novawquispop1-quiz-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.novawquispop1-quiz-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Progress Bar */
.novawquispop1-quiz-progress {
    width: 100%;
    margin-bottom: 25px;
}

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

.novawquispop1-progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.novawquispop1-progress-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Questions */
.novawquispop1-quiz-questions {
    width: 100%;
}

.novawquispop1-question {
    width: 100%;
    animation: novawquispop1FadeIn 0.3s ease;
}

.novawquispop1-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

/* Answers */
.novawquispop1-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.novawquispop1-answer {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.novawquispop1-answer:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

.novawquispop1-answer.novawquispop1-selected {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    color: #667eea;
}

/* Quiz Result */
.novawquispop1-quiz-result {
    width: 100%;
    animation: novawquispop1FadeIn 0.4s ease;
}

.novawquispop1-result-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.novawquispop1-result-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.novawquispop1-result-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.novawquispop1-result-score {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0;
}

.novawquispop1-restart-button {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.novawquispop1-restart-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Survey Results */
.novawquispop1-survey-summary {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.novawquispop1-rating-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 15px 0;
}

.novawquispop1-rating-value {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.novawquispop1-rating-max {
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

/* Poll Results */
.novawquispop1-poll-summary {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.novawquispop1-vote-list {
    margin-top: 15px;
    text-align: left;
}

.novawquispop1-vote-item {
    padding: 12px 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.novawquispop1-vote-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.novawquispop1-vote-number {
    font-weight: 700;
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.novawquispop1-vote-answer {
    font-weight: 500;
}

/* Template 1 - Clean Minimal */
.novawquispop1-template1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Template 2 - Modern Card */
.novawquispop1-template2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Template 3 - Soft Gradient */
.novawquispop1-template3 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.novawquispop1-template3 .novawquispop1-quiz-title,
.novawquispop1-template3 .novawquispop1-question-text {
    color: #2d3748;
}

.novawquispop1-template3 .novawquispop1-quiz-description,
.novawquispop1-template3 .novawquispop1-progress-text {
    color: #4a5568;
}

/* Template 4 - Classic White */
.novawquispop1-template4 {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.novawquispop1-template4 .novawquispop1-quiz-title,
.novawquispop1-template4 .novawquispop1-question-text {
    color: #1f2937;
}

.novawquispop1-template4 .novawquispop1-quiz-description,
.novawquispop1-template4 .novawquispop1-progress-text {
    color: #6b7280;
}

.novawquispop1-template4 .novawquispop1-progress-bar {
    background: #e5e7eb;
}

.novawquispop1-template4 .novawquispop1-progress-fill {
    background: #667eea;
}

.novawquispop1-template4 .novawquispop1-answer {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.novawquispop1-template4 .novawquispop1-answer:hover {
    background: #f3f4f6;
}

/* Template 5 - Professional Blue */
.novawquispop1-template5 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* Template 6 - Warm Sunset */
.novawquispop1-template6 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

/* Template 7 - Cool Mint */
.novawquispop1-template7 {
    background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
}

/* Template 8 - Dark Mode */
.novawquispop1-template8 {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

/* Template 9 - Light Purple */
.novawquispop1-template9 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

/* Template 10 - Elegant Gray */
.novawquispop1-template10 {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

/* Template 11 - Ocean Blue */
.novawquispop1-template11 {
    background: linear-gradient(135deg, #2e3192 0%, #1bffff 100%);
}

/* Template 12 - Forest Green */
.novawquispop1-template12 {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* Template 13 - Coral Pink */
.novawquispop1-template13 {
    background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
}

.novawquispop1-template13 .novawquispop1-quiz-title,
.novawquispop1-template13 .novawquispop1-question-text {
    color: #4a5568;
}

/* Template 14 - Slate Modern */
.novawquispop1-template14 {
    background: linear-gradient(135deg, #485563 0%, #29323c 100%);
}

/* Template 15 - Amber Warm */
.novawquispop1-template15 {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

/* Template 16 - Teal Fresh */
.novawquispop1-template16 {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Template 17 - Indigo Deep */
.novawquispop1-template17 {
    background: linear-gradient(135deg, #5f72bd 0%, #9b23ea 100%);
}

/* Template 18 - Rose Elegant */
.novawquispop1-template18 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Template 19 - Cyan Bright */
.novawquispop1-template19 {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Template 20 - Neutral Beige */
.novawquispop1-template20 {
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
}

.novawquispop1-template20 .novawquispop1-quiz-title,
.novawquispop1-template20 .novawquispop1-question-text {
    color: #2d3748;
}

.novawquispop1-template20 .novawquispop1-quiz-description,
.novawquispop1-template20 .novawquispop1-progress-text {
    color: #4a5568;
}

.novawquispop1-template20 .novawquispop1-answer {
    background: rgba(45, 55, 72, 0.05);
    border-color: rgba(45, 55, 72, 0.1);
    color: #2d3748;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .novawquispop1-quiz-content {
        padding: 25px 20px;
    }

    .novawquispop1-quiz-title {
        font-size: 22px;
    }

    .novawquispop1-quiz-description {
        font-size: 14px;
    }

    .novawquispop1-question-text {
        font-size: 18px;
    }

    .novawquispop1-answer {
        padding: 12px 16px;
        font-size: 14px;
    }

    .novawquispop1-restart-button {
        padding: 12px 32px;
        font-size: 15px;
    }

    .novawquispop1-rating-value {
        font-size: 42px;
    }

    .novawquispop1-rating-max {
        font-size: 24px;
    }

    .novawquispop1-vote-item {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .novawquispop1-quiz-wrapper {
        margin: 5px;
        max-width: 98vw;
    }

    .novawquispop1-quiz-content {
        padding: 20px 15px;
    }

    .novawquispop1-quiz-title {
        font-size: 20px;
    }

    .novawquispop1-quiz-description {
        font-size: 13px;
    }

    .novawquispop1-question-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .novawquispop1-answer {
        padding: 10px 14px;
        font-size: 13px;
    }

    .novawquispop1-restart-button {
        padding: 10px 24px;
        font-size: 14px;
    }

    .novawquispop1-quiz-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .novawquispop1-quiz-overlay {
        align-items: flex-start;
        padding: 10px 0;
    }

    .novawquispop1-quiz-wrapper {
        margin: 5px auto;
        max-height: none;
        width: 95vw;
        max-width: 600px;
    }

    .novawquispop1-quiz-content {
        padding: 20px;
    }

    .novawquispop1-quiz-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .novawquispop1-question-text {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .novawquispop1-answers {
        gap: 10px;
    }
}

/* Animations */
@keyframes novawquispop1FadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .novawquispop1-quiz-overlay,
    .novawquispop1-quiz-wrapper,
    .novawquispop1-quiz-close,
    .novawquispop1-answer,
    .novawquispop1-restart-button {
        transition: none;
        animation: none;
    }

    .novawquispop1-quiz-wrapper {
        transform: scale(1);
    }

    .novawquispop1-question {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .novawquispop1-quiz-inner {
        border: 3px solid #000;
    }

    .novawquispop1-quiz-close {
        border: 2px solid #000;
    }

    .novawquispop1-answer {
        border-width: 3px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .novawquispop1-template4,
    .novawquispop1-template20 {
        background: #1f2937;
        border-color: #374151;
    }

    .novawquispop1-template4 .novawquispop1-quiz-title,
    .novawquispop1-template4 .novawquispop1-question-text,
    .novawquispop1-template20 .novawquispop1-quiz-title,
    .novawquispop1-template20 .novawquispop1-question-text {
        color: #f9fafb;
    }
}