/* Main CSS for Oracle of Persistence */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Code blocks */
pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

code {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

/* Article styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.article-content h3 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Database comparison table */
.db-comparison {
    margin: 2rem 0;
}

.db-comparison .feature {
    font-weight: 600;
    color: var(--primary);
}

.db-comparison .postgresql {
    color: #336791;
    font-weight: 600;
}

.db-comparison .mysql {
    color: #00758f;
    font-weight: 600;
}

.db-comparison .oracle {
    color: #f80000;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Print styles */
@media print {
    .nav, footer, .demo-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --dark: #f8f9fa;
        --primary: #3498db;
    }
    
    body {
        background: #121212;
        color: #e0e0e0;
    }
    
    .feature-card, .demo-card {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .nav {
        background: #1e1e1e;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    table {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    th {
        background: #2c3e50;
    }
    
    td {
        border-bottom: 1px solid #333;
    }
    
    pre {
        background: #2c3e50;
        color: #ecf0f1;
    }
}
