/**
 * OneClickSEO Onboarding Wizard Styles
 */

/* Reset and base styles */
.oneclickseo-wizard-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Main wizard container */
.oneclickseo-wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 24px;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 12px;
}

.wizard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.wizard-logo .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.wizard-skip {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    opacity: 0.9;
}

.wizard-skip:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}

/* Progress bar */
.wizard-progress {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 12px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-step.active .step-indicator {
    background: #fff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-step.completed .step-indicator {
    background: #10b981;
    color: #fff;
}

.progress-step.completed .step-indicator .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.step-title {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-step.active .step-title {
    color: #fff;
    font-weight: 700;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Content card */
.wizard-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 48px;
}

.step-content h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
}

.step-content .lead {
    margin: 0 0 32px;
    font-size: 16px;
    color: #64748b;
}

/* Welcome step */
.step-welcome {
    text-align: center;
}

.welcome-icon {
    margin-bottom: 24px;
}

.welcome-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #667eea;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.feature-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 4px;
}

.feature-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Form styles */
.wizard-form {
    margin-top: 24px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.large-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.large-input:focus {
    outline: none;
    border-color: #667eea;
}

.input-with-button {
    display: flex;
    gap: 12px;
}

.input-with-button .large-input {
    flex: 1;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.field-status {
    margin-top: 8px;
    font-size: 14px;
}

.field-status.success {
    color: #10b981;
}

.field-status.error {
    color: #ef4444;
}

.field-status.loading {
    color: #667eea;
}

/* Help box */
.help-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 24px;
}

.help-box .dashicons {
    color: #3b82f6;
    flex-shrink: 0;
}

.help-box strong {
    display: block;
    color: #1e40af;
    margin-bottom: 4px;
}

.help-box p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
}

.help-box a {
    color: #1e40af;
    font-weight: 600;
}

/* Post types grid */
.post-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.post-type-option {
    position: relative;
    cursor: pointer;
}

.post-type-option input {
    position: absolute;
    opacity: 0;
}

.post-type-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
}

.post-type-option:hover .option-content {
    background: #f1f5f9;
}

.post-type-option.selected .option-content,
.post-type-option input:checked + .option-content {
    background: #eff6ff;
    border-color: #667eea;
}

.post-type-option .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #64748b;
}

.post-type-option.selected .dashicons,
.post-type-option input:checked + .option-content .dashicons {
    color: #667eea;
}

.option-label {
    font-weight: 600;
    color: #1e293b;
}

.option-count {
    font-size: 12px;
    color: #94a3b8;
}

/* Site types grid */
.site-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.site-type-option {
    position: relative;
    cursor: pointer;
}

.site-type-option input {
    position: absolute;
    opacity: 0;
}

.site-type-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 16px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
}

.site-type-option:hover .option-content {
    background: #f1f5f9;
}

.site-type-option.selected .option-content,
.site-type-option input:checked + .option-content {
    background: #eff6ff;
    border-color: #667eea;
}

.site-type-option .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #64748b;
}

.site-type-option.selected .dashicons,
.site-type-option input:checked + .option-content .dashicons {
    color: #667eea;
}

.option-desc {
    font-size: 13px;
    color: #64748b;
}

/* Features list */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.feature-option:hover {
    background: #f1f5f9;
}

.feature-option.enabled {
    background: #ecfdf5;
}

.feature-info strong {
    display: block;
    color: #1e293b;
    margin-bottom: 2px;
}

.feature-info span {
    font-size: 13px;
    color: #64748b;
}

/* Toggle switch */
.feature-toggle {
    position: relative;
}

.feature-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    display: block;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    position: relative;
    transition: background 0.2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.feature-toggle input:checked + .toggle-slider {
    background: #10b981;
}

.feature-toggle input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

/* Complete step */
.step-complete {
    text-align: center;
}

.complete-icon {
    margin-bottom: 24px;
}

.complete-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #10b981;
}

.next-steps {
    margin: 40px 0;
    text-align: left;
}

.next-steps h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1e293b;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.next-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.next-step-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.next-step-card .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

.next-step-card strong {
    color: #1e293b;
}

.next-step-card span {
    font-size: 13px;
    color: #64748b;
}

/* Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.wizard-navigation.center {
    justify-content: center;
    border-top: none;
}

.btn-back {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #1e293b;
}

.btn-next,
.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .oneclickseo-wizard {
        padding: 20px 16px;
    }

    .wizard-content {
        padding: 32px 24px;
    }

    .step-content h1 {
        font-size: 24px;
    }

    .progress-steps {
        display: none;
    }

    .site-types-grid {
        grid-template-columns: 1fr;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .input-with-button {
        flex-direction: column;
    }
}
