/* Small Language Model Blog Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px
}

/* Article pages have narrower container */
.container.article-page {
    max-width: 800px;
}

/* Header Styles */
header {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

header p {
    font-size: 1rem;
    font-style: italic;
    color: #eee;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav a:hover {
    text-decoration: underline;
}

/* Blog Post Styles (for blog listing page) */
.blog-post {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.post-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #667eea;
    color: white;
}

/* Article Styles (for individual article pages) */
.article {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.article-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.article-content h3 {
    color: #444;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content table {
    margin: 1rem auto;
}

.article-content table td {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
}

.article-content table th {
    font-size: 1rem;
    font-weight: 400;
    padding: 0.2rem 0.5rem;
}

.article-content table .rotated {
    transform: rotate(-90deg);
    white-space: nowrap;
}

.article-content table th.label{
    font-weight: 400;
    font-size: 1.2rem;
}

.article-content table th.label-h {
    border-bottom: 1px solid #ccc;
}

.article-content table .label-v {
    border-right: 1px solid #ccc;
}

/* Code Block Styles */
.code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    line-height: 1.5;
}

.caption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.code-block pre {
    margin: 0;
}

/* Blog listing page has simpler code blocks */
.blog-post .code-block {
    background-color: #f1f3f4;
    border: 1px solid #e1e3e4;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

/* Highlight and Info Boxes */
.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border-left: 4px solid #ffc107;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: #856404;
}

.note-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 5px solid #17a2b8;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.placeholder-content {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.back-to-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .article {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.9rem;
    }
}