/* Website Preview Section - Brand Customizer - Premium Design */
.website-preview-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.website-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.website-preview-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.website-preview-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.website-preview-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.website-preview-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Website Preview Container */
.website-preview-container {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.website-preview-frame {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.website-preview-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15), 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Preview Navbar */
.preview-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 32px;
    position: relative;
    z-index: 10;
}

.preview-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    min-width: 0;
}

.preview-logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px;
}

.preview-logo {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.preview-logo-placeholder {
    width: 120px;
    height: 40px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #9ca3af;
    border-radius: 6px;
    font-weight: 500;
}

.preview-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.preview-nav-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
    padding: 4px 0;
    position: relative;
}

.preview-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #f093fb, #ff6b35, #f5576c, #667eea);
    transition: width 0.3s ease;
}

.preview-nav-link:hover {
    color: var(--text-color);
}

.preview-nav-link:hover::after {
    width: 100%;
}

.preview-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.preview-btn-secondary {
    padding: 10px 18px;
    background: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.preview-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.preview-btn-primary {
    padding: 10px 18px;
    background: #a855f7;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.preview-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Preview Hero */
.preview-hero {
    position: relative;
    min-height: 450px;
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
                url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?w=1200&h=800&fit=crop') center/cover;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 50px;
    overflow: hidden;
}

.preview-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 30%) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.preview-hero-overlay {
    display: none;
}

.preview-hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.preview-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #a855f7;
    letter-spacing: -0.03em;
    /* font-family: 'Georgia', 'Times New Roman', serif; */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.preview-hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-hero-btn {
    padding: 16px 36px;
    background: #a855f7;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-hero-btn:hover {
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Customizer Form */
.website-customizer {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.website-customizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #f093fb, #ff6b35, #f5576c, #667eea);
}

.customizer-form {
    display: flex;
    flex-direction: column;
    gap: 36px;
    flex: 1;
}

.customizer-field {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.customizer-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.customizer-label i {
    color: #a855f7;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.customizer-input {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-color);
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.customizer-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
    background: #fafafa;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #a855f7;
    background: #fafafa;
    transform: translateY(-1px);
}

.file-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.file-upload-name {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.color-picker {
    width: 70px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.3s ease;
}

.color-picker:hover {
    border-color: #a855f7;
    transform: scale(1.05);
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-hex-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-color);
    background: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.color-hex-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
    background: #fafafa;
}

/* Clear All Button */
.clear-all-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #a855f7 0%, #f093fb 100%);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.clear-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #9333ea 0%, #e879f9 100%);
}

.clear-all-btn:active {
    transform: translateY(0);
}

.clear-all-btn i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .website-preview-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .website-preview-container {
        position: relative;
        top: 0;
    }
    
    .website-preview-title {
        font-size: 36px;
    }
    
    .preview-nav-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .preview-nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .preview-nav-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .website-preview-section {
        padding: 80px 0;
    }
    
    .website-preview-header {
        margin-bottom: 50px;
    }
    
    .website-preview-title {
        font-size: 32px;
    }
    
    .website-preview-subtitle {
        font-size: 16px;
    }
    
    .website-customizer {
        padding: 32px;
    }
    
    .preview-hero {
        min-height: 350px;
        padding: 50px 30px;
    }
    
    .preview-hero-title {
        font-size: 36px;
    }
    
    .preview-hero-subtitle {
        font-size: 17px;
    }
    
    .preview-navbar {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .website-preview-section {
        padding: 60px 0;
    }
    
    .website-preview-title {
        font-size: 28px;
    }
    
    .website-customizer {
        padding: 24px;
    }
    
    .customizer-form {
        gap: 28px;
    }
    
    .preview-hero {
        min-height: 300px;
        padding: 40px 24px;
    }
    
    .preview-hero-title {
        font-size: 28px;
    }
    
    .preview-hero-subtitle {
        font-size: 15px;
    }
    
    .preview-navbar {
        padding: 14px 20px;
    }
    
    .preview-nav-content {
        gap: 12px;
    }
    
    .preview-nav-links {
        gap: 12px;
    }
    
    .preview-btn-secondary,
    .preview-btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }
}
