/* ============================================
   ENHANCED BLOG POST STYLES
   ============================================ */

.blog-post-article {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Styles */
.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-category {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item svg {
    opacity: 0.6;
}

/* Featured Image */
.blog-post-featured-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Excerpt */
.blog-post-excerpt {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 24px;
    margin: 40px 0;
    border-radius: 8px;
}

.blog-post-excerpt p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
}

.table-of-contents h4 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    color: #333;
    font-weight: 700;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-subitem {
    margin-left: 20px;
    margin-bottom: 6px;
}

.toc-nav a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc-nav a:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* Blog Content */
.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Paragraphs */
.blog-paragraph {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #2c3e50;
}

/* Headings in Content */
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    scroll-margin-top: 100px;
}

.blog-post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
}

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

/* Heading Anchors */
.heading-anchor {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.heading-link-icon {
    opacity: 0;
    margin-left: 8px;
    transition: opacity 0.3s ease;
}

.heading-anchor:hover .heading-link-icon {
    opacity: 0.5;
}

/* Lists */
.enhanced-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.enhanced-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.enhanced-list ul,
.enhanced-list ol {
    margin-top: 0.75rem;
}

/* Code Blocks */
.code-block {
    position: relative;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-copy-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
}

/* Inline Code */
.blog-post-content code:not(pre code) {
    background: #f4f4f4;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Blockquotes */
.enhanced-blockquote {
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    padding: 20px 24px;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.enhanced-blockquote p:last-child {
    margin-bottom: 0;
}

/* Images in Content */
.blog-image-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.blog-image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-image-figure figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.enhanced-table thead {
    background: #667eea;
    color: white;
}

.enhanced-table th,
.enhanced-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.enhanced-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.enhanced-table tbody tr:hover {
    background: #f8f9fa;
}

.enhanced-table tbody tr:last-child td {
    border-bottom: none;
}

/* Links */
.blog-post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Strong and Emphasis */
.blog-post-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.blog-post-content em {
    font-style: italic;
}

/* Footer */
.blog-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.post-tags svg {
    opacity: 0.6;
}

.post-tags .tag {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.post-share-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.post-share-prompt p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        gap: 16px;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
    }

    .blog-post-content h3 {
        font-size: 1.25rem;
    }

    .code-block {
        padding: 16px;
        margin: 1.5rem -20px;
        border-radius: 0;
    }

    .table-wrapper {
        margin: 1.5rem -20px;
        border-radius: 0;
    }

    .blog-paragraph {
        text-align: left;
    }
}

/* Print Styles */
@media print {
    .blog-post-featured-image,
    .table-of-contents,
    .post-share-prompt,
    .code-copy-btn {
        display: none;
    }

    .blog-post-article {
        max-width: 100%;
    }

    .blog-post-content a {
        color: #000;
        text-decoration: underline;
    }
}