/**
 * Single Post Page Styles
 * Loaded only on single posts
 */

/* Typography Enhancement with Inter font */
.single-post article h1,
.single-post article h2,
.single-post article h3,
.single-post article h4,
.single-post article h5,
.single-post article h6,
.blog article h1,
.blog article h2,
.blog article h3,
.blog article h4,
.blog article h5,
.blog article h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    color: #111;
}

.single-post article h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.single-post article h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post article h3 {
    font-size: 1.375rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
}

/* Article Layout */
.single-post .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

/* Enhanced Blockquotes */
.single-post .entry-content blockquote {
    border-left: 4px solid #0073aa;
    padding-left: 24px;
    margin: 2rem 0;
    font-style: italic;
    color: #444;
}

.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.single-post .entry-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.single-post .entry-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.single-post .entry-content pre code {
    background: none;
    padding: 0;
}

/* Image Captions */
.single-post .entry-content figure.wp-block-image figcaption.wp-element-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* Tables */
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-post .entry-content th,
.single-post .entry-content td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.single-post .entry-content th {
    font-weight: 600;
    background: #f8f9fa;
}

/* Lists Enhancement */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

/* Article Meta */
.single-post .entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.single-post .entry-meta .posted-on,
.single-post .entry-meta .byline {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tags */
.single-post .tags-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.single-post .tags-links a {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8125rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background .2s;
}

.single-post .tags-links a:hover {
    background: #e0e0e0;
}

/* Remove bottom margins for Astra containers */
#primary,
#primary .site-main,
#primary .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post article h1 {
        font-size: 1.875rem;
    }
    
    .single-post article h2 {
        font-size: 1.5rem;
    }
    
    .single-post .entry-content {
        font-size: 1rem;
    }
    
    .single-post .entry-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}
