/* Enhanced Sections CSS for Landing Page */

/* Interactive Demo Section */
.interactive-demo {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    border-top: 1px solid #e2e8f0;
}

.demo-subtitle {
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.demo-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.demo-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.demo-controls {
    display: flex;
    gap: 8px;
}

.demo-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.demo-btn:hover {
    background: #0056b3;
}

.demo-theme-selector {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

#demo-markdown {
    width: 100%;
    height: 400px;
    border: none;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    outline: none;
    background: #fafafa;
}

.demo-preview {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
    background: white;
}

.demo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.demo-cta {
    text-align: center;
    margin-top: 40px;
}

.demo-note {
    margin-top: 16px;
    color: #6c757d;
    font-size: 14px;
}

/* Features Showcase Section */
.features-showcase {
    padding: 80px 0;
    background: white;
}

.feature-demos {
    margin-top: 60px;
}

.feature-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-demo.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-demo.reverse .feature-visual {
    order: 2;
}

.feature-demo.reverse .feature-content {
    order: 1;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-width: 400px;
    width: 100%;
}

.mockup-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.color-palette {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-dot.yellow { background: #ffeb3b; }
.color-dot.green { background: #4caf50; }
.color-dot.blue { background: #2196f3; }
.color-dot.pink { background: #e91e63; }

.color-dot.active {
    border-color: #2c3e50;
}

.mockup-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.highlight {
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.highlight.yellow { background: #ffeb3b; color: #333; }
.highlight.green { background: #4caf50; color: white; }
.highlight.blue { background: #2196f3; color: white; }
.highlight.pink { background: #e91e63; color: white; }

/* Focus Demo Styles */
.focus-transition {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.normal-view, .focus-view {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.toolbar {
    background: #f8fafc;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.content-area, .focus-content {
    padding: 16px;
}

.content {
    background: #fafafa;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.content.expanded {
    background: #e3f2fd;
    font-weight: 500;
}

.focus-ribbon {
    background: #007bff;
    color: white;
    padding: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
}

.focus-arrow {
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
}

/* Export Demo Styles */
.export-demo {
    padding: 20px;
    text-align: center;
}

.export-source {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.source-header {
    font-weight: 600;
    font-size: 12px;
    color: #007bff;
    margin-bottom: 12px;
}

.source-content h1 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.source-content p {
    font-size: 12px;
    margin: 4px 0;
    color: #6c757d;
}

.source-content code {
    background: #e3f2fd;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
}

.export-arrows {
    margin: 16px 0;
}

.arrow {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 8px;
}

.export-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.export-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.format-icon {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #007bff;
    border: 1px solid #bbdefb;
}

.feature-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-benefits {
    list-style: none;
    padding: 0;
}

.feature-benefits li {
    padding: 8px 0;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.feature-benefits li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #007bff;
    border-radius: 50%;
    margin-right: 12px;
}

/* Comparison Table Section */
.comparison-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f5e8 100%);
}

.comparison-subtitle {
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.comparison-table th {
    background: #2c3e50;
    color: white;
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table th.feature-column {
    background: #34495e;
    text-align: left;
    width: 200px;
}

.comparison-table th.our-product {
    background: #007bff;
    position: relative;
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-icon {
    font-size: 20px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
}

.product-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.feature-name {
    background: #f8fafc;
    font-weight: 600;
}

.feature-name strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
}

.feature-name small {
    color: #6c757d;
    font-weight: normal;
}

.our-feature {
    background: #e3f2fd;
    text-align: center;
    border-left: 3px solid #007bff;
}

.competitor-feature {
    text-align: center;
    color: #6c757d;
}

.our-feature strong {
    color: #007bff;
    display: block;
    margin: 4px 0;
}

.our-feature small,
.competitor-feature small {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.check {
    color: #28a745;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.cross {
    color: #dc3545;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.partial {
    color: #ffc107;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.comparison-cta {
    text-align: center;
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-cta h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.comparison-cta p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
}

/* Button Styles */
.btn-primary.large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    background: #007bff;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary.large:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-demo {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-demo.reverse .feature-visual,
    .feature-demo.reverse .feature-content {
        order: unset;
    }
    
    .focus-transition {
        flex-direction: column;
        gap: 16px;
    }
    
    .export-formats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .comparison-table-container {
        margin: 20px -20px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .product-header {
        gap: 4px;
    }
    
    .product-icon {
        font-size: 16px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .interactive-demo,
    .features-showcase,
    .comparison-section {
        padding: 40px 0;
    }
    
    #demo-markdown {
        height: 300px;
        font-size: 12px;
    }
    
    .demo-preview {
        height: 300px;
    }
    
    .feature-mockup {
        max-width: 300px;
    }
    
    .comparison-table {
        min-width: 600px;
    }
}
