/* ========================================
   LXNotes Blog Post - Enhanced Styles
   Version: 2.0
   Last Updated: January 21, 2026
   ======================================== */

/* ============ CONTENT BASE ============ */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* Hide redundant title if it exists in content */
.blog-content>h1:first-child {
    display: none;
}

/* ============ TYPOGRAPHY - HEADINGS ============ */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f5;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #374151;
}

.blog-content h4 {
    font-size: 1.25rem;
    color: #4b5563;
}

.blog-content h5,
.blog-content h6 {
    font-size: 1.1rem;
    color: #6b7280;
}

/* ============ LISTS ============ */
.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content ul li {
    list-style-type: none;
    position: relative;
}

.blog-content ul li::before {
    content: "▸";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.blog-content ol {
    counter-reset: custom-counter;
}

.blog-content ol li {
    counter-increment: custom-counter;
    list-style: none;
    position: relative;
}

.blog-content ol li::before {
    content: counter(custom-counter) ".";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: -2rem;
}

/* Nested lists */
.blog-content ul ul,
.blog-content ol ul,
.blog-content ul ol,
.blog-content ol ol {
    margin: 0.5rem 0;
    margin-left: 1.5rem;
}

/* ============ BLOCKQUOTES ============ */
.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 8px;
    font-style: italic;
    color: #495057;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(214, 51, 132, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.blog-content blockquote footer,
.blog-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: normal;
}

.blog-content blockquote footer::before,
.blog-content blockquote cite::before {
    content: "— ";
}

/* ============ CODE BLOCKS ============ */
.blog-content code {
    background: #f1f3f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
    border: 1px solid #e9ecef;
}

.blog-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border: none;
    font-size: 0.95rem;
}

/* ============ LINKS ============ */
.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(214, 51, 132, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-content a:hover {
    text-decoration-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration-thickness: 2px;
}

/* ============ TABLES ============ */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-content thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.blog-content tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

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

.blog-content tbody tr:hover {
    background: #f8f9fa;
}

.blog-content tbody tr:nth-child(even) {
    background: #fafbfc;
}

.blog-content tbody tr:nth-child(even):hover {
    background: #f1f3f5;
}

/* ============ HORIZONTAL RULE ============ */
.blog-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
    opacity: 0.3;
}

/* ============ IMAGES ============ */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image with caption */
.blog-content figure {
    margin: 2rem 0;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.75rem;
    padding: 0 1rem;
}

/* ============ DROP CAP ============ */
.blog-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin: 0.1rem 0.25rem 0 0;
    font-weight: 800;
    color: var(--primary-color);
    font-family: Georgia, serif;
}

/* ============ STRONG & EMPHASIS ============ */
.blog-content strong,
.blog-content b {
    color: #111827;
    font-weight: 700;
}

.blog-content em,
.blog-content i {
    color: #374151;
}

/* ============ MARK/HIGHLIGHT ============ */
.blog-content mark {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 152, 0, 0.3) 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    color: inherit;
}

/* ============ SOCIAL SHARE BUTTONS ============ */
.social-share {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: white;
}

.social-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.social-share:hover::before {
    left: 100%;
}

.social-share:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Platform-specific colors */
.btn-outline-primary.social-share {
    background: transparent;
    border: 2px solid;
}

.btn-outline-primary.social-share:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-info.social-share:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

/* ============ SIDEBAR ============ */
.blog-sidebar-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-sidebar-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(214, 51, 132, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-sidebar-image:hover::after {
    opacity: 1;
}

/* ============ FEATURED IMAGE ============ */
.blog-featured-image {
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blog-featured-image img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

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

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

    .blog-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }

    .blog-content blockquote {
        padding: 1rem 1.5rem;
    }

    .blog-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .blog-content table {
        font-size: 0.9rem;
    }

    .blog-content thead th,
    .blog-content tbody td {
        padding: 0.75rem 0.5rem;
    }

    .blog-sidebar-image {
        width: 60px;
        height: 60px;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .blog-content {
        color: #000;
        font-size: 12pt;
    }

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

    .blog-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .social-share {
        display: none;
    }
}
