/* ================================
   Preview Page Styles
   ================================ */

.preview-page {
    min-height: 100vh;
    background: var(--gray-50);
}

.preview-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.preview-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-header-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.preview-header-right {
    display: flex;
    gap: 0.75rem;
}

.device-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--rounded);
    padding: 0.25rem;
}

.device-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--rounded-sm);
    transition: var(--transition);
}

.device-btn:hover {
    color: var(--gray-700);
}

.device-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.preview-frame-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.preview-frame {
    background: var(--white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: width 0.3s ease;
}

.preview-frame.desktop {
    width: 100%;
    max-width: 1200px;
}

.preview-frame.tablet {
    width: 768px;
}

.preview-frame.mobile {
    width: 375px;
}

.preview-frame iframe {
    width: 100%;
    height: calc(100vh - 140px);
    border: none;
}

/* Preview Website Styles */
.preview-website {
    font-family: var(--preview-font-body, 'Inter', sans-serif);
    color: var(--preview-text, #374151);
    line-height: 1.6;
}

.preview-header-bar {
    background: var(--preview-primary, #3b82f6);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-logo {
    font-family: var(--preview-font-heading, 'Inter', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.preview-nav {
    display: flex;
    gap: 2rem;
}

.preview-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.preview-nav a:hover {
    opacity: 1;
}

.preview-hero {
    background: linear-gradient(135deg, var(--preview-primary, #3b82f6) 0%, var(--preview-secondary, #10b981) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.preview-hero h1 {
    font-family: var(--preview-font-heading, 'Inter', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.preview-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.preview-cta {
    display: inline-block;
    background: var(--preview-accent, #f59e0b);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--rounded);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.preview-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-section-alt {
    background: var(--gray-50);
}

.preview-section h2 {
    font-family: var(--preview-font-heading, 'Inter', sans-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--preview-primary, #3b82f6);
    margin-bottom: 1.5rem;
    text-align: center;
}

.preview-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.preview-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.preview-service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.preview-service-icon {
    width: 64px;
    height: 64px;
    background: var(--preview-primary, #3b82f6);
    border-radius: var(--rounded);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-service-icon svg {
    color: white;
}

.preview-service-card h3 {
    font-family: var(--preview-font-heading, 'Inter', sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.preview-service-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.preview-gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.preview-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.preview-gallery-item:hover img {
    transform: scale(1.05);
}

.preview-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.preview-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
}

.preview-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--preview-secondary, #10b981);
    border-radius: var(--rounded);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-contact-icon svg {
    color: white;
}

.preview-contact-info h4 {
    font-family: var(--preview-font-heading, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.preview-contact-info p {
    font-size: 1rem;
    color: var(--gray-800);
    margin: 0;
    text-align: left;
}

.preview-footer {
    background: var(--gray-900);
    color: white;
    padding: 2rem;
    text-align: center;
}

.preview-footer p {
    color: var(--gray-400);
    margin: 0;
}

/* Mobile Preview Adjustments */
@media (max-width: 768px) {
    .preview-header-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .preview-nav {
        gap: 1rem;
    }
    
    .preview-hero {
        padding: 3rem 1rem;
    }
    
    .preview-hero h1 {
        font-size: 1.75rem;
    }
    
    .preview-hero p {
        font-size: 1rem;
    }
    
    .preview-section {
        padding: 2.5rem 1rem;
    }
    
    .preview-section h2 {
        font-size: 1.5rem;
    }
    
    .preview-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preview-contact {
        grid-template-columns: 1fr;
    }
}
