/* ==========================================================================
   Ultra-Modern Tech Blog Details Styling
   ========================================================================== */

.blog-detail-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding-top: 140px;
    padding-bottom: 60px;
}

.article-main-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 15px 40px -15px rgba(15, 23, 42, 0.05);
}

.article-hero-cover {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(111, 179, 73, 0.2);
    margin-bottom: 40px;
}

/* Executive Architecture Takeaway Callout */
.article-lead {
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    border-left: 5px solid #6fb349 !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    font-size: 15.5px !important;
    line-height: 26px !important;
    color: #14532d !important;
    font-weight: 500 !important;
    box-shadow: 0 6px 20px -5px rgba(111, 179, 73, 0.12) !important;
    margin-bottom: 35px !important;
}

.article-lead strong {
    color: #15803d !important;
    font-weight: 800 !important;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 45px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 35px;
    margin-bottom: 16px;
}

.article-body p {
    font-size: 16px;
    line-height: 28px;
    color: #475569 !important;
    margin-bottom: 22px;
}

.article-body ul.ul-list {
    margin-bottom: 28px;
    padding-left: 20px;
}

.article-body ul.ul-list li {
    font-size: 15.5px;
    line-height: 26px;
    color: #334155;
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
}

.article-body ul.ul-list li::before {
    content: '✦';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
    font-size: 13px;
}

/* Key Metrics Strip */
.blog-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 35px 0;
}

.blog-metric-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.blog-metric-box:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    background: #ffffff;
}

.blog-metric-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 4px;
}

.blog-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mac-Style IDE Code Window */
.code-window-frame {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    margin: 32px 0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.code-window-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mac-controls {
    display: flex;
    gap: 7px;
}

.mac-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.code-lang-tag {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.code-window-body {
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13.5px;
    line-height: 22px;
    color: #e2e8f0;
    overflow-x: auto;
}

/* Modern Benchmark Tables */
.modern-table-card {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    margin: 32px 0;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.modern-table-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #e2e8f0;
}

.modern-table-card thead th {
    background: #1e293b;
    color: #6fb349;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
}

.modern-table-card tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.modern-table-card tbody tr.winner-row {
    background: rgba(111, 179, 73, 0.12);
    border-left: 3px solid var(--primary-color);
}

.modern-table-card tbody tr.winner-row td {
    color: #ffffff;
    font-weight: 700;
}

/* Author Bio Card */
.author-bio-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 20px !important;
    padding: 28px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4) !important;
    margin-top: 50px !important;
}

.author-bio-card .author-avatar-img {
    width: 75px !important;
    height: 75px !important;
    min-width: 75px !important;
    border-radius: 50% !important;
    border: 2.5px solid #6fb349 !important;
    box-shadow: 0 0 0 3px rgba(111, 179, 73, 0.25) !important;
    background: #1e293b !important;
}

.author-bio-card h5 {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.author-bio-card .author-role-tag {
    color: #86cb5e !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.author-bio-card p.bio-text {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    margin-bottom: 0 !important;
}

/* Sticky Sidebar Components */
.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-widget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

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

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li a {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.toc-list li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.toc-list li a i {
    font-size: 10px;
    color: var(--primary-color);
}

.sidebar-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid rgba(111, 179, 73, 0.3);
    border-radius: 20px;
    padding: 30px 24px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Related Technical Deep-Dives Cards */
.related-blog-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.related-blog-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12) !important;
    border-color: #cbd5e1 !important;
}

.related-blog-card .related-img-wrap {
    border-radius: 14px !important;
    overflow: hidden !important;
    height: 180px !important;
    margin-bottom: 16px !important;
    display: block !important;
}

.related-blog-card .related-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.related-blog-card:hover .related-img-wrap img {
    transform: scale(1.05) !important;
}

.related-blog-card .related-meta-strip {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

.related-blog-card h5 {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    flex: 1 !important;
}

.related-blog-card h5 a {
    color: #0f172a !important;
    transition: color 0.2s ease !important;
}

.related-blog-card h5 a:hover {
    color: var(--primary-color) !important;
}

.related-blog-card .related-footer-strip {
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    font-size: 12.5px !important;
}

@media (max-width: 991px) {
    .article-main-container { padding: 28px 20px; }
    .blog-metrics-strip { grid-template-columns: 1fr; gap: 12px; }
    .blog-sidebar-sticky { position: static; margin-top: 40px; }
    .author-bio-card { flex-direction: column; text-align: center; gap: 14px; }
}