/* Blog article content styles */

/* Headings */
.article-content h2 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}
.article-content h3 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* Text */
.article-content p {
    margin-bottom: 20px;
}
.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Links */
.article-content a {
    color: #2563eb;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}

/* Inline code — blue text */
.article-content code {
    background-color: #f1f5f9;
    color: #2563eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* Code blocks — matches website CodeBlock component */
.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
}
.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Code blocks with header — matches website CodeBlock component */
.article-content .code-block {
    background-color: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    margin-bottom: 24px;
}
.article-content .code-block .code-header {
    display: flex;
    background-color: #334155;
    padding: 8px 16px;
    border-bottom: 1px solid #475569;
}
.article-content .code-block .code-header span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-content .code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background-color: #1e293b;
    border-radius: 0;
}
.article-content .code-block code {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Syntax highlighting — matches website JavaCodeBlock component */
.article-content .keyword { color: #c792ea; }
.article-content .string { color: #c3e88d; }
.article-content .comment { color: #676e95; }
.article-content .annotation { color: #ffcb6b; }
.article-content .type { color: #82aaff; }
.article-content .method { color: #82aaff; }
.article-content .number { color: #f78c6c; }
.article-content .operator { color: #89ddff; }

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 20px;
    margin: 24px 0;
    color: #4b5563;
    font-style: italic;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 16px;
}
.article-content thead {
    background-color: #1e293b;
    color: #ffffff;
}
.article-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.article-content tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.article-content tbody tr:hover {
    background-color: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h2 { font-size: 22px; }
    .article-content h3 { font-size: 18px; }
    .article-content pre { font-size: 13px; }
}
