/* ============================================
   Blog Post Display Styles
   Professional markdown content rendering
   ============================================ */

.blog-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

/* Article Header */
.article-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
}

.article-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
}

.metadata-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-name {
    font-weight: 600;
    color: #f8fafc;
}

.publish-date {
    color: #94a3b8;
}

.metadata-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Featured Image */
.featured-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
}

/* Article Content - Main Styling */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 0.75rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* Typography - Headings */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #f8fafc;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #fbbf24;
}

.article-content h4 {
    font-size: 1.25rem;
}

.article-content h5 {
    font-size: 1.125rem;
}

.article-content h6 {
    font-size: 1rem;
    color: #94a3b8;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Strong and Emphasis */
.article-content strong {
    font-weight: 700;
    color: #fbbf24;
}

.article-content em {
    font-style: italic;
    color: #fcd34d;
}

/* Links */
.article-content a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s;
}

.article-content a:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

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

.article-content li::marker {
    color: #fbbf24;
}

/* Nested Lists */
.article-content ul ul,
.article-content ol ol {
    margin: 0.5rem 0;
}

/* Code */
.article-content code {
    background: rgba(15, 23, 42, 0.8);
    color: #fcd34d;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Code Blocks */
.article-content pre {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #fbbf24;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
    font-style: italic;
    color: #cbd5e1;
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* Horizontal Rules */
.article-content hr {
    border: none;
    border-top: 2px solid rgba(245, 158, 11, 0.3);
    margin: 2.5rem 0;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content thead {
    background: rgba(245, 158, 11, 0.2);
}

.article-content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #fbbf24;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* Editor Preview Styles (matches article-content) */
.preview-content {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 0.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.preview-content h1,
.preview-content h2,
.preview-content h3,
.preview-content h4,
.preview-content h5,
.preview-content h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #f8fafc;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.preview-content h1 { font-size: 2rem; border-bottom: 2px solid rgba(245, 158, 11, 0.3); padding-bottom: 0.5rem; }
.preview-content h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(245, 158, 11, 0.2); padding-bottom: 0.5rem; }
.preview-content h3 { font-size: 1.5rem; color: #fbbf24; }
.preview-content h4 { font-size: 1.25rem; }
.preview-content h5 { font-size: 1.125rem; }
.preview-content h6 { font-size: 1rem; color: #94a3b8; }

.preview-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.preview-content strong { font-weight: 700; color: #fbbf24; }
.preview-content em { font-style: italic; color: #fcd34d; }

.preview-content a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

.preview-content a:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
}

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

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

.preview-content code {
    background: rgba(15, 23, 42, 0.8);
    color: #fcd34d;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.preview-content pre {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.preview-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
}

.preview-content blockquote {
    border-left: 4px solid #fbbf24;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #cbd5e1;
}

/* Related Posts */
.related-posts {
    max-width: 900px;
    margin: 3rem auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.875rem;
    color: #f8fafc;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Back Navigation */
.back-navigation {
    max-width: 900px;
    margin: 2rem auto 0;
    text-align: center;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    max-width: 600px;
    margin: 4rem auto;
}

.error-state .mud-icon-root {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.875rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content h1 { font-size: 1.875rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }
    
    .article-metadata {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .metadata-left {
        flex-direction: column;
    }
}
