/* Onboarding Specific Styles */

.onboard-main {
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.onboard-container {
    max-width: 64rem;
    margin: 0 auto;
}

/* Progress Header */
.onboard-header {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .header-top {
        flex-direction: row;
    }
}

.onboard-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 1024px) {
    .onboard-title {
        font-size: 2.5rem;
        text-align: left;
    }
}

.step-indicator {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 9999px;
    transition: width 0.5s ease;
    width: 25%;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.step-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.step-item.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: var(--primary-blue);
}

.step-item.completed .step-icon {
    background: var(--primary-green);
}

.step-icon svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.step-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .step-content {
        display: none;
    }
}

/* Step Content Card */
.step-content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.card-header {
    padding: 2rem 2rem 0;
    text-align: center;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.card-content {
    padding: 2rem;
}

/* Form Styles */
.step-form {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.step-form.active {
    display: block;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Avatar Customization */
.avatar-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.current-avatar {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.avatar-option.active {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.avatar-option img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-option span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Voice & Personality */
.form-section {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.option-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .option-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.option-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.option-card.active {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.option-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.option-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Completion Step */
.completion-content {
    text-align: center;
}

.completion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-green), #059669);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.completion-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.completion-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.completion-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.profile-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 28rem;
    margin: 0 auto;
}

.profile-summary h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    font-weight: 500;
    text-transform: capitalize;
}

/* Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

.step-navigation .btn {
    min-width: 7rem;
}

.step-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-navigation .btn:disabled:hover {
    transform: none;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .onboard-main {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .card-header,
    .card-content,
    .step-navigation {
        padding: 1.5rem;
    }
    
    .onboard-title {
        font-size: 1.75rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .current-avatar {
        width: 6rem;
        height: 6rem;
    }
    
    .avatar-option img {
        width: 3rem;
        height: 3rem;
    }
    
    .completion-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .completion-icon svg {
        width: 2rem;
        height: 2rem;
    }
}