/* Site Builder Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #09090b;
    color: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Animated background */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #71717a;
    font-size: 16px;
}

/* Form Card */
.form-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 40px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    color: #71717a;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

/* Form Fields */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: #09090b;
    border: 2px solid #27272a;
    border-radius: 12px;
    color: #fafafa;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:hover,
.form-select:hover {
    border-color: #3f3f46;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.form-input::placeholder {
    color: #52525b;
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select option {
    background: #18181b;
    color: #fafafa;
}

.form-select optgroup {
    color: #71717a;
    font-weight: 600;
}

.form-hint {
    font-size: 12px;
    color: #52525b;
    margin-top: 6px;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    border: none;
    border-radius: 12px;
    color: #09090b;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3);
}

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

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

.submit-btn .btn-icon {
    font-size: 20px;
}

/* Features List */
.features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #71717a;
}

.feature-icon {
    color: #22d3ee;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 3px solid #27272a;
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.loading-status {
    font-size: 14px;
    color: #71717a;
    text-align: center;
    max-width: 300px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding: 24px;
    background: #18181b;
    border-radius: 16px;
    max-width: 360px;
    width: 90%;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #52525b;
    transition: all 0.3s ease;
}

.progress-step.active {
    color: #fafafa;
}

.progress-step.done {
    color: #4ade80;
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #22d3ee;
    color: #09090b;
    animation: pulse-icon 1s ease-in-out infinite;
}

.progress-step.done .step-icon {
    background: #4ade80;
    color: #09090b;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Success Card */
.success-card {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    animation: success-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes success-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-subtitle {
    color: #71717a;
    margin-bottom: 24px;
}

/* ============================
   VALIDATION REPORT STYLES
   ============================ */

.validation-report {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.report-title {
    font-size: 14px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-score {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-score.low {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-score.medium {
    background: linear-gradient(135deg, #f97316, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Score Bar */
.score-bar {
    height: 8px;
    background: #27272a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0%;
}

.score-fill.low {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.score-fill.medium {
    background: linear-gradient(90deg, #f97316, #eab308);
}

/* Report Stats */
.report-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #18181b;
    border-radius: 12px;
    flex: 1;
}

.stat-icon {
    font-size: 16px;
}

.stat.passed .stat-icon { color: #4ade80; }
.stat.warnings .stat-icon { color: #eab308; }
.stat.errors .stat-icon { color: #ef4444; }

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat.passed .stat-value { color: #4ade80; }
.stat.warnings .stat-value { color: #eab308; }
.stat.errors .stat-value { color: #ef4444; }

.stat-label {
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Report Details */
.report-details {
    border-top: 1px solid #27272a;
    padding-top: 16px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.details-section {
    margin-bottom: 16px;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.errors-section h4 { color: #ef4444; }
.warnings-section h4 { color: #eab308; }

.details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-section li {
    font-size: 12px;
    color: #a1a1aa;
    padding: 8px 12px;
    background: #18181b;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid;
}

.errors-section li { border-left-color: #ef4444; }
.warnings-section li { border-left-color: #eab308; }

/* Toggle Details Button */
.toggle-details {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #71717a;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-details:hover {
    border-color: #3f3f46;
    color: #a1a1aa;
}

.toggle-details.active {
    border-color: #22d3ee;
    color: #22d3ee;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.toggle-details.active .toggle-icon {
    transform: rotate(180deg);
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #4ade80;
    border: none;
    border-radius: 12px;
    color: #09090b;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(74, 222, 128, 0.3);
}

.new-site-btn {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: #71717a;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.new-site-btn:hover {
    color: #a1a1aa;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 520px) {
    .form-card {
        padding: 32px 24px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .features {
        gap: 16px;
    }
    
    .feature {
        font-size: 12px;
    }
    
    .report-stats {
        gap: 8px;
    }
    
    .stat {
        padding: 10px 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}
