/* Quiz: jaką jesteś osobą — layout */

.pbn-tool-quiz-jaka-jestes-osoba .pbn-tool-ui {
    max-width: 600px;
    margin: 0 auto;
}

/* Intro */
.qo-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.qo-intro-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.qo-intro-desc {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0 0 1rem;
}

.qo-intro-time {
    font-size: 0.85em;
    opacity: 0.5;
    margin: 0 0 1.5rem;
}

/* Primary button */
.qo-btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: 0;
    border-radius: var(--radius-sm, 4px);
    background: var(--primary-color, #7c3aed);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.qo-btn-primary:hover {
    opacity: 0.85;
}

/* Progress */
.qo-progress {
    margin-bottom: 1.5rem;
    text-align: center;
}

.qo-progress[hidden] {
    display: none;
}

.qo-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.qo-progress-fill {
    height: 100%;
    background: var(--primary-color, #7c3aed);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}

.qo-progress-text {
    font-size: 0.8em;
    opacity: 0.6;
}

/* Steps */
.qo-step {
    padding: 1rem 0;
}

.qo-step[hidden] {
    display: none;
}

.qo-step--active {
    animation: qo-fade-in 0.25s ease;
}

@keyframes qo-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.qo-question {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

/* Options */
.qo-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qo-option {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--border-color, #ddd);
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.95em;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.qo-option:hover {
    border-color: var(--primary-color, #7c3aed);
    background: rgba(124, 58, 237, 0.03);
}

.qo-option:active {
    transform: scale(0.98);
}

.qo-option--selected {
    border-color: var(--primary-color, #7c3aed);
    background: var(--primary-color, #7c3aed);
    color: #fff;
}

/* Back button */
.qo-back-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.qo-back-btn:hover {
    opacity: 1;
}

.qo-back-btn[hidden] {
    display: none;
}

/* Loading */
.qo-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.qo-loading[hidden] {
    display: none;
}

.qo-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 4px solid #eee;
    border-top-color: var(--primary-color, #7c3aed);
    border-radius: 50%;
    animation: qo-spin 0.8s linear infinite;
}

@keyframes qo-spin {
    to { transform: rotate(360deg); }
}

.qo-loading-text {
    font-size: 0.95em;
    opacity: 0.7;
    margin: 0;
}

/* Results */
.qo-results {
    padding: 1.5rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    text-align: center;
}

.qo-results[hidden] {
    display: none;
}

/* Type badge */
.qo-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #7c3aed;
}

.qo-type-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

/* Type label */
.qo-type-label {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.qo-tagline {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0 0 1.25rem;
    font-style: italic;
}

.qo-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    text-align: left;
}

/* Sections */
.qo-section {
    margin-bottom: 1.25rem;
    text-align: left;
}

.qo-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.qo-strengths,
.qo-growth {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.qo-strengths li,
.qo-growth li {
    font-size: 0.9em;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm, 4px);
}

.qo-strengths li {
    background: rgba(22, 163, 74, 0.06);
}

.qo-growth li {
    background: rgba(234, 179, 8, 0.06);
}

/* Restart */
.qo-restart {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.15s;
}

.qo-restart:hover {
    border-color: var(--primary-color, #7c3aed);
}

/* Error */
.qo-error {
    margin: 1rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm, 4px);
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    font-size: 0.9em;
}

.qo-error[hidden] {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .qo-intro-title {
        font-size: 1.2rem;
    }

    .qo-type-badge {
        width: 64px;
        height: 64px;
    }

    .qo-type-emoji {
        font-size: 2rem;
    }

    .qo-type-label {
        font-size: 1.3rem;
    }
}
