/* ======================================================
   POST.CSS - PREMIUM SINGLE POST STYLES (5 BATCHES)
   ====================================================== */

/* ==========================================
   BATCH 1: BASE, LAYOUT & HERO SECTION
============================================= */

/* --- CSS Variables for Post --- */
:root {
    --post-primary: #4361ee;
    --post-secondary: #3f37c9;
    --post-bg: #ffffff;
    --post-text: #333333;
    --post-text-light: #6c757d;
    --post-border: #e9ecef;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 15px 35px rgba(67, 97, 238, 0.15);
}

/* --- Base Setup & Accessibility --- */
html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--post-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* --- Reading Progress Bar --- */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
    width: 0%;
    z-index: 9999;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
    transition: width 0.1s ease-out;
}

/* --- Post Layout Grid --- */
.single-post-container {
    max-width: 1100px;
    margin: 100px auto 40px; /* Offset for fixed navbar */
    padding: 0 5%;
}

.post-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Left Sidebar, Right Content */
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.post-layout > * {
    min-width: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--post-text-light);
}
.breadcrumb a {
    color: var(--post-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--post-secondary);
    text-decoration: underline;
}
.breadcrumb-separator {
    font-size: 0.7rem;
    color: #adb5bd;
}
.current-page {
    color: var(--post-text);
}

/* --- Hero Section --- */
.post-hero {
    text-align: center;
    margin-bottom: 40px;
}

.category-badge {
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    color: var(--post-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.post-title {
    font-family: 'Baloo 2', cursive;
    font-size: 3rem;
    font-weight: 800;
    color: var(--post-text);
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--post-text-light);
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* --- Meta Data (Author & Date) --- */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--post-text-light);
    font-weight: 600;
    margin-bottom: 25px;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--post-text);
}
.meta-dot {
    color: #ced4da;
}

/* --- Hero Share Buttons --- */
.hero-share {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}
.share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.social-fb { background: #1877F2; color: white; }
.social-x { background: #000000; color: white; }
.copy-link { background: #f8f9fa; color: #333; border: 1px solid #dee2e6; }

/* --- 3D Banner Image --- */
.post-banner {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    position: relative;
    background: #f8f9fa; /* Placeholder color before load */
    border: 4px solid white;
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9; /* Perfect wide banner ratio */
    transition: transform 0.4s ease;
}
.post-banner:hover .banner-img {
    transform: scale(1.02); /* Subtle zoom effect */
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--post-text-light);
    font-size: 0.85rem;
    font-weight: 600;
}
.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid var(--post-text-light);
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--post-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ==========================================
   BATCH 2: ARTICLE TYPOGRAPHY, STICKY TOC & IMAGES
============================================= */

/* --- Sticky Sidebar (Table of Contents) --- */
.post-sidebar {
    position: sticky;
    top: 100px; /* Offset for fixed header */
    height: max-content;
    z-index: 10;
}

.toc-container {
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.toc-container h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.25rem;
    color: var(--post-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--post-border);
}

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

.sticky-toc li {
    margin-bottom: 12px;
}
.sticky-toc li:last-child {
    margin-bottom: 0;
}

.sticky-toc a {
    text-decoration: none;
    color: var(--post-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.sticky-toc a:hover, 
.sticky-toc a.active {
    color: var(--post-primary);
    border-left-color: var(--post-primary);
    background: rgba(67, 97, 238, 0.05);
    border-radius: 0 4px 4px 0;
}

/* --- Main Article Typography --- */
.post-content {
    font-family: 'Nunito', sans-serif;
    color: var(--post-text);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 100%;
    min-width: 0;
}

.post-content h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    color: var(--post-text);
    margin: 40px 0 20px;
    scroll-margin-top: 100px; /* Prevents header from hiding the title when clicking TOC */
}

.post-content h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    color: var(--post-text);
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 24px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content a {
    color: var(--post-primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--post-primary);
}

.post-content ul, 
.post-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
    max-width: 100%;
}

.post-content li {
    margin-bottom: 10px;
}

/* --- Post Illustrations (Pixar Style Image Cards) --- */
.post-illustration {
    margin: 35px 0;
    text-align: center;
}

.post-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    border: 3px solid white;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.post-illustration img:hover {
    transform: translateY(-5px);
}

.post-illustration figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--post-text-light);
    font-style: italic;
    font-weight: 600;
}

/* ==========================================
   BATCH 3: CUSTOM BOXES, TIMELINE & TABLES
============================================= */

/* --- Custom Content Boxes (Info, Warning, Tip, Takeaways) --- */
.custom-box {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    align-items: flex-start;
    max-width: 100%;
    min-width: 0;
}
.box-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.custom-box strong {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--post-text);
}
.custom-box p, .custom-box ul {
    margin: 0;
    font-size: 1rem;
}

/* Box Variations */
.info-box {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--post-primary);
}
.takeaways-box {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
}
.warning-box {
    background: rgba(247, 37, 133, 0.05);
    border-left: 4px solid #f72585;
}
.tip-box {
    background: rgba(114, 9, 183, 0.05);
    border-left: 4px solid #7209b7;
}

/* --- Blockquote --- */
.custom-quote {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    color: var(--post-primary);
    background: #f8f9fa;
    padding: 25px 30px;
    border-left: 5px solid var(--post-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 35px 0;
    position: relative;
}
.custom-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
    font-size: 4rem;
    color: rgba(67, 97, 238, 0.1);
}

/* --- Checklist Box --- */
.checklist-box {
    background: #ffffff;
    border: 1px solid var(--post-border);
    box-shadow: var(--shadow-soft);
    display: block; /* Overriding flex from .custom-box */
}
.checklist-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Baloo 2', cursive;
    border-bottom: 1px solid var(--post-border);
    padding-bottom: 10px;
}
.custom-checklist {
    list-style: none !important;
    padding-left: 0 !important;
}
.custom-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* --- Timeline Section --- */
.custom-timeline {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 40px 0;
    position: relative;
}
.custom-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(67, 97, 238, 0.1);
    z-index: 1;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--post-primary);
    color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}
.timeline-step h4 {
    font-family: 'Baloo 2', cursive;
    margin: 0 0 5px;
    font-size: 1.1rem;
}
.timeline-step p {
    font-size: 0.85rem;
    color: var(--post-text-light);
    margin: 0;
}

/* --- Comparison Table --- */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
    min-width: 600px;
}
.comparison-table th, 
.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--post-border);
}
.comparison-table th {
    background: var(--post-primary);
    color: white;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(67, 97, 238, 0.02);
}

/* ==========================================
   BATCH 4: FUNNEL, FAQ & ENGAGEMENT SECTION
============================================= */

/* --- Inline Tool CTA (Inside Article) --- */
.inline-tool-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(67, 97, 238, 0.05);
    border: 2px dashed var(--post-primary);
    padding: 25px 30px;
    border-radius: var(--radius-md);
    margin: 40px 0;
    gap: 20px;
}
.inline-tool-cta.bg-gradient {
    background: linear-gradient(135deg, rgba(67,97,238,0.1), rgba(76,201,240,0.1));
    border: none;
}
.cta-text h3 {
    margin: 0 0 5px 0 !important;
    font-size: 1.4rem;
}
.cta-text p {
    margin: 0 !important;
    color: var(--post-text-light);
    font-size: 0.95rem;
}
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--post-primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.btn-primary:hover {
    background: var(--post-secondary);
    transform: translateY(-2px);
    border-bottom: none !important;
}
.btn-secondary {
    background: #ffffff;
    color: var(--post-primary) !important;
    border: 2px solid var(--post-primary);
}
.btn-secondary:hover {
    background: var(--post-primary);
    color: white !important;
}

/* --- FAQ Accordion --- */
.faq-container {
    margin: 30px 0;
}
.faq-item {
    background: #ffffff;
    border: 1px solid var(--post-border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.faq-item summary {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--post-text);
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--post-primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--post-text-light);
}

/* --- Engagement: Tags & Share --- */
.post-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--post-border);
    border-bottom: 1px solid var(--post-border);
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}
.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tag {
    background: #f8f9fa;
    color: var(--post-text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--post-border);
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Author Box --- */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(67, 97, 238, 0.03);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}
.author-avatar {
    font-size: 3rem;
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}
.author-bio h4 {
    margin: 0 0 5px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
}
.author-bio p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--post-text-light);
}

/* --- Tool Recommendation (Mini Cards) --- */
.tool-recommendation h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.tool-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.tool-mini-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--post-border);
    padding: 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--post-text);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    min-width: 0;
}
.tool-mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--post-primary);
    box-shadow: var(--shadow-float);
}
.tool-mini-icon {
    font-size: 2rem;
    margin-right: 15px;
}
.tool-mini-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Baloo 2', cursive;
}
.tool-mini-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--post-text-light);
}
.tool-mini-arrow {
    margin-left: auto;
    color: var(--post-primary);
    font-weight: bold;
}

/* --- Previous / Next Post Navigation --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}
.post-navigation a {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--post-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
}
.nav-next { text-align: right; }
.post-navigation a:hover {
    border-color: var(--post-primary);
    background: rgba(67, 97, 238, 0.02);
}
.nav-label {
    font-size: 0.85rem;
    color: var(--post-text-light);
    font-weight: 600;
    margin-bottom: 5px;
}
.nav-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    color: var(--post-primary);
    font-weight: 700;
}

/* --- Related Articles --- */
.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.related-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    margin: 0;
}
.explore-cat-btn {
    font-weight: 700;
    color: var(--post-primary);
    text-decoration: none;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.related-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border: 1px solid var(--post-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
}
.related-card:hover {
    border-color: var(--post-primary);
    box-shadow: var(--shadow-float);
    transform: translateY(-4px);
}
.related-icon {
    font-size: 2.5rem;
    background: rgba(67, 97, 238, 0.05);
    padding: 10px;
    border-radius: 12px;
}
.related-info h3 {
    margin: 0 0 8px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    color: var(--post-text);
    line-height: 1.4;
}
.related-read-time {
    font-size: 0.85rem;
    color: var(--post-text-light);
}

/* ==========================================
   BATCH 5: CTA, ANIMATIONS, DARK MODE & RESPONSIVE
============================================= */

/* --- Ad Placeholder --- */
.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed var(--post-border);
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    margin: 40px 0;
    color: var(--post-text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Big Bottom CTA (110+ Tools) --- */
.big-cta {
    background: linear-gradient(135deg, var(--post-primary), #4cc9f0);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin: 60px 0;
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}
.big-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.big-cta h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.8rem;
    margin: 0 0 15px;
    color: white;
}
.big-cta p {
    font-size: 1.15rem;
    margin: 0 auto 30px;
    max-width: 600px;
    opacity: 0.9;
}
.big-cta .cta-button {
    background: white;
    color: var(--post-primary) !important;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.big-cta .cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- Floating Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--post-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background: var(--post-secondary);
    transform: translateY(-5px);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    border: 1px solid var(--post-border);
    transition: bottom 0.5s ease, opacity 0.5s ease;
    width: 90%;
    max-width: 600px;
}
.cookie-banner.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}
.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}
.cookie-icon { font-size: 1.5rem; }

/* --- Animations --- */
@keyframes scrollWheel {
    0% { top: 4px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* ==========================================
   DARK MODE OVERRIDES
============================================= */
body.dark-mode {
    --post-bg: #1a1a2e; /* Deep rich dark background */
    --post-text: #e2e8f0;
    --post-text-light: #94a3b8;
    --post-border: #2d3748;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 15px 35px rgba(0, 0, 0, 0.6);
}
body.dark-mode .single-post-container {
    background: transparent;
}
body.dark-mode .toc-container,
body.dark-mode .checklist-box,
body.dark-mode .faq-item,
body.dark-mode .tool-mini-card,
body.dark-mode .post-navigation a,
body.dark-mode .related-card,
body.dark-mode .cookie-banner {
    background: #162032; /* Slightly lighter than body for contrast */
}
body.dark-mode .custom-quote,
body.dark-mode .ad-placeholder,
body.dark-mode .tag {
    background: #162032;
}
body.dark-mode .post-banner,
body.dark-mode .post-illustration img {
    border-color: #162032;
    background: #162032;
}
body.dark-mode .comparison-table {
    background: #162032;
}
body.dark-mode .comparison-table th {
    background: var(--post-primary);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
============================================= */
@media (max-width: 992px) {
    /* Stack Layout for Tablet */
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Adjustments */
    .single-post-container {
        margin-top: 80px;
        padding: 0 12px;
    }
    .post-hero {
        margin-bottom: 32px;
    }
    .post-title { font-size: clamp(1.9rem, 8vw, 2.3rem); }
    .post-subtitle { font-size: 1rem; }
    .post-meta {
        gap: 8px 10px;
        font-size: 0.88rem;
        width: 100%;
    }
    .hero-share {
        flex-wrap: wrap;
    }
    .hero-share .share-btn,
    .share-buttons .share-btn {
        flex: 1 1 140px;
        min-width: 0;
    }
    .post-content {
        font-size: 1rem;
        line-height: 1.75;
        overflow-wrap: anywhere;
        word-break: break-word;
        width: 100%;
    }
    .post-content *,
    .custom-box *,
    .author-box *,
    .inline-tool-cta *,
    .related-card *,
    .tool-mini-card *,
    .post-navigation a *,
    .big-cta * {
        min-width: 0;
    }
    .post-content h2 { font-size: 1.8rem; }
    .post-content h3 { font-size: 1.35rem; }
    .post-content ul,
    .post-content ol {
        padding-left: 18px;
    }
    .custom-box,
    .author-box,
    .inline-tool-cta,
    .related-card,
    .tool-mini-card {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    .custom-box {
        padding: 18px 20px;
    }
    .custom-box strong {
        font-size: 1.1rem;
    }
    .box-icon,
    .related-icon,
    .tool-mini-icon,
    .author-avatar {
        margin-bottom: 6px;
    }
    .author-box {
        padding: 22px;
    }
    .author-avatar {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
    }
    .inline-tool-cta {
        gap: 16px;
        text-align: left;
        padding: 20px;
    }
    .inline-tool-cta .btn,
    .big-cta .cta-button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .post-footer-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    .post-tags,
    .share-buttons {
        width: 100%;
    }
    .share-buttons {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .post-navigation {
        flex-direction: column;
    }
    .post-navigation a {
        padding: 18px;
        min-width: 0;
    }
    .nav-next { text-align: left; }
    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tool-cards-grid,
    .related-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .tool-mini-card {
        gap: 12px;
    }
    .tool-mini-arrow {
        margin-left: 0;
        align-self: flex-end;
    }
    .big-cta {
        padding: 42px 22px;
        margin: 50px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .big-cta h2 {
        font-size: 2rem;
    }
    .big-cta p {
        font-size: 1rem;
    }
    
    /* Vertical Timeline for Mobile */
    .custom-timeline {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    .custom-timeline::before {
        width: 4px;
        height: 100%;
        top: 0;
        left: 20px; /* Vertical line */
    }
    .timeline-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .timeline-step .step-badge { margin: 0; flex-shrink: 0; }
    .custom-checklist li {
        align-items: flex-start;
    }
    .faq-item summary {
        padding-right: 56px;
        font-size: 1.05rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        width: calc(100% - 24px);
        padding: 16px 18px;
    }
    .cookie-content { flex-direction: column; }
}

@media (max-width: 480px) {
    .single-post-container {
        margin-top: 72px;
        padding: 0 10px;
    }
    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    .category-badge {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
    .post-title {
        font-size: 1.75rem;
    }
    .post-subtitle {
        font-size: 0.95rem;
    }
    .post-meta {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .post-meta,
    .hero-share,
    .post-footer-actions,
    .share-buttons {
        justify-content: flex-start;
    }
    .hero-share .share-btn,
    .share-buttons .share-btn,
    .inline-tool-cta .btn,
    .big-cta .btn {
        width: 100%;
    }
    .post-content {
        font-size: 0.98rem;
    }
    .post-content h2 {
        font-size: 1.55rem;
        margin-top: 32px;
    }
    .post-content h3 {
        font-size: 1.2rem;
    }
    .toc-container,
    .checklist-box,
    .faq-item,
    .tool-mini-card,
    .related-card,
    .post-navigation a {
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .toc-container {
        padding: 18px;
    }
    .inline-tool-cta,
    .author-box,
    .custom-box,
    .tool-mini-card,
    .related-card,
    .post-navigation a {
        padding: 16px;
    }
    .big-cta h2 {
        font-size: 1.8rem;
    }
    .big-cta p {
        font-size: 0.95rem;
    }
    .cookie-banner {
        bottom: 12px;
    }
}