/**
 * Demo Page Styles - Professional Preview Experience
 * Showcases CreativAI capabilities and encourages free trial registration
 */

/* ===== CAPABILITIES PREVIEW SECTION ===== */
.capabilities-preview {
    padding: 100px 0;
    background: #f8fafc;
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 64px 0 48px;
    flex-wrap: wrap;
}

.preview-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-tab:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.preview-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25);
}

.preview-tab i {
    font-size: 18px;
}

.preview-content {
    position: relative;
    min-height: auto;
    overflow: hidden;
    transition: height 0.4s ease;
}

.preview-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    min-height: auto;
}

.preview-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.preview-showcase {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid #e2e8f0;
}

.preview-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.preview-badge {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-description {
    padding: 0 32px 16px;
    color: #64748b;
    font-size: 16px;
    margin: 16px 0;
}

.content-preview {
    position: relative;
    margin: 0 32px 24px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.content-text {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.content-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, #f8fafc);
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    padding: 20px;
}

/* ===== AI CAPABILITIES SHOWCASE ===== */
.ai-capabilities-showcase {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.capabilities-header {
    text-align: center;
    margin-bottom: 32px;
}

.capabilities-header i {
    font-size: 56px;
    color: #0ea5e9;
    margin-bottom: 16px;
    display: block;
}

.capabilities-header h4 {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.capabilities-header p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.capability-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.capability-header i {
    font-size: 20px;
    color: #0ea5e9;
    width: 24px;
    flex-shrink: 0;
}

.capability-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.capability-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-items li {
    background: white;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    border-left: 3px solid #0ea5e9;
    transition: all 0.2s ease;
}

.capability-items li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.capability-items li:last-child {
    margin-bottom: 0;
}

.capabilities-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.capabilities-cta .btn {
    font-size: 16px;
    padding: 16px 32px;
    margin-bottom: 12px;
}

.capabilities-cta .cta-note {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* ===== LEGACY UNLOCK MESSAGE (kept for fallback) ===== */

.unlock-message {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.unlock-message i {
    font-size: 48px;
    color: #0ea5e9;
    margin-bottom: 16px;
}

.unlock-message h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.unlock-message p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
}

.performance-metrics {
    padding: 24px 32px 32px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.performance-metrics h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 8px;
    color: #1e40af;
    font-weight: 500;
    font-size: 14px;
}

.metric-item i {
    color: #0ea5e9;
}

/* ===== DEMO FEATURES SECTION ===== */
.demo-features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .preview-tabs {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .preview-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .preview-description,
    .content-text,
    .performance-metrics {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trial-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-text h2 {
        font-size: 32px;
    }
    
    .cta-text p {
        font-size: 18px;
    }
    
    /* AI Capabilities Showcase Mobile */
    .ai-capabilities-showcase {
        padding: 24px 16px;
        margin: 0 10px;
    }
    
    .capabilities-header i {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .capabilities-header h4 {
        font-size: 24px;
    }
    
    .capabilities-header p {
        font-size: 14px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .capability-card {
        padding: 20px 16px;
    }
    
    .capability-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .capability-header h5 {
        font-size: 14px;
    }
    
    .capability-items li {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .capabilities-cta .btn {
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* ===== RESULTS SHOWCASE SECTION ===== */
.results-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.result-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon i {
    font-size: 24px;
    color: white;
}

.result-metric {
    margin-bottom: 16px;
}

.metric-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.result-example {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #0ea5e9;
}

.result-example strong {
    color: #1e293b;
    font-weight: 600;
}

/* ===== CASE STUDY PREVIEW ===== */
.case-study-preview {
    margin-top: 40px;
}

.case-study-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.case-study-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.case-study-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-intro {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.case-study-metrics .metric {
    text-align: center;
}

.case-study-metrics .metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 4px;
}

.case-study-metrics .metric-desc {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.case-study-quote {
    font-style: italic;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    position: relative;
}

.case-study-quote::before {
    content: '"';
    font-size: 48px;
    font-weight: 700;
    color: #0ea5e9;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

/* ===== UNIFIED TWO-COLUMN LAYOUT FOR ALL CONTENT TYPES ===== */

/* EMAIL LAYOUT - Gmail-like Interface */
.email-layout, .social-layout, .blog-layout {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.email-header, .social-header, .blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.email-description, .social-description, .blog-description {
    padding: 16px 24px;
    color: #64748b;
    font-size: 14px;
    background: #f1f5f9;
    margin: 0;
}

/* Unified Container Layout */
.email-container, .social-container, .blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    min-height: 500px;
}

/* Left Column - Content */
.email-client, .social-client, .blog-client {
    background: white;
    border-right: 1px solid #e2e8f0;
}

/* Right Column - Insights */
.email-insights, .social-insights, .blog-insights {
    background: #f8fafc;
    padding: 20px;
}

/* Unified Toolbar */
.email-toolbar, .social-toolbar, .blog-toolbar {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.email-from, .social-platform, .blog-platform {
    font-weight: 600;
    color: #0ea5e9;
}

/* Content Areas */
.email-body {
    padding: 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #374151;
}

.linkedin-post {
    padding: 20px;
}

.post-header {
    margin-bottom: 16px;
}

.profile-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-details h4 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.profile-details span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.post-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 16px;
}

.post-engagement {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.engagement-actions {
    display: flex;
    gap: 24px;
}

.engagement-actions button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.engagement-actions button:hover {
    background: #f1f5f9;
}

/* Blog Content */
.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.article-body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #374151;
    white-space: pre-line;
}

/* Unified Insights Styling */
.email-insights h4, .social-insights h4, .blog-insights h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
}

.insights-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.insight-item {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #0ea5e9;
    font-size: 13px;
    font-weight: 500;
}

.email-variations h5, .social-variations h5, .blog-variations h5 {
    margin: 20px 0 12px 0;
    color: #1e293b;
    font-size: 14px;
}

.variation-group {
    margin-bottom: 16px;
}

.variation-group strong {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
}

.variation-group ul {
    margin: 0;
    padding-left: 16px;
}

.variation-group li {
    font-size: 12px;
    margin-bottom: 4px;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-container,
    .social-container,
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .email-insights,
    .social-insights,
    .blog-insights {
        order: 2;
        border-right: none;
        border-top: 1px solid #e2e8f0;
    }
}
