/* quiz.css — estilos adicionais para quiz-sexo.php */

/* ─── Logo da marca ─── */
.quiz-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.quiz-logo-icon { font-size: 1.8rem; line-height: 1; }

.quiz-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.quiz-logo-text strong { color: #e11d48; }

/* ─── Banner de IA ─── */
.ai-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.ai-banner--compact {
    padding: 12px 14px;
    margin-bottom: 16px;
}

.ai-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.ai-banner-text strong {
    display: block;
    font-size: 0.95rem;
    color: #c4b5fd;
    margin-bottom: 4px;
}

.ai-banner-text p {
    font-size: 0.82rem;
    color: rgba(196,181,253,0.65);
    line-height: 1.5;
    margin: 0;
}

/* ─── Open header logo ─── */
.open-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

/* ─── Divisor de seção nas perguntas abertas ─── */
.open-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 12px;
}

.open-section-divider::before,
.open-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225,29,72,0.3), transparent);
}

.open-section-divider span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fb7185;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.open-section-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0 0 16px;
    text-align: center;
}


.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}

.back-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Progress with label */
.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-container {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* Section badge */
.section-badge-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.section-badge {
    display: inline-block;
    background: rgba(225,29,72,0.12);
    border: 1px solid rgba(225,29,72,0.25);
    color: #fb7185;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
}

/* Welcome Screen */
.welcome-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.anon-badge {
    display: inline-block;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 100px;
}

.welcome-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.anon-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.anon-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.anon-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.anon-row strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
}

.anon-row p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}

.btn-link-back {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 14px;
    transition: color 0.2s;
}

.btn-link-back:hover { color: rgba(255,255,255,0.6); }

/* Question counter */
.question-counter {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 4px;
    font-weight: 500;
}

/* ── Option selected state ── */
.option-btn.selected {
    background: rgba(225,29,72,0.15);
    border-color: rgba(225,29,72,0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(225,29,72,0.15);
}

/* ── Slider input ── */
.slider-wrap {
    margin-top: 16px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.slider-display {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1;
    transition: all 0.2s;
}

.slider-display span {
    background: linear-gradient(135deg, #fff, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

input[type="range"].quiz-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}

input[type="range"].quiz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(225,29,72,0.4);
    transition: all 0.2s;
}

input[type="range"].quiz-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(225,29,72,0.6);
}

.slider-confirm-btn {
    display: block;
    margin: 20px auto 0;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(225,29,72,0.3);
}

.slider-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225,29,72,0.4);
}

/* ── Number input ── */
.number-wrap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.number-input-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.num-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.num-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

input[type="number"].quiz-number {
    width: 100px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

input[type="number"].quiz-number::-webkit-inner-spin-button { display: none; }
input[type="number"].quiz-number:focus { outline: none; border-color: #e11d48; }

.number-confirm-btn {
    background: linear-gradient(135deg, #e11d48, #9f1239);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(225,29,72,0.3);
}

.number-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225,29,72,0.4);
}

/* ── Open fields screen ── */
.open-header {
    text-align: center;
    margin-bottom: 28px;
}

.open-header h2 { margin-bottom: 8px; }
.open-header p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

/* ── Result Screen ── */
.result-emoji {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: flicker 3s infinite;
}

.result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fb7185;
    margin-bottom: 4px;
}

.score-ring {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(225,29,72,0.4);
    background: radial-gradient(circle, rgba(225,29,72,0.1), transparent 70%);
    box-shadow: 0 0 40px rgba(225,29,72,0.2);
    margin: 0 auto;
}

.result-score-box {
    margin: 20px auto 24px;
    text-align: center;
}

.result-breakdown {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.breakdown-label {
    color: rgba(255,255,255,0.5);
    min-width: 120px;
}

.breakdown-bar-wrap {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.breakdown-bar {
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #fb7185);
    border-radius: 10px;
    transition: width 1s ease;
}

.result-share-hint {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin: 0 0 20px;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.result-actions .btn-secondary,
.result-actions .btn-primary {
    flex: 1;
}

@media(max-width: 480px) {
    .result-actions { flex-direction: column; }
    .anon-box { padding: 16px; }
}
