/* Article Styles */

/* Layout */
.article-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.7;
}

.article-footer {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 2rem 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Navigation */
.home-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.home-link:hover {
    color: #4f46e5;
}

/* Article Header */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 0.5rem;
    line-height: 1.2;
}

.article-date {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: #374151;
    font-size: 1.125rem;
    margin: 1rem 0;
}

/* Links */
a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover {
    color: #4f46e5;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    color: #374151;
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #e5e7eb;
    background-color: #f9fafb;
    font-style: italic;
}

blockquote p {
    margin: 0;
    color: #6b7280;
}

/* Code */
code {
    background-color: #f3f4f6;
    color: #db2777;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

pre {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    color: #374151;
    padding: 0;
    font-size: 0.875rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

td {
    color: #374151;
}

/* Horizontal Rule */
hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 2rem 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header,
    .article-content,
    .article-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    p, li {
        font-size: 1rem;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
    
    pre {
        padding: 0.75rem;
        border-radius: 0.25rem;
    }
    
    pre code {
        font-size: 0.8rem;
    }
}
