/* Quiz: jaki kolor włosów — layout */

.pbn-tool-quiz-kolor-wlosow .pbn-tool-ui {
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.qk-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;
}

.qk-option:hover {
    border-color: var(--primary-color, #e91e63);
    background: rgba(233, 30, 99, 0.03);
}

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

.qk-option--selected {
    border-color: var(--primary-color, #e91e63);
    background: var(--primary-color, #e91e63);
    color: #fff;
}

/* Back button */
.qk-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;
}

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

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

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

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

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

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

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

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

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

/* Season badge */
.qk-season-badge {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Description */
.qk-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Sections */
.qk-section {
    margin-bottom: 1.5rem;
}

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

/* Color grid */
.qk-colors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.qk-color-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.8em;
}

.qk-color-card--avoid {
    opacity: 0.5;
    text-decoration: line-through;
}

.qk-color-swatch {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.qk-color-name {
    font-weight: 500;
    line-height: 1.2;
}

/* Tips */
.qk-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.qk-tip {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.85em;
}

.qk-tip-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.qk-tip p {
    margin: 0.25rem 0 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* Restart */
.qk-restart {
    display: block;
    width: 100%;
    padding: 0.75rem;
    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;
}

.qk-restart:hover {
    border-color: var(--primary-color, #e91e63);
}

/* Error */
.qk-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;
}

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

/* Responsive */
@media (max-width: 600px) {
    .qk-colors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qk-season-badge {
        font-size: 1.5rem;
    }

    .qk-intro-title {
        font-size: 1.2rem;
    }
}
