/* =====================================================
   HOME SECURE CONNECT — Blog Post Detail Page CSS
   Clean, responsive, no bloat
   ===================================================== */

:root {
    --text-main: #334155;
    --text-muted: #64748b;
    --border-light: rgba(0, 0, 0, 0.08);
}

/* ── HERO ─────────────────────────────────────────── */
.blog-post-hero {
    position: relative;
    padding: 60px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.75) 0%, rgba(17, 42, 70, 0.92) 100%);
    z-index: 1;
}

.blog-post-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.blog-post-cat-badge:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.blog-post-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.blog-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta .meta-item i {
    color: var(--hsc-orange);
}

/* ── CONTENT SECTION ──────────────────────────────── */
.blog-post-content-section {
    padding: 50px 0 80px;
    background: #f8f9fa;
}

/* Breadcrumbs */
.blog-post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.blog-post-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-breadcrumb a:hover {
    color: var(--hsc-blue);
}

.blog-post-breadcrumb .sep {
    color: rgba(0, 0, 0, 0.15);
}

.blog-post-breadcrumb .current {
    color: var(--hsc-dark);
    font-weight: 600;
}

/* Main Card */
.blog-post-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 42px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* ── BODY TYPOGRAPHY ──────────────────────────────── */
.blog-post-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-main);
}

.blog-post-body [id] {
    scroll-margin-top: 100px;
}

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

.blog-post-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.blog-post-body h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
    margin: 1.8rem 0;
    padding: 20px 24px;
    background: #f0f7ff;
    border-left: 4px solid var(--hsc-blue);
    font-style: italic;
    color: var(--hsc-dark);
    border-radius: 0 10px 10px 0;
}

.blog-post-body blockquote strong {
    font-style: normal;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.blog-post-body a {
    color: var(--hsc-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-body a:hover {
    color: var(--hsc-orange);
}

/* ── TABLE OF CONTENTS ────────────────────────────── */
.article-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 2rem;
}

.article-toc h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin: 0 0 14px !important;
}

.article-toc ol {
    margin: 0 !important;
    padding-left: 1.2rem !important;
    counter-reset: toc;
}

.article-toc li {
    margin-bottom: 6px !important;
    font-size: 0.92rem;
}

.article-toc a {
    color: var(--hsc-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.article-toc a:hover {
    text-decoration: underline !important;
}

/* ── QUICK ANSWER BOX ─────────────────────────────── */
.quick-answer-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid rgba(0, 87, 184, 0.15);
    border-left: 5px solid var(--hsc-blue);
    border-radius: 0 12px 12px 0;
    padding: 28px 30px;
    margin-bottom: 2rem;
}

.quick-answer-box h2 {
    font-size: 1.3rem !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: var(--hsc-blue) !important;
}

/* ── KEY TAKEAWAYS BOX ────────────────────────────── */
.key-takeaways-box {
    background: #fffbf0;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-left: 5px solid var(--hsc-orange);
    border-radius: 0 12px 12px 0;
    padding: 28px 30px;
    margin-bottom: 2rem;
}

.key-takeaways-box h2 {
    font-size: 1.3rem !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: var(--hsc-orange) !important;
}

.key-takeaways-box ul {
    margin-bottom: 0 !important;
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
}

/* ── STATS GRID ───────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5rem 0 2rem;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--hsc-blue);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stat-label a {
    font-size: 0.85rem;
}

/* ── INLINE CTA BOX ──────────────────────────────── */
.cta-inline-box {
    background: linear-gradient(135deg, #0d1b2a 0%, #112a46 100%);
    border-radius: 14px;
    padding: 30px;
    margin: 2rem 0;
    text-align: center;
    color: #fff;
}

.cta-inline-box h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #fff !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.cta-inline-box p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    margin-bottom: 18px !important;
}

.cta-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hsc-blue);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cta-inline-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ── SCENARIO BOX ─────────────────────────────────── */
.scenario-box {
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 5px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 2rem 0;
}

.scenario-box h3 {
    font-size: 1.15rem !important;
    margin-top: 0 !important;
    color: #166534 !important;
}

/* ── CHECKLIST BOX ────────────────────────────────── */
.checklist-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 1.5rem 0 2rem;
}

.checklist-box ol {
    margin-bottom: 0 !important;
}

/* ── FAQ SECTION ──────────────────────────────────── */
.faq-section {
    margin-top: 1rem;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item[open] {
    background: #fff;
    border-color: var(--hsc-blue);
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--hsc-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--hsc-blue);
}

.faq-item p {
    padding: 0 20px 16px;
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* ── TLDR BOX ─────────────────────────────────────── */
.tldr-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 1.5rem 0 2rem;
}

/* ── DISCLAIMER ───────────────────────────────────── */
.article-disclaimer {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 2rem !important;
}

/* ── TAGS ─────────────────────────────────────────── */
.tag-pill {
    display: inline-block;
    background: #e2e8f0;
    color: var(--hsc-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: var(--hsc-blue);
    color: #fff;
}

/* ── SIDEBAR ──────────────────────────────────────── */
.blog-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-widget .widget-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

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

.widget-links li {
    border-bottom: 1px solid #f1f5f9;
}

.widget-links li:last-child {
    border: 0;
}

.widget-links li a {
    display: block;
    padding: 10px 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.widget-links li a:hover {
    color: var(--hsc-blue);
    padding-left: 5px;
}

.widget-trending-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.trending-item:hover {
    transform: translateY(-2px);
}

.trending-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-item-info h5 {
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hsc-dark);
    margin: 0 0 3px;
    line-height: 1.35;
}

.trending-item:hover .trending-item-info h5 {
    color: var(--hsc-blue);
}

.trending-item-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Advisor Widget */
.advisor-widget {
    background: linear-gradient(135deg, #0d1b2a, #112a46);
    color: #fff;
    border: 0;
    text-align: center;
}

.advisor-widget-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.avatar-stack {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-stack .av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0d1b2a;
    margin: 0 -5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advisor-widget h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #fff !important;
}

.advisor-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--hsc-blue);
    color: #fff;
    border: 0;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ── PICK CARDS & COMPARISON TABLES ───────────────── */
.wirecutter-pick-card,
.provider-callout-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin: 1.8rem 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.wirecutter-pick-card.adt-pick {
    border-left: 4px solid var(--hsc-blue);
}

.wirecutter-pick-card.vivint-pick {
    border-left: 4px solid var(--hsc-orange);
}

.pick-header {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adt-pick .pick-header {
    background: rgba(0, 86, 179, 0.05);
    color: var(--hsc-blue);
}

.vivint-pick .pick-header {
    background: rgba(249, 115, 22, 0.05);
    color: var(--hsc-orange);
}

.pick-content {
    padding: 24px;
}

.pick-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hsc-dark);
    margin-top: 0 !important;
    margin-bottom: 12px;
}

.pick-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 0;
}

.highlight-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    margin-top: 0 !important;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.comparison-table th {
    background: #f8fafc;
    color: var(--hsc-dark);
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
}

.comparison-table td {
    color: var(--text-main);
}

.comparison-table tr:hover td {
    background: #fafbfc;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991.98px) {
    .blog-post-hero {
        padding: 80px 0;
        min-height: auto;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-post-card {
        padding: 24px;
    }

    .blog-post-sidebar {
        position: static;
        margin-top: 30px;
    }

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

@media (max-width: 767.98px) {
    .blog-post-hero {
        padding: 60px 0;
    }

    .blog-post-title {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    .blog-post-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .blog-post-card {
        padding: 18px;
        border-radius: 12px;
    }

    .blog-post-body {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .blog-post-body h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }

    .blog-post-body h3 {
        font-size: 1.15rem;
    }

    .article-toc {
        padding: 18px 20px;
    }

    .quick-answer-box,
    .key-takeaways-box,
    .scenario-box,
    .checklist-box,
    .tldr-box {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .cta-inline-box {
        padding: 22px;
    }

    .cta-inline-box h3 {
        font-size: 1.1rem !important;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .faq-item p {
        padding: 0 16px 14px;
        font-size: 0.9rem;
    }

    .comparison-table {
        font-size: 0.82rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 10px;
    }

    .blog-post-breadcrumb {
        font-size: 0.78rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-post-hero {
        padding: 50px 0;
    }

    .blog-post-title {
        font-size: 1.3rem;
    }

    .blog-post-card {
        padding: 14px;
    }

    .blog-post-body {
        font-size: 0.93rem;
    }
}

/* ── SOCIAL SHARE BUTTONS ─────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn.twitter {
    background: #000;
}

.share-btn.twitter:hover {
    background: #222;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #0958a7;
}