/* ============================================================
   QUESTIONÁRIO PERSONALIDADE
   ============================================================ */

.pq-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 120px;
    min-height: 100vh;
}

/* ----- Welcome ----- */
.pq-welcome {
    text-align: center;
    padding: 48px 0 0;
}

.pq-welcome-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.pq-welcome h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 2.35rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    line-height: 1.2;
}

.pq-welcome p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.pq-welcome .pq-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 20px 0 32px;
    line-height: 1.6;
    font-style: italic;
}

/* ----- Progress ----- */
.pq-progress {
    margin-bottom: 20px;
}

.pq-progress-track {
    height: 3px;
    border-radius: 2px;
    background: var(--surface-light);
    overflow: hidden;
}

.pq-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #EC4899, var(--accent));
    transition: width 0.4s ease;
}

.pq-progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ----- Question ----- */
.pq-question-header {
    text-align: center;
    margin-bottom: 22px;
}

.pq-question-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.pq-question-header .pq-instruction {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ----- Ranking List ----- */
.pq-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    -webkit-user-select: none;
    user-select: none;
}

.pq-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    transition: all 0.2s ease;
    cursor: grab;
    touch-action: none;
}

.pq-rank-item:active {
    cursor: grabbing;
}

.pq-rank-item.dragging {
    opacity: 0.5;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
}

.pq-rank-item.drag-over {
    border-color: var(--accent);
    transform: scale(1.01);
}

.pq-rank-pos {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.pq-rank-pos.pos-1 {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
}

.pq-rank-pos.pos-2 {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: #fff;
}

.pq-rank-pos.pos-3 {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
}

.pq-rank-pos.pos-rest {
    background: var(--surface-light);
    color: var(--text-muted);
}

.pq-rank-text {
    flex: 1;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pq-rank-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.pq-arrow-btn {
    width: 28px;
    height: 22px;
    border: 1px solid var(--surface-light);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    font-family: var(--font-body);
}

.pq-arrow-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pq-arrow-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ----- Points badge ----- */
.pq-rank-pts {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.pq-rank-pts.pts-high {
    color: #F59E0B;
}

/* ----- Nav Buttons ----- */
.pq-nav {
    display: flex;
    gap: 12px;
}

.pq-btn-prev, .pq-btn-next, .pq-btn-result {
    flex: 1;
    padding: 13px 20px;
    border-radius: 28px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
    line-height: 1.2;
}

.pq-btn-prev {
    border: 1px solid var(--surface-light);
    background: var(--surface);
    color: var(--text-secondary);
}

.pq-btn-prev:disabled {
    opacity: 0.4;
    cursor: default;
}

.pq-btn-next {
    border: none;
    background: var(--accent);
    color: #fff;
}

.pq-btn-result {
    border: none;
    background: linear-gradient(135deg, #EC4899, var(--accent));
    color: #fff;
}

.pq-btn-result:hover, .pq-btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.pq-btn-start {
    border: none;
    background: linear-gradient(135deg, #EC4899, var(--accent));
    color: #fff;
    display: block;
    width: fit-content;
    min-width: 240px;
    max-width: 100%;
    margin: 12px auto 0;
    font-size: 1.12rem;
    font-weight: 600;
    padding: 18px 48px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    line-height: 1.2;
    transition: all 0.2s;
    white-space: nowrap;
}

/* ============================================================
   RESULTADO
   ============================================================ */

.pq-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.pq-result-header .pq-result-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.pq-result-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.pq-result-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Personality cards */
.pq-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pq-result-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--surface-light);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
}

.pq-result-card.top-1 {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.pq-result-card.top-2 {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.03);
}

.pq-result-card.top-3 {
    border-color: rgba(236, 72, 153, 0.2);
    background: rgba(236, 72, 153, 0.02);
}

.pq-result-rank {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pq-result-rank.rank-1 {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
}

.pq-result-rank.rank-2 {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: #fff;
}

.pq-result-rank.rank-3 {
    background: rgba(236, 72, 153, 0.2);
    color: #EC4899;
}

.pq-result-rank.rank-rest {
    background: var(--surface-light);
    color: var(--text-muted);
}

.pq-result-info {
    flex: 1;
}

.pq-result-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.pq-result-chakra {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pq-result-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pq-result-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.pq-result-bar-wrap {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

.pq-result-bar-track {
    height: 5px;
    border-radius: 3px;
    background: var(--surface-light);
    overflow: hidden;
    margin-bottom: 3px;
}

.pq-result-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.pq-result-bar-label {
    font-size: 0.68rem;
    font-weight: 700;
}

/* Caveat / disclaimer */
.pq-caveat {
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
}

.pq-caveat p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.pq-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Bottom actions */
.pq-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (max-width: 500px) {
    .pq-rank-item {
        padding: 12px 10px;
    }

    .pq-rank-text {
        font-size: 0.78rem;
    }

    .pq-result-bar-wrap {
        width: 60px;
    }
}
