/* Starter WP Demo Tool - Frontend Styles */

.swpdt-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Form Section */
.swpdt-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease-in;
}

.swpdt-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.swpdt-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.swpdt-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.swpdt-form-group {
    margin-bottom: 24px;
}

.swpdt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.swpdt-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.swpdt-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.swpdt-input.error {
    border-color: #dc3545;
}

.swpdt-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.swpdt-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.swpdt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.swpdt-submit-btn:active {
    transform: translateY(0);
}

.swpdt-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.swpdt-disclaimer {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 16px;
}

/* Loading Section */
.swpdt-loading-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease-in;
}

.swpdt-loading-header {
    text-align: center;
    margin-bottom: 32px;
}

.swpdt-loading-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.swpdt-loading-steps {
    margin-bottom: 32px;
}

.swpdt-step {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.swpdt-step.active {
    opacity: 1;
    background: #e8eeff;
    transform: scale(1.02);
}

.swpdt-step-icon {
    font-size: 24px;
    margin-right: 16px;
}

.swpdt-step-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.swpdt-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.swpdt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0;
    transition: width 0.5s ease;
}

/* Result Section */
.swpdt-result-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease-out;
}

.swpdt-result-header {
    margin-bottom: 24px;
}

.swpdt-result-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.swpdt-result-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.swpdt-result-content {
    margin-bottom: 32px;
}

.swpdt-result-section {
    margin-bottom: 28px;
}

.swpdt-result-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #667eea;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.swpdt-result-text {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.swpdt-impact-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
}

.swpdt-action-items {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.swpdt-action-items ul {
    margin: 0;
    padding-left: 20px;
}

.swpdt-action-items li {
    margin-bottom: 8px;
}

.swpdt-result-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.swpdt-cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.swpdt-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.swpdt-cta-secondary {
    font-size: 14px;
    color: #888;
    margin-top: 16px;
}

.swpdt-reset-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #667eea;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.swpdt-reset-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Error Message */
.swpdt-error-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

.swpdt-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.swpdt-error-text {
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .swpdt-container {
        padding: 15px;
    }

    .swpdt-form-wrapper,
    .swpdt-loading-wrapper,
    .swpdt-result-wrapper,
    .swpdt-error-message {
        padding: 24px;
    }

    .swpdt-title {
        font-size: 24px;
    }

    .swpdt-result-title {
        font-size: 22px;
    }
}
