/* Quiz Pro - Frontend Styles v3.0 */
.qpro-quiz {
    max-width: 700px;
    margin: 20px auto;
    background: var(--qpro-bg, #fff);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--qpro-text, #333);
}

.qpro-header {
    text-align: center;
    margin-bottom: 25px;
}

.qpro-quiz-image {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--qpro-primary);
}

.qpro-title {
    color: var(--qpro-primary);
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.qpro-desc {
    color: #666;
    margin: 0;
}

/* Timer */
.qpro-timer {
    text-align: center;
    background: linear-gradient(135deg, var(--qpro-primary), var(--qpro-secondary));
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.qpro-timer.warning {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Progress Bar */
.qpro-progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.qpro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--qpro-primary), var(--qpro-secondary));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Steps - CRITICAL */
.qpro-step {
    display: none !important;
    animation: fadeIn 0.4s ease;
}

.qpro-step.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Start Screen */
.qpro-start-content {
    text-align: center;
    padding: 40px 20px;
}

.qpro-quiz-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.qpro-quiz-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.qpro-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--qpro-primary), var(--qpro-secondary));
    color: var(--qpro-btn-text, #fff);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.qpro-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qpro-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qpro-start-btn {
    width: auto;
    padding: 18px 50px;
    display: inline-block;
    font-size: 1.2rem;
}

/* Question */
.qpro-question {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.qpro-question-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.qpro-question-number {
    text-align: center;
    color: var(--qpro-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Name Input Step */
.qpro-step-name {
    text-align: center;
    padding: 30px 20px;
}

.qpro-name-input {
    max-width: 350px;
    margin: 0 auto 20px;
}

/* Gender Buttons */
.qpro-gender-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.qpro-gender-btn {
    padding: 25px 45px;
    background: #fff;
    border: 3px solid var(--qpro-border, #ddd);
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qpro-gender-btn .gender-icon {
    font-size: 2.5rem;
}

.qpro-gender-btn .gender-text {
    font-weight: 600;
    color: var(--qpro-text);
}

.qpro-gender-btn:hover {
    border-color: var(--qpro-primary);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-3px);
}

.qpro-gender-btn.selected {
    border-color: var(--qpro-primary);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(157, 77, 221, 0.15));
}

/* Input */
.qpro-input {
    width: 100%;
    padding: 18px;
    border: 3px solid var(--qpro-border, #ddd);
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
}

.qpro-input:focus {
    outline: none;
    border-color: var(--qpro-primary);
}

/* Options */
.qpro-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.qpro-option {
    padding: 18px 22px;
    background: #fff;
    border: 3px solid var(--qpro-border, #ddd);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qpro-option:hover:not(.disabled) {
    border-color: var(--qpro-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qpro-option.selected {
    border-color: var(--qpro-primary);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(157, 77, 221, 0.08));
}

.qpro-option.correct {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.15) !important;
}

.qpro-option.incorrect {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.15) !important;
}

.qpro-option.disabled {
    cursor: default;
    opacity: 0.8;
}

.qpro-option-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.qpro-option-text {
    flex: 1;
    font-size: 1.05rem;
}

.qpro-option-indicator {
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.qpro-option.selected .qpro-option-indicator {
    border-color: var(--qpro-primary);
    background: var(--qpro-primary);
    color: #fff;
}

.qpro-option.correct .qpro-option-indicator {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.qpro-option.incorrect .qpro-option-indicator {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Explanation */
.qpro-explanation {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    padding: 18px 22px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid var(--qpro-secondary);
    line-height: 1.6;
}

/* Results */
.qpro-result-card {
    text-align: center;
    padding: 20px 0;
}

.qpro-result-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.qpro-result-title {
    color: var(--qpro-primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* Score Display */
.qpro-score-display {
    margin: 25px 0;
}

.qpro-score-circle {
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--qpro-primary), var(--qpro-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.qpro-score-text {
    font-size: 1.1rem;
    color: #666;
}

.qpro-score-text.pass {
    color: #28a745;
    font-weight: 600;
}

.qpro-score-text.fail {
    color: #dc3545;
}

/* Result Message */
.qpro-result-message {
    background: linear-gradient(135deg, #fff5f8, #fef0ff);
    padding: 22px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
    line-height: 1.7;
    border-left: 4px solid var(--qpro-secondary);
}

/* Share Section - Enhanced with labels */
.qpro-share-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.qpro-share-section h4 {
    margin: 0 0 15px;
    color: var(--qpro-text);
}

.qpro-share-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Share Buttons - Icons Only */
.qpro-share {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
}

.qpro-share svg {
    width: 24px;
    height: 24px;
}

.qpro-share:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.qpro-share.facebook {
    background: #1877f2;
}

.qpro-share.twitter {
    background: #1da1f2;
}

.qpro-share.whatsapp {
    background: #25d366;
}

.qpro-share.copy {
    background: linear-gradient(135deg, var(--qpro-primary), var(--qpro-secondary));
}

/* Restart */
.qpro-restart {
    background: transparent;
    border: 3px solid var(--qpro-primary);
    color: var(--qpro-primary);
    margin-top: 15px;
}

.qpro-restart:hover {
    background: var(--qpro-primary);
    color: #fff;
}

/* Footer */
.qpro-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 0.8rem;
    color: #999;
}

/* Error */
.qpro-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #fff5f5;
    border-radius: 12px;
}

/* Confetti */
.qpro-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: confettiDrop 3s ease-out forwards;
}

@keyframes confettiDrop {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .qpro-quiz {
        padding: 18px;
        border-radius: 15px;
        margin: 10px;
    }

    .qpro-title {
        font-size: 1.35rem;
    }

    .qpro-question {
        font-size: 1.1rem;
    }

    .qpro-quiz-info {
        flex-direction: column;
        gap: 10px;
    }

    .qpro-gender-options {
        flex-direction: column;
        gap: 12px;
    }

    .qpro-gender-btn {
        padding: 18px 30px;
        flex-direction: row;
    }

    .qpro-option {
        padding: 14px 15px;
    }

    .qpro-score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.6rem;
    }

    .qpro-share-btns {
        flex-direction: column;
        gap: 10px;
    }

    .qpro-share {
        justify-content: center;
        width: 100%;
    }

    .qpro-start-btn {
        width: 100%;
    }
}