
/* ============================================
   ARTICLE CONTAINER
   ============================================ */
.blog-post-article {
    background-color: #ffffff;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-container {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0071CE;
}

.breadcrumb-separator {
    color: #d1d5db;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}

/* ============================================
   ARTICLE HEADER
   ============================================ */
.post-header {
    padding: 2rem 0 1.5rem;
    background-color: #ffffff;
}

.container-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-category {
    margin-bottom: 1rem;
}

.category-link {
    text-decoration: none;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s;
}

.category-badge:hover {
    transform: translateY(-1px);
}

.category-hardware {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-software {
    background-color: #d1fae5;
    color: #065f46;
}

.category-embedded {
    background-color: #fef3c7;
    color: #92400e;
}

/* ============================================
   POST TITLE
   ============================================ */
.post-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

/* ============================================
   POST META
   ============================================ */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.meta-icon {
    color: #9ca3af;
}

.author-link {
    color: #0071CE;
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    text-decoration: underline;
}

/* ============================================
   SHARE BUTTONS (HEADER)
   ============================================ */
.post-share-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: #0071CE;
    color: #0071CE;
    transform: translateY(-2px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #10b981;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ============================================
   FEATURED IMAGE
   ============================================ */
.post-featured-image {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.featured-image-wrapper {
    margin: 0;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.post-content {
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.content-main {
    max-width: none;
}

/* Typography */
.content-main h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.content-main h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 1rem;
    line-height: 1.4;
    scroll-margin-top: 100px;
}

.content-main h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 0 0.75rem;
}

.content-main p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1f2937;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Lists */
.content-main ul,
.content-main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.content-main li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 0.5rem;
}

.content-main li strong {
    color: #111827;
    font-weight: 600;
}

/* Images */
.content-image {
    margin: 2rem 0;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.content-image-wide {
    margin: 2.5rem -1.5rem;
}

.content-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin: 2rem 0;
    border-left: 4px solid;
    border-radius: 6px;
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.callout-content p {
    margin: 0;
    font-size: 0.9375rem;
}

.callout-tip {
    background-color: #f0f9ff;
    border-color: #0284c7;
}

.callout-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.callout-info {
    background-color: #f3f4f6;
    border-color: #6b7280;
}

.callout-success {
    background-color: #d1fae5;
    border-color: #10b981;
}

/* ============================================
   CODE BLOCKS
   ============================================ */
.code-block {
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1f2937;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #111827;
    border-bottom: 1px solid #374151;
}

.code-language,
.code-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
}

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

/* ============================================
   TAGS
   ============================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: #f3f4f6;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* ============================================
   SHARE BOTTOM
   ============================================ */
.post-share-bottom {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.post-share-bottom h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem;
}

.post-share-bottom .share-buttons {
    justify-content: center;
}

.post-share-bottom .share-btn {
    width: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
}

.post-share-bottom .share-btn span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}

/* Table of Contents */
.table-of-contents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.toc-link:hover {
    color: #0071CE;
    border-left-color: #0071CE;
    background-color: #ffffff;
}

.toc-link.active {
    color: #0071CE;
    font-weight: 600;
    border-left-color: #0071CE;
}

/* Related Posts Sidebar */
.related-posts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateX(4px);
}

.related-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 0.25rem;
}

.related-post-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #0071CE, #005AA3);
    color: #ffffff;
    border: none;
}

.newsletter-section .sidebar-heading {
    color: #ffffff;
}

.newsletter-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    color: #0071CE;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.newsletter-privacy {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RELATED POSTS SECTION
   ============================================ */
.related-posts-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.related-post {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-post:hover {
    border-color: #0071CE;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-link {
    text-decoration: none;
    display: block;
}

.related-post-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-body {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-post-excerpt {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.related-post-readtime {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
    .post-title {
        font-size: 3rem;
    }

    .content-main h2 {
        font-size: 2.25rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr 300px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .container-article {
        padding: 0 2rem;
    }

    .content-image-wide {
        margin-left: 0;
        margin-right: 0;
    }

    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print */
@media print {
    .breadcrumb-container,
    .post-share-header,
    .post-share-bottom,
    .content-sidebar,
    .related-posts-section,
    .cta-section,
    .footer,
    .whatsapp-float,
    .navbar {
        display: none;
    }

    .content-main {
        max-width: 100%;
    }
}

/* ============================================
   FIX ARTICLE CONTENT RESPONSIVENESS
   (NO HEADER / NO GLOBAL IMPACT)
   ============================================ */

/* Prevent grid overflow */
.content-main {
    min-width: 0;
}

/* Fix wide images on mobile */
@media (max-width: 767px) {
    .content-image-wide {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Stack sidebar properly on mobile & tablet */
@media (max-width: 1023px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }

    .content-main {
        order: 1;
    }
}

/* Normalize container widths (critical) */
@media (min-width: 1024px) {
    .post-header .container-article,
    .post-featured-image .container-article {
        max-width: 1200px;
    }
}

/* ============================================
   FIX DESKTOP CONTENT WIDTH ISSUE
   ============================================ */

@media (min-width: 1024px) {

    /* Make article header, content & featured image align */
    .container-article {
        max-width: 1200px;
    }

    /* Ensure content grid fills container */
    .content-layout {
        width: 100%;
        max-width: 1200px;
    }

    /* Prevent content shrinking */
    .content-main {
        min-width: 0;
    }
}


