/**
 * Setup Wizard Styles
 */

/* Wrapper */
.sstack-wizard-wrapper {
    background: #f0f0f1;
    min-height: 100vh;
    padding: 40px 20px;
}

.sstack-wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.sstack-wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sstack-wizard-logo h1 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.sstack-wizard-logo p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.sstack-wizard-exit {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.sstack-wizard-exit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Progress Bar */
.sstack-wizard-progress {
    padding: 20px 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #e1e4e8;
}

.sstack-progress-bar {
    height: 8px;
    background: #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sstack-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.sstack-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Content */
.sstack-wizard-content {
    padding: 40px;
}

.sstack-wizard-step h2 {
    margin: 0 0 15px;
    font-size: 26px;
    color: #23282d;
}

.sstack-wizard-step > p {
    margin: 0 0 30px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Welcome Step */
.sstack-step-welcome {
    text-align: center;
}

.sstack-welcome-icon {
    font-size: 80px;
    line-height: 1.4;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sstack-welcome-intro {
    max-width: 600px;
    margin: 0 auto 40px;
}

.sstack-welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.sstack-feature-box {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.sstack-feature-icon {
    font-size: 40px;
    line-height: 1.4;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.sstack-feature-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.sstack-feature-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Form Fields */
.sstack-form-field {
    margin-bottom: 25px;
}

.sstack-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #23282d;
}

.sstack-form-field .required {
    color: #dc3232;
}

.sstack-form-field input[type="text"],
.sstack-form-field input[type="url"],
.sstack-form-field input[type="number"],
.sstack-form-field select {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sstack-form-field .description {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Test Connection Result */
.sstack-test-connection {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.sstack-test-connection.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sstack-test-connection.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Sync Step */
.sstack-sync-container {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sstack-sync-icon {
    font-size: 60px;
    line-height: 1.4;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sstack-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#sstack-sync-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
}

#sstack-sync-result .result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

#sstack-sync-result .stat-item {
    text-align: center;
}

#sstack-sync-result .stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #155724;
}

#sstack-sync-result .stat-label {
    font-size: 14px;
    color: #666;
}

/* Done Step */
.sstack-step-done {
    text-align: center;
}

.sstack-done-icon {
    font-size: 80px;
    line-height: 1.4;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sstack-done-stats {
    margin: 30px 0;
}

.sstack-stat-box {
    display: inline-block;
    padding: 30px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.sstack-stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sstack-stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.sstack-done-section {
    text-align: left;
    margin: 40px 0;
}

.sstack-done-section h3 {
    margin: 0 0 20px;
    font-size: 22px;
    text-align: center;
}

.sstack-next-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sstack-next-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.step-content p {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
}

.step-content ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.step-content ul li {
    padding: 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.step-content ul li strong {
    color: #667eea;
}

.step-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

.sstack-shortcode {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    color: #23282d;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

.sstack-done-help {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e4e8;
}

.sstack-done-help p {
    margin: 0;
    line-height: 1.8;
}

.sstack-done-help a {
    color: #667eea;
    text-decoration: none;
}

.sstack-done-help a:hover {
    text-decoration: underline;
}

/* Actions */
.sstack-wizard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.sstack-wizard-actions .button-hero {
    padding: 12px 30px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .sstack-wizard-wrapper {
        padding: 20px 10px;
    }
    
    .sstack-wizard-content {
        padding: 30px 20px;
    }
    
    .sstack-welcome-features {
        grid-template-columns: 1fr;
    }
    
    .sstack-wizard-actions {
        flex-direction: column;
    }
    
    .sstack-wizard-actions .button {
        width: 100%;
    }
}

/* ============================================================
   Wizard utility classes
   (moved from admin/setup-wizard.php inline styles)
   ============================================================ */

/* Section headings inside wizard steps (Display Settings, SEO Settings) */
.sstack-wizard-section-heading {
    margin-top: 0;
    font-size: 18px;
    color: #667eea;
}

.sstack-wizard-section-heading--spaced {
    margin-top: 30px;
    font-size: 18px;
    color: #667eea;
}

/* Warning callout within wizard (SEO recommendation box) */
.sstack-wizard-warning {
    background: #fff9e6;
    padding: 12px;
    border-left: 4px solid #f39c12;
    margin-bottom: 20px;
}

/* "Strongly Recommended" / required label */
.sstack-required-label {
    color: #d63638;
    font-weight: bold;
}

/* Inline Pro note badge in done step */
.sstack-wizard-pro-note {
    font-size: 11px;
    background: #f0a500;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
}
