/* ========================================
   DIAGNÓSTICO QUIZ - FStech Design System
   Auto-Diagnostic Tool Styles
   ======================================== */

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.quiz-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 3rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.progress-count {
    font-size: 0.9rem;
    color: var(--tech-accent, #00f2fe);
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-accent, #00f2fe), #4facfe);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Card (Question Container) */
.quiz-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-accent, #00f2fe), #4facfe);
}

/* Question */
.question {
    display: none;
    animation: fadeIn 0.4s ease;
}

.question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--tech-accent, #00f2fe);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    position: relative;
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.answer-label {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.answer-option input[type="radio"]:checked + .answer-label {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--tech-accent, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.answer-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.answer-option input[type="radio"]:checked + .answer-label .answer-radio {
    border-color: var(--tech-accent, #00f2fe);
    background: var(--tech-accent, #00f2fe);
}

.answer-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.answer-option input[type="radio"]:checked + .answer-label .answer-radio::after {
    opacity: 1;
    transform: scale(1);
}

.answer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.answer-option input[type="radio"]:checked + .answer-label .answer-text {
    color: #fff;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.quiz-btn-back:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.quiz-btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-btn-next {
    background: linear-gradient(135deg, var(--tech-accent, #00f2fe), #4facfe);
    border: none;
    color: #000;
}

.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.quiz-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Start Screen */
.quiz-start {
    text-align: center;
    padding: 3rem 2rem;
}

.quiz-start-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.1));
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 254, 0.3);
}

.quiz-start-icon i {
    font-size: 2.5rem;
    color: var(--tech-accent, #00f2fe);
}

.quiz-start h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.quiz-start p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.quiz-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.quiz-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.quiz-benefit i {
    color: var(--tech-accent, #00f2fe);
}

/* Results Screen */
.quiz-results {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.quiz-results.active {
    display: block;
}

.result-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
}

.result-icon.stage-caos {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 50, 50, 0.1));
    border: 2px solid rgba(255, 100, 100, 0.4);
    color: #ff6464;
}

.result-icon.stage-dashboards {
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.2), rgba(255, 180, 0, 0.1));
    border: 2px solid rgba(255, 200, 50, 0.4);
    color: #ffc832;
}

.result-icon.stage-fragmentada {
    background: linear-gradient(135deg, rgba(255, 150, 50, 0.2), rgba(255, 120, 0, 0.1));
    border: 2px solid rgba(255, 150, 50, 0.4);
    color: #ff9632;
}

.result-stage {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.result-stage.stage-caos {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.result-stage.stage-dashboards {
    background: rgba(255, 200, 50, 0.15);
    color: #ffc832;
    border: 1px solid rgba(255, 200, 50, 0.3);
}

.result-stage.stage-fragmentada {
    background: rgba(255, 150, 50, 0.15);
    color: #ff9632;
    border: 1px solid rgba(255, 150, 50, 0.3);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.result-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* Result Details */
.result-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.result-details h3 {
    font-size: 1.1rem;
    color: var(--tech-accent, #00f2fe);
    margin-bottom: 1rem;
}

.result-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-details li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.result-details li:last-child {
    border-bottom: none;
}

.result-details li i {
    color: var(--tech-accent, #00f2fe);
    margin-top: 0.2rem;
}

/* Result CTA */
.result-cta {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(79, 172, 254, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.result-cta h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.result-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .tech-button {
    min-width: 200px;
}

/* Restart Button */
.quiz-restart {
    margin-top: 2rem;
}

.quiz-restart button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quiz-restart button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Score Meter */
.score-meter {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.score-bar {
    height: 12px;
    background: linear-gradient(90deg, #ff6464 0%, #ffc832 50%, #00f2fe 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 0.75rem;
}

.score-marker {
    position: absolute;
    top: -8px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
    }

    .quiz-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .quiz-header h1 {
        font-size: 1.8rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .answer-label {
        padding: 1rem 1.25rem;
    }

    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .quiz-btn {
        width: 100%;
        justify-content: center;
    }

    .quiz-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .result-title {
        font-size: 1.6rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .tech-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }

    .quiz-header p {
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .quiz-start-icon {
        width: 80px;
        height: 80px;
    }

    .quiz-start-icon i {
        font-size: 2rem;
    }

    .result-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .result-details {
        padding: 1.5rem;
    }

    .result-cta {
        padding: 1.5rem;
    }
}
