/* =============================================
   SkillForge — Personalize Claude Wizard
   ============================================= */

.sf-wizard {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress bar */
.sf-progress-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2.5rem;
}

.sf-progress-bar {
    flex: 1;
    height: 8px;
    background: #e8e6f0;
    border-radius: 99px;
    overflow: hidden;
}

.sf-progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}

.sf-progress-label {
    font-size: 15px;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
    min-width: 90px;
    text-align: right;
}

/* Step container */
.sf-step {
    display: none;
}

.sf-step.active {
    display: block;
    animation: sfFadeIn 0.3s ease;
}

@keyframes sfFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-step-inner {
    background: #ffffff;
    border: 1.5px solid #e5e0f5;
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
}

/* Emoji */
.sf-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Question heading */
.sf-question {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1523;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

/* Hint text */
.sf-hint {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0 0 1.8rem;
    line-height: 1.6;
}

/* Text input */
.sf-input {
    width: 100%;
    font-size: 1.15rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e5e0f5;
    border-radius: 12px;
    color: #1a1523;
    background: #faf9fc;
    margin-bottom: 1.2rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sf-input:focus {
    border-color: #7c3aed;
    background: #fff;
}

/* Textarea */
.sf-textarea {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e5e0f5;
    border-radius: 12px;
    color: #1a1523;
    background: #faf9fc;
    margin-bottom: 1.2rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

.sf-textarea:focus {
    border-color: #7c3aed;
    background: #fff;
}

/* Choice buttons */
.sf-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.sf-choice {
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1523;
    background: #faf9fc;
    border: 2px solid #e5e0f5;
    border-radius: 12px;
    padding: 1rem 1.3rem;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    font-family: inherit;
}

.sf-choice:hover {
    border-color: #7c3aed;
    background: #f3f0fd;
    transform: translateX(3px);
}

.sf-choice.selected {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}

/* Next button */
.sf-btn-next {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: #7c3aed;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.sf-btn-next:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.sf-btn-next:active {
    transform: translateY(0);
}

/* Skip button */
.sf-btn-skip {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: color 0.15s;
    font-family: inherit;
    margin-top: 0.3rem;
    text-align: center;
}

.sf-btn-skip:hover {
    color: #6b7280;
}

/* Back button */
.sf-nav-back {
    margin-top: 1rem;
    text-align: center;
}

.sf-btn-back {
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    font-family: inherit;
    padding: 0.5rem 1rem;
}

.sf-btn-back:hover {
    color: #6b7280;
}

/* Output screen */
.sf-output-inner {
    padding-bottom: 2.5rem;
}

.sf-output-box {
    background: #faf9fc;
    border: 2px solid #e5e0f5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.sf-output-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: #f0ecfd;
    border-bottom: 1.5px solid #e5e0f5;
}

.sf-output-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5b21b6;
}

.sf-copy-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7c3aed;
    background: #ffffff;
    border: 1.5px solid #c4b5fd;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.sf-copy-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.sf-output-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #1a1523;
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Installation guide */
.sf-install-guide {
    background: #f8faff;
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
}

.sf-install-guide h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1523;
    margin: 0 0 1.4rem;
}

.sf-install-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.sf-install-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.sf-install-body {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.sf-install-body a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.sf-install-body a:hover {
    text-decoration: underline;
}

.sf-install-note {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #dbeafe;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.6;
}

.sf-install-note a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

.sf-install-note a:hover {
    text-decoration: underline;
}

/* Restart button */
.sf-btn-restart {
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    font-family: inherit;
    padding: 0.5rem 0;
}

.sf-btn-restart:hover {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 600px) {
    .sf-step-inner {
        padding: 1.8rem 1.4rem 1.5rem;
    }
    .sf-question {
        font-size: 1.35rem;
    }
    .sf-install-guide {
        padding: 1.4rem 1.2rem;
    }
}
