/* ============================================
   Blog Styles - Shared between list and detail
   ============================================
   
   DOCUMENTATION:
   ==============
   This CSS file provides styling for both the blog list page and 
   article detail pages. It follows a modular scale (1.25 ratio) 
   for consistent typography hierarchy.
   
   TYPOGRAPHY (inherits from style-elegant.css):
   ---------------------------------------------
   - Headings: Playfair Display (elegant, sophisticated)
   - Body: Lato (friendly, accessible, perfect for reading)
   
   MODULAR SCALE (1.25 ratio):
   ---------------------------
   Base: 1rem (16px)
   Step -2: 0.64rem  (10.24px) - Tiny labels
   Step -1: 0.8rem   (12.8px)  - Small captions
   Step 0:  1rem     (16px)    - Body text
   Step 1:  1.25rem  (20px)    - Large text
   Step 2:  1.563rem (25px)    - Small headings
   Step 3:  1.953rem (31.25px) - Medium headings
   Step 4:  2.441rem (39px)    - Large headings
   Step 5:  3.052rem (48.8px)  - Hero titles
   
   LINE HEIGHT STANDARDS:
   ----------------------
   - Headings: 1.2 (tight)
   - Subheadings: 1.3 (snug)
   - Body text: 1.6 (normal)
   - Reading content: 1.8 (relaxed)
   
   BREAKPOINTS:
   ------------
   - Mobile: < 500px
   - Tablet: 500px - 768px
   - Tablet landscape: 768px - 1024px
   - Desktop: > 1024px
   
   ============================================ */

/* Category Colors */
:root {
    /* Category-specific colors */
    --cat-ansiedade: #7c3aed;
    --cat-depressao: #6366f1;
    --cat-relacionamentos: #ec4899;
    --cat-autoestima: #f59e0b;
    --cat-crescimento: #10b981;
    --cat-stress: #ef4444;
    --cat-mindfulness: #06b6d4;
    --cat-outros: #8b5cf6;
    
    /* ==========================================
       BLOG MODULAR SCALE (ratio: 1.25)
       ========================================== */
    --blog-scale-ratio: 1.25;
    
    /* Typography Scale - Modular 1.25 */
    --blog-text-xs: 0.64rem;      /* 10.24px - Step -2 */
    --blog-text-sm: 0.8rem;       /* 12.8px  - Step -1 */
    --blog-text-base: 1rem;       /* 16px    - Step 0 */
    --blog-text-lg: 1.25rem;      /* 20px    - Step 1 */
    --blog-text-xl: 1.563rem;     /* 25px    - Step 2 */
    --blog-text-2xl: 1.953rem;    /* 31.25px - Step 3 */
    --blog-text-3xl: 2.441rem;    /* 39px    - Step 4 */
    --blog-text-4xl: 3.052rem;    /* 48.8px  - Step 5 */
    
    /* Responsive Typography with clamp() - ADJUSTED */
    --blog-hero-title: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    --blog-article-title: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    --blog-card-title: clamp(1.063rem, 1.5vw + 0.5rem, 1.2rem);
    --blog-section-title: clamp(1.375rem, 2.5vw + 0.5rem, 1.75rem);
    --blog-body-text: clamp(0.938rem, 1vw + 0.5rem, 1.063rem);
    
    /* Standardized Line Heights */
    --blog-lh-tight: 1.2;         /* Headings */
    --blog-lh-snug: 1.3;          /* Subheadings, meta */
    --blog-lh-normal: 1.5;        /* UI text, buttons */
    --blog-lh-relaxed: 1.6;       /* Body text */
    --blog-lh-loose: 1.8;         /* Reading content */
    
    /* Responsive Spacing with clamp() */
    --blog-spacing-section: clamp(2.5rem, 6vw, 5rem);
    --blog-spacing-content: clamp(1.5rem, 4vw, 3rem);
    --blog-spacing-card: clamp(1rem, 2vw, 1.5rem);
}

/* ============================================
   Blog Hero Section
   ============================================ */
.blog-hero {
    position: relative;
    background: var(--color-background-alt);
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--blog-spacing-card);
}

.blog-hero-icon {
    display: none;
}

.blog-hero h1 {
    font-size: var(--blog-hero-title);
    line-height: var(--blog-lh-tight);
    margin-bottom: 0.75rem;
    color: var(--color-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.blog-hero p {
    color: var(--color-text-muted);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: var(--blog-spacing-card);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .blog-hero {
        padding: clamp(4rem, 8vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: clamp(4rem, 8vw, 5rem) 0 clamp(1.5rem, 3vw, 2rem);
    }
}

/* ============================================
   Shared Hero Pattern
   ============================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
    color: white;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--blog-spacing-card);
    text-align: center;
}

.page-hero-icon {
    width: clamp(3rem, 5vw, 3.75rem);
    height: clamp(3rem, 5vw, 3.75rem);
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--blog-spacing-card);
    backdrop-filter: blur(10px);
}

.page-hero-icon svg {
    width: clamp(1.5rem, 2.5vw, 1.875rem);
    height: clamp(1.5rem, 2.5vw, 1.875rem);
    stroke: white;
}

.page-hero h1 {
    font-size: var(--blog-article-title);
    line-height: var(--blog-lh-tight);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-hero p {
    opacity: 0.9;
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: var(--blog-spacing-content);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .page-hero {
        padding: clamp(5rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
    }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    color: var(--color-text-muted);
    margin-bottom: var(--blog-spacing-content);
}

.breadcrumbs a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--color-primary);
    font-weight: 500;
}

/* Hero breadcrumbs (white text) */
.page-hero .breadcrumbs {
    justify-content: center;
    margin-bottom: var(--blog-spacing-card);
    opacity: 0.9;
}

.page-hero .breadcrumbs a {
    color: rgba(255,255,255,0.8);
}

.page-hero .breadcrumbs a:hover {
    color: white;
}

.page-hero .breadcrumbs .current {
    color: white;
}

/* ============================================
   Search Box
   ============================================ */
.search-box {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 2.75rem;
    border: 2px solid rgba(201, 169, 110, 0.15);
    border-radius: 12px;
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-normal);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.15);
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    stroke: var(--color-text-muted);
}

/* ============================================
   Blog Stats
   ============================================ */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: var(--blog-spacing-card);
}

.blog-stat {
    text-align: center;
}

.blog-stat-number {
    font-size: var(--blog-text-xl);
    font-weight: 600;
    display: block;
    color: var(--color-primary);
    line-height: var(--blog-lh-tight);
}

.blog-stat-label {
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-snug);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .blog-stats {
        gap: 1.5rem;
    }
}

/* ============================================
   Blog Container
   ============================================ */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--blog-spacing-section) var(--blog-spacing-card);
}

/* ============================================
   Blog Search Filter (inline search box)
   ============================================ */
.blog-search-filter {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .blog-search-filter {
        justify-content: flex-start;
    }
}

.search-box-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.search-box-inline:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.15);
}

.search-box-inline svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-box-inline input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--blog-body-text);
    color: var(--color-text);
    outline: none;
}

.search-box-inline input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* ============================================
   Category Pills
   ============================================ */
.category-section {
    margin-bottom: var(--blog-spacing-content);
}

.category-section-title {
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-snug);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    background: white;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.category-pill svg {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.category-pill.active,
.category-pill:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.category-pill.active svg,
.category-pill:hover svg {
    opacity: 1;
}

/* Category specific colors */
.category-pill[data-category="ansiedade"]:hover,
.category-pill[data-category="ansiedade"].active { background: var(--cat-ansiedade); border-color: var(--cat-ansiedade); }
.category-pill[data-category="depressao"]:hover,
.category-pill[data-category="depressao"].active { background: var(--cat-depressao); border-color: var(--cat-depressao); }
.category-pill[data-category="relacionamentos"]:hover,
.category-pill[data-category="relacionamentos"].active { background: var(--cat-relacionamentos); border-color: var(--cat-relacionamentos); }
.category-pill[data-category="autoestima"]:hover,
.category-pill[data-category="autoestima"].active { background: var(--cat-autoestima); border-color: var(--cat-autoestima); }
.category-pill[data-category="crescimento"]:hover,
.category-pill[data-category="crescimento"].active { background: var(--cat-crescimento); border-color: var(--cat-crescimento); }
.category-pill[data-category="stress"]:hover,
.category-pill[data-category="stress"].active { background: var(--cat-stress); border-color: var(--cat-stress); }
.category-pill[data-category="mindfulness"]:hover,
.category-pill[data-category="mindfulness"].active { background: var(--cat-mindfulness); border-color: var(--cat-mindfulness); }

/* ============================================
   Mobile Search Section (hidden on desktop)
   ============================================ */
.mobile-search-section {
    display: none;
}

/* ============================================
   Category Toggle Button (hidden on desktop)
   ============================================ */
.category-toggle {
    display: none;
}

/* ============================================
   Blog Layout (List Page)
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(2rem, 4vw, 3rem);
}

/* Tablet landscape breakpoint */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        order: -1;
    }
}

/* ============================================
   Featured Card
   ============================================ */
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    margin-bottom: var(--blog-spacing-content);
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-card .featured-image {
    min-height: clamp(250px, 30vw, 350px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    position: relative;
    overflow: hidden;
}

.featured-card .featured-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: white;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--blog-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: var(--blog-lh-normal);
}

.featured-card .featured-content {
    padding: var(--blog-spacing-content);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card .featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-card .featured-category {
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: var(--blog-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    line-height: var(--blog-lh-normal);
}

.featured-card .featured-date {
    color: var(--color-text-muted);
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-snug);
}

.featured-card .featured-title {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    line-height: var(--blog-lh-snug);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.featured-card .featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-card .featured-title a:hover {
    color: var(--color-primary);
}

.featured-card .featured-excerpt {
    color: var(--color-text);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: var(--blog-spacing-card);
    font-size: 0.9rem;
}

.featured-card .featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    transition: gap 0.3s;
}

.featured-card .featured-link:hover {
    gap: 0.75rem;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-card .featured-image {
        min-height: 200px;
    }
    .featured-card .featured-content {
        padding: var(--blog-spacing-card);
    }
}

/* ============================================
   Blog Grid
   ============================================ */
.blog-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .blog-grid-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .blog-grid-page {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Blog Card
   ============================================ */
.blog-card-page {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.blog-card-page.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card-page:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.blog-card-page .blog-image {
    height: clamp(160px, 18vw, 200px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-page .blog-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-page .blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.blog-card-page .blog-content {
    padding: var(--blog-spacing-card);
}

.blog-card-page .blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.blog-card-page .blog-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 12px;
    font-size: var(--blog-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: var(--blog-lh-normal);
}

/* Category colors for cards */
.blog-category.cat-ansiedade { background: rgba(124, 58, 237, 0.1); color: var(--cat-ansiedade); }
.blog-category.cat-depressao { background: rgba(99, 102, 241, 0.1); color: var(--cat-depressao); }
.blog-category.cat-relacionamentos { background: rgba(236, 72, 153, 0.1); color: var(--cat-relacionamentos); }
.blog-category.cat-autoestima { background: rgba(245, 158, 11, 0.1); color: var(--cat-autoestima); }
.blog-category.cat-crescimento { background: rgba(16, 185, 129, 0.1); color: var(--cat-crescimento); }
.blog-category.cat-stress { background: rgba(239, 68, 68, 0.1); color: var(--cat-stress); }
.blog-category.cat-mindfulness { background: rgba(6, 182, 212, 0.1); color: var(--cat-mindfulness); }
.blog-category.cat-outros { background: rgba(139, 92, 246, 0.1); color: var(--cat-outros); }

.blog-card-page .blog-date {
    color: var(--color-text-muted);
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-snug);
}

.blog-card-page .blog-title {
    font-size: var(--blog-card-title);
    margin-bottom: 0.75rem;
    line-height: var(--blog-lh-snug);
    font-weight: 600;
}

.blog-card-page .blog-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-page .blog-title a:hover {
    color: var(--color-primary);
}

.blog-card-page .blog-excerpt {
    color: var(--color-text);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: 1.25rem;
}

.blog-card-page .blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-page .blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    transition: gap 0.3s;
}

.blog-card-page .blog-link:hover {
    gap: 0.625rem;
}

.blog-card-page .blog-reading-time {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    color: var(--color-text-muted);
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-snug);
}

.blog-card-page .blog-reading-time svg {
    width: 0.875rem;
    height: 0.875rem;
}

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

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: var(--blog-spacing-card);
    margin-bottom: var(--blog-spacing-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    font-size: var(--blog-text-base);
    line-height: var(--blog-lh-snug);
    margin-bottom: 1.25rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sidebar-widget h3 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
}

/* Search Widget */
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-normal);
    transition: all 0.3s;
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(196, 154, 108, 0.1);
}

.sidebar-search svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    stroke: var(--color-text-muted);
}

/* Categories Widget */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0.375rem;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-normal);
}

.sidebar-categories a .cat-name {
    flex: 1;
}

.sidebar-categories a .cat-count {
    background: var(--color-background-alt);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-normal);
    color: var(--color-text-muted);
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    background: var(--color-accent-soft);
    color: var(--color-primary);
}

.sidebar-categories a:hover .cat-count,
.sidebar-categories a.active .cat-count {
    background: var(--color-primary);
    color: white;
}

/* Featured Widget */
.sidebar-featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.sidebar-featured h3 {
    color: white;
}

.sidebar-featured h3 svg {
    color: rgba(255,255,255,0.8);
}

.featured-item {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.featured-item:last-child {
    margin-bottom: 0;
}

.featured-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.featured-item .featured-label {
    font-size: var(--blog-text-xs);
    line-height: var(--blog-lh-snug);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.featured-item h4 {
    font-size: var(--blog-text-base);
    line-height: var(--blog-lh-snug);
    margin: 0;
}

.featured-item h4 a {
    color: white;
    text-decoration: none;
}

/* CTA Widget */
.sidebar-cta {
    text-align: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
}

.sidebar-cta-icon {
    width: clamp(3rem, 5vw, 3.75rem);
    height: clamp(3rem, 5vw, 3.75rem);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-cta-icon svg {
    width: clamp(1.5rem, 2.5vw, 1.75rem);
    height: clamp(1.5rem, 2.5vw, 1.75rem);
    color: var(--color-primary);
}

.sidebar-cta h3 {
    justify-content: center;
    color: var(--color-text);
}

.sidebar-cta p {
    color: var(--color-text);
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: 1.25rem;
}

.sidebar-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--blog-spacing-section);
}

.pagination a,
.pagination span {
    min-width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    font-weight: 500;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.3);
}

.pagination .current {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.3);
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    color: var(--color-text-muted);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) var(--blog-spacing-card);
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.empty-state-icon {
    width: clamp(5rem, 10vw, 7.5rem);
    height: clamp(5rem, 10vw, 7.5rem);
    background: var(--color-background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--blog-spacing-card);
}

.empty-state-icon svg {
    width: clamp(2.5rem, 5vw, 3.125rem);
    height: clamp(2.5rem, 5vw, 3.125rem);
    stroke: var(--color-text-muted);
}

.empty-state h3 {
    font-size: var(--blog-text-xl);
    line-height: var(--blog-lh-snug);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.empty-state p {
    color: var(--color-text-muted);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: var(--blog-spacing-card);
}

/* ============================================
   Article Detail Styles
   ============================================ */

/* Article Hero */
.article-hero {
    position: relative;
    background: var(--color-background-alt);
    padding: clamp(7rem, 12vw, 9rem) 0 clamp(2.5rem, 5vw, 3.125rem);
    overflow: hidden;
    text-align: center;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--blog-spacing-card) var(--blog-spacing-content);
}

.article-hero .breadcrumbs {
    justify-content: center;
    margin-bottom: var(--blog-spacing-card);
}

.article-hero .breadcrumbs a {
    color: var(--color-text);
    opacity: 0.7;
}

.article-hero .breadcrumbs a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.article-hero .breadcrumbs .separator {
    color: var(--color-text-muted);
}

.article-hero .breadcrumbs .current {
    color: var(--color-primary);
}

.article-hero h1 {
    font-size: var(--blog-article-title);
    line-height: var(--blog-lh-tight);
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    color: var(--color-heading);
}

.article-hero .article-excerpt {
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-loose);
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .article-hero {
        padding: clamp(4.5rem, 9vw, 5.5rem) 0 clamp(2rem, 4vw, 2.5rem);
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.article-category {
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    background: var(--color-accent-soft);
    font-size: var(--blog-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    line-height: var(--blog-lh-normal);
}

.article-date, .article-reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-muted);
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-snug);
}

.article-date svg, .article-reading-time svg {
    width: 1rem;
    height: 1rem;
}

.article-excerpt {
    font-size: var(--blog-body-text);
    opacity: 0.9;
    line-height: var(--blog-lh-loose);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Image */
.article-image-container {
    max-width: 900px;
    margin: -1rem auto 0;
    padding: 0;
    position: relative;
    z-index: 10;
}

.article-image {
    width: 100%;
    height: clamp(200px, 25vw, 320px);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .article-image-container {
        margin-top: -1rem;
    }
}

/* Article Layout */
.article-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--blog-spacing-section) var(--blog-spacing-card) var(--blog-spacing-section);
    position: relative;
}

.article-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--color-background);
    z-index: -1;
}

/* Tablet landscape breakpoint */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Share Sidebar */
.share-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--blog-spacing-xs);
    height: fit-content;
}
    top: 120px;
    align-self: start;
    height: fit-content;
}

@media (max-width: 1024px) {
    .share-sidebar {
        display: none;
    }
}

.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.share-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.share-btn.facebook:hover { background: #1877f2; color: white; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }
.share-btn.linkedin:hover { background: #0077b5; color: white; }
.share-btn.whatsapp:hover { background: #25d366; color: white; }
.share-btn.copy:hover { background: var(--color-primary); color: white; }

.share-label {
    font-size: var(--blog-text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 0.75rem;
    line-height: var(--blog-lh-normal);
}

/* Article Content Wrapper */
.article-content-wrapper {
    background: white;
    border-radius: 24px;
    padding: clamp(1.875rem, 4vw, 3.125rem);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    margin-bottom: var(--blog-spacing-section);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: var(--blog-spacing-card);
    background: var(--color-background-alt);
    border-radius: 16px;
    margin-bottom: var(--blog-spacing-content);
}

.author-avatar {
    width: clamp(3.5rem, 6vw, 4.375rem);
    height: clamp(3.5rem, 6vw, 4.375rem);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-snug);
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.author-info p {
    color: var(--color-text-muted);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
    margin: 0;
}

@media (max-width: 500px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Article Content Typography */
.article-content {
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-loose);
    color: var(--color-text);
}

.article-content h2 {
    font-size: var(--blog-section-title);
    line-height: var(--blog-lh-snug);
    color: var(--color-text);
    margin: 3rem 0 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: var(--blog-text-xl);
    line-height: var(--blog-lh-snug);
    color: var(--color-text);
    margin: 2.25rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: var(--blog-lh-loose);
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration-thickness: 2px;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: var(--blog-lh-relaxed);
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-accent-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-relaxed);
    color: var(--color-text);
}

.article-content blockquote p {
    margin: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content pre {
    background: var(--color-text);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-relaxed);
}

.article-content code {
    background: var(--color-background-alt);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: var(--blog-spacing-content);
    padding-top: var(--blog-spacing-content);
    border-top: 1px solid var(--color-border);
}

.article-tags .tag {
    padding: 0.5rem 1rem;
    background: var(--color-background-alt);
    border-radius: 20px;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Mobile Share */
.share-mobile {
    display: none;
    padding: 1.5rem 0;
    margin-top: var(--blog-spacing-content);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
    .share-mobile {
        display: block;
    }
}

.share-mobile h4 {
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-snug);
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.share-buttons-horizontal .share-btn {
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    gap: 0.5rem;
}

.share-buttons-horizontal .share-btn span {
    font-size: var(--blog-text-sm);
    font-weight: 500;
}

/* TOC Sidebar */
.toc-sidebar {
    width: 100%;
    max-width: 320px;
}

@media (max-width: 1024px) {
    .toc-sidebar {
        display: none;
    }
}

/* Related Articles */
.related-section {
    background: var(--color-background-alt);
    padding: var(--blog-spacing-section) 0;
}

.related-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--blog-spacing-card);
}

.related-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.125rem);
}

.related-header h2 {
    font-size: var(--blog-section-title);
    line-height: var(--blog-lh-snug);
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.related-header p {
    color: var(--color-text-muted);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 1.875rem);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.related-card .card-image {
    height: clamp(140px, 15vw, 180px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-soft) 100%);
    position: relative;
    overflow: hidden;
}

.related-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card .card-content {
    padding: var(--blog-spacing-card);
}

.related-card .card-category {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    border-radius: 12px;
    font-size: var(--blog-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    line-height: var(--blog-lh-normal);
    background: var(--color-accent-soft);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.related-card .card-title {
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-snug);
    margin-bottom: 0.75rem;
}

.related-card .card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.related-card .card-title a:hover {
    color: var(--color-primary);
}

.related-card .card-excerpt {
    color: var(--color-text-muted);
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-relaxed);
}

/* CTA Section */
.article-cta {
    background: var(--color-background);
    padding: var(--blog-spacing-section) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta .container {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    padding: var(--blog-spacing-content) var(--blog-spacing-card);
}

.article-cta-icon {
    width: clamp(3rem, 5vw, 3.75rem);
    height: clamp(3rem, 5vw, 3.75rem);
    background: var(--color-accent-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.article-cta-icon svg {
    width: clamp(1.5rem, 2.5vw, 1.75rem);
    height: clamp(1.5rem, 2.5vw, 1.75rem);
    stroke: var(--color-primary);
}

.article-cta h2 {
    font-size: var(--blog-section-title);
    line-height: var(--blog-lh-snug);
    margin-bottom: 0.75rem;
    color: var(--color-heading);
}

.article-cta p {
    color: var(--color-text-muted);
    font-size: var(--blog-body-text);
    line-height: var(--blog-lh-relaxed);
    margin-bottom: 1.75rem;
}

.article-cta .btn {
    background: var(--color-primary);
    color: white;
    padding: 0.875rem 2rem;
    font-size: var(--blog-body-text);
}

.article-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 154, 108, 0.3);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

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

.toast svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke: #10b981;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   IMPROVEMENTS - TOC & Better Reading Experience
   ============================================ */

/* Improved Article Content Width for Better Readability */
.article-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Font Size Variants */
.article-content.font-small {
    font-size: var(--blog-text-base);
    line-height: var(--blog-lh-loose);
}

.article-content.font-medium {
    font-size: var(--blog-text-lg);
    line-height: var(--blog-lh-loose);
}

.article-content.font-large {
    font-size: var(--blog-text-xl);
    line-height: 2;
}

/* Improved Spacing */
.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h2 {
    margin: 3.5rem 0 1.5rem;
    padding-top: 2rem;
}

.article-content h3 {
    margin: 2.5rem 0 1.25rem;
}

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.75rem 2.25rem;
}

.article-content img {
    margin: 2.5rem 0;
}

.article-content ul, .article-content ol {
    margin: 1.75rem 0;
}

.article-content li {
    margin-bottom: 0.875rem;
}

/* Author Box Improvements */
.author-box {
    padding: 1.75rem;
    margin-bottom: 3rem;
}

/* Table of Contents Styles */
.toc-wrapper {
    background: white;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* Custom scrollbar for TOC */
.toc-wrapper::-webkit-scrollbar {
    width: 6px;
}

.toc-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.toc-wrapper::-webkit-scrollbar-thumb {
    background: rgba(168, 132, 90, 0.3);
    border-radius: 3px;
}

.toc-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 132, 90, 0.5);
}

.toc-title {
    font-size: var(--blog-text-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: var(--blog-lh-snug);
}

.toc-nav {
    margin-bottom: 1.5rem;
}

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

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-item-h3 {
    padding-left: 1rem;
}

.toc-link {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--blog-text-sm);
    line-height: var(--blog-lh-normal);
    border-radius: 8px;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

.toc-link:hover {
    background: var(--color-accent-soft);
    color: var(--color-primary);
    padding-left: 1rem;
}

.toc-link.active {
    background: var(--color-accent-soft);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
}

/* Font Controls */
.font-controls {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.font-controls h5 {
    font-size: var(--blog-text-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: var(--blog-lh-snug);
}

.font-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.font-btn {
    flex: 1;
    padding: 0.625rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: white;
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: var(--blog-lh-normal);
}

.font-btn:first-child {
    font-size: var(--blog-text-sm);
}

.font-btn:nth-child(2) {
    font-size: var(--blog-text-base);
}

.font-btn:last-child {
    font-size: var(--blog-text-lg);
}

.font-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-accent-soft);
}

.font-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.5);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============================================
   Responsive Improvements
   ============================================
   
   Breakpoint Strategy:
   - 1200px: Large desktop adjustments
   - 1024px: Tablet landscape / small desktop
   - 900px:  Tablet portrait (intermediate)
   - 768px:  Large mobile / small tablet
   - 600px:  Mobile landscape
   - 500px:  Mobile portrait
   
   ============================================ */

/* Large Desktop (1200px+) */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .toc-sidebar {
        display: none;
    }

    .share-sidebar {
        display: none;
    }

    .article-content-wrapper {
        max-width: 100%;
    }
}

/* Tablet Landscape (1024px) - iPad vertical and smaller get mobile search + category toggle */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        order: -1;
        max-width: 100%;
    }
    
    /* ==========================================
       SEARCH & CATEGORIES ROW - Side by side on tablet
       ========================================== */
    .search-categories-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* ==========================================
       MOBILE SEARCH - Visible on tablet/mobile
       ========================================== */
    .mobile-search-section {
        display: block;
        margin-bottom: 0;
    }
    
    .mobile-search-box {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        height: 100%;
        padding: 0.875rem 1rem;
        background: white;
        border: 1px solid rgba(201, 169, 110, 0.2);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
    }
    
    .mobile-search-box:focus-within {
        border-color: var(--color-primary);
        box-shadow: 0 2px 12px rgba(201, 169, 110, 0.15);
    }
    
    .mobile-search-box svg {
        width: 1.25rem;
        height: 1.25rem;
        color: var(--color-text-muted);
        flex-shrink: 0;
    }
    
    .mobile-search-box input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: var(--color-text);
        outline: none;
    }
    
    .mobile-search-box input::placeholder {
        color: var(--color-text-muted);
        opacity: 0.7;
    }
    
    /* ==========================================
       CATEGORY TOGGLE - Expandable menu
       ========================================== */
    .category-section {
        position: relative;
        margin-bottom: 0;
    }
    
    .category-section-title {
        display: none; /* Hide title on tablet/mobile */
    }
    
    .category-toggle {
        display: flex;
        align-items: center;
        height: 100%;
        justify-content: space-between;
        width: 100%;
        padding: 0.875rem 1rem;
        background: white;
        border: 1px solid rgba(201, 169, 110, 0.2);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--color-text);
    }
    
    .category-toggle:hover {
        border-color: var(--color-primary);
    }
    
    .category-toggle-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-toggle-text svg {
        width: 1.125rem;
        height: 1.125rem;
        color: var(--color-primary);
    }
    
    .category-toggle-arrow {
        width: 1.25rem;
        height: 1.25rem;
        color: var(--color-text-muted);
        transition: transform 0.3s ease;
    }
    
    .category-toggle[aria-expanded="true"] .category-toggle-arrow {
        transform: rotate(180deg);
    }
    
    /* Category Pills - Hidden by default, opens downward */
    .category-pills {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: auto;
        transform: translateY(-10px);
        width: max-content;
        min-width: 100%;
        max-width: 90vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        background: white;
        border: 1px solid rgba(201, 169, 110, 0.2);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 100;
    }
    
    .category-pills.expanded {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .category-pill {
        width: auto;
        justify-content: center;
        padding: 0.5rem 0.875rem;
        border-radius: 20px;
        min-height: auto;
        font-size: 0.8125rem;
    }
    
    /* Ensure hover colors work on dropdown */
    .category-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    }
    
    .category-pill[data-category="ansiedade"]:hover { background: var(--cat-ansiedade); border-color: var(--cat-ansiedade); color: white; }
    .category-pill[data-category="depressao"]:hover { background: var(--cat-depressao); border-color: var(--cat-depressao); color: white; }
    .category-pill[data-category="relacionamentos"]:hover { background: var(--cat-relacionamentos); border-color: var(--cat-relacionamentos); color: white; }
    .category-pill[data-category="autoestima"]:hover { background: var(--cat-autoestima); border-color: var(--cat-autoestima); color: white; }
    .category-pill[data-category="crescimento"]:hover { background: var(--cat-crescimento); border-color: var(--cat-crescimento); color: white; }
    .category-pill[data-category="stress"]:hover { background: var(--cat-stress); border-color: var(--cat-stress); color: white; }
    .category-pill[data-category="mindfulness"]:hover { background: var(--cat-mindfulness); border-color: var(--cat-mindfulness); color: white; }
    
    .category-pill svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Hide sidebar search - we have mobile search at top */
    .blog-sidebar .sidebar-widget:first-child {
        display: none;
    }
}

/* Tablet Portrait - NEW INTERMEDIATE BREAKPOINT (900px) */
@media (max-width: 900px) {
    /* Typography adjustments for tablets */
    :root {
        --blog-hero-title: clamp(1.75rem, 4vw + 0.5rem, 2.25rem);
        --blog-article-title: clamp(1.75rem, 5vw + 0.25rem, 2.5rem);
        --blog-section-title: clamp(1.375rem, 3vw + 0.25rem, 1.75rem);
    }
    
    /* Grid adjustments */
    .blog-grid-page {
        gap: 1.25rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-card .featured-image {
        min-height: 220px;
    }
    
    .featured-card .featured-content {
        padding: var(--blog-spacing-card);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Sidebar adjustments */
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    /* Blog container */
    .blog-container {
        padding: clamp(2rem, 5vw, 3rem) var(--blog-spacing-card);
    }
}

/* Small Tablet / Large Mobile (768px) */
@media (max-width: 768px) {
    .article-hero {
        padding: clamp(4rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem);
    }

    .article-meta {
        gap: 0.75rem;
    }

    .article-content-wrapper {
        padding: 1.75rem 1.25rem;
    }

    .article-content h2 {
        margin: 2.5rem 0 1rem;
        padding-top: 1.5rem;
    }

    .article-content h3 {
        margin: 2rem 0 0.75rem;
    }

    .author-box {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 3rem;
        height: 3rem;
    }

    .back-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Smaller max-width for dropdown on smaller screens */
    .category-pills {
        max-width: 400px;
    }
}

/* Mobile Landscape (600px) */
@media (max-width: 600px) {
    /* Stack search and categories vertically on mobile */
    .search-categories-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .blog-grid-page {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Portrait (500px) */
@media (max-width: 500px) {
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-hero h1,
    .page-hero h1 {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }
    
    .featured-card .featured-content {
        padding: 1rem;
    }
    
    .blog-card-page .blog-content {
        padding: 1rem;
    }
    
    .pagination {
        gap: 0.375rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.75rem;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - Smartphone (<480px)
   ============================================
   
   Principais melhorias:
   1. Sidebar aparece DEPOIS dos artigos
   2. Hero mais compacto
   3. Category pills maiores e mais fáceis de tocar
   4. Cards otimizados
   5. Espaçamentos reduzidos
   ============================================ */

@media (max-width: 480px) {
    /* ==========================================
       REORDENAR: Sidebar depois dos artigos
       ========================================== */
    .blog-layout {
        display: flex;
        flex-direction: column;
    }
    
    .blog-layout main {
        order: 1 !important;
    }
    
    .blog-layout .blog-sidebar {
        order: 3 !important; /* Força a sidebar para depois de main */
        margin-top: 2rem;
    }
    
    /* ==========================================
       HERO - Mais compacto
       ========================================== */
    .blog-hero {
        padding: 5.5rem 0 1.25rem;
    }
    
    .blog-hero-content {
        padding: 0 1rem;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-hero p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    /* Search box mais compacto */
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        padding: 0.625rem 1rem 0.625rem 2.5rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .search-box svg {
        width: 1rem;
        height: 1rem;
        left: 0.875rem;
    }
    
    /* Search box inline (na secção de categorias) */
    .blog-search-filter {
        margin-bottom: 1rem;
    }
    
    .search-box-inline {
        max-width: 100%;
        padding: 0.625rem 0.875rem;
    }
    
    .search-box-inline svg {
        width: 1rem;
        height: 1rem;
    }
    
    .search-box-inline input {
        font-size: 0.875rem;
    }
    
    /* Stats inline e menores */
    .blog-stats {
        flex-direction: row;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .blog-stat-number {
        font-size: 1.25rem;
    }
    
    .blog-stat-label {
        font-size: 0.625rem;
    }
    
    /* ==========================================
       CONTAINER - Menos padding
       ========================================== */
    .blog-container {
        padding: 1.5rem 1rem;
    }
    
    /* ==========================================
       BREADCRUMBS - Mais compactos
       ========================================== */
    .breadcrumbs {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        gap: 0.375rem;
    }
    
    /* ==========================================
       CATEGORY PILLS - Dropdown expandível no mobile
       ========================================== */
    .category-section {
        position: relative;
        margin-bottom: 0;
    }
    
    .category-section-title {
        display: none;
    }
    
    /* Keep dropdown functionality on mobile */
    .category-pills {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        margin: 0;
        background: white;
        border: 1px solid rgba(201, 169, 110, 0.2);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s ease;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 100;
        /* Remove scroll mask */
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .category-pills.expanded {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .category-pill {
        width: auto;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-height: auto;
        border-radius: 20px;
    }
    
    .category-pill svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* ==========================================
       FEATURED CARD - Otimizado
       ========================================== */
    .featured-card {
        border-radius: 16px;
        margin-bottom: 1.25rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .featured-card .featured-image {
        min-height: 160px;
    }
    
    .featured-card .featured-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.5625rem;
        border-radius: 14px;
    }
    
    .featured-card .featured-badge svg {
        width: 10px;
        height: 10px;
    }
    
    .featured-card .featured-content {
        padding: 1rem;
    }
    
    .featured-card .featured-meta {
        gap: 0.625rem;
        margin-bottom: 0.625rem;
    }
    
    .featured-card .featured-category {
        padding: 0.25rem 0.625rem;
        font-size: 0.5625rem;
    }
    
    .featured-card .featured-date {
        font-size: 0.75rem;
    }
    
    .featured-card .featured-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-card .featured-excerpt {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
        /* Limitar a 2 linhas */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .featured-card .featured-link {
        font-size: 0.8125rem;
    }
    
    /* ==========================================
       BLOG CARDS - Compactos com mini-imagem
       ========================================== */
    .blog-grid-page {
        gap: 1rem;
    }
    
    .blog-card-page {
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    
    .blog-card-page .blog-image {
        height: 120px;
    }
    
    .blog-card-page .blog-content {
        padding: 0.875rem;
    }
    
    .blog-card-page .blog-meta {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-card-page .blog-category {
        padding: 0.25rem 0.5rem;
        font-size: 0.5625rem;
        border-radius: 8px;
    }
    
    .blog-card-page .blog-date {
        font-size: 0.6875rem;
    }
    
    .blog-card-page .blog-title {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }
    
    .blog-card-page .blog-excerpt {
        font-size: 0.8125rem;
        line-height: 1.5;
        margin-bottom: 0.625rem;
        /* Limitar a 2 linhas */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .blog-card-page .blog-footer {
        padding-top: 0.5rem;
    }
    
    .blog-card-page .blog-link {
        font-size: 0.8125rem;
    }
    
    .blog-card-page .blog-reading-time {
        font-size: 0.6875rem;
    }
    
    .blog-card-page .blog-reading-time svg {
        width: 0.75rem;
        height: 0.75rem;
    }
    
    /* ==========================================
       SIDEBAR - Compacta e colapsável
       ========================================== */
    .blog-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .sidebar-widget h3 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }
    
    .sidebar-widget h3 svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Categories widget compacto */
    .sidebar-categories a {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .sidebar-categories li {
        margin-bottom: 0.25rem;
    }
    
    /* Featured widget */
    .sidebar-featured .featured-item {
        padding: 0.75rem;
    }
    
    .sidebar-featured .featured-label {
        font-size: 0.5625rem;
    }
    
    .sidebar-featured .featured-item h4 {
        font-size: 0.875rem;
    }
    
    /* CTA widget compacto */
    .sidebar-cta {
        padding: 1.25rem 1rem;
    }
    
    .sidebar-cta-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .sidebar-cta-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .sidebar-cta h3 {
        font-size: 1rem;
    }
    
    .sidebar-cta p {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* ==========================================
       PAGINATION - Compacta
       ========================================== */
    .pagination {
        margin-top: 1.5rem;
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        border-radius: 8px;
        padding: 0 0.5rem;
    }
    
    /* ==========================================
       EMPTY STATE
       ========================================== */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon svg {
        width: 3rem;
        height: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1rem;
    }
    
    .empty-state p {
        font-size: 0.875rem;
    }
    
    /* ==========================================
       ARTICLE DETAIL PAGE - Mobile
       ========================================== */
    
    /* Hero do artigo - mais compacto */
    .article-hero {
        padding: 5rem 0 1.5rem;
    }
    
    .article-hero-content {
        padding: 0 1rem 2rem;
    }
    
    .article-hero .breadcrumbs {
        font-size: 0.6875rem;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
        justify-content: flex-start;
    }
    
    .article-meta {
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .article-category {
        padding: 0.25rem 0.625rem;
        font-size: 0.5625rem;
    }
    
    .article-date,
    .article-reading-time {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .article-date svg,
    .article-reading-time svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .article-hero h1 {
        font-size: 1.375rem;
        line-height: 1.25;
        margin-bottom: 0.625rem;
        text-align: left;
    }
    
    .article-excerpt {
        font-size: 0.875rem;
        line-height: 1.5;
        text-align: left;
        max-width: 100%;
    }
    
    /* Imagem do artigo */
    .article-image-container {
        padding: 0 1rem;
        margin-top: -0.75rem;
    }
    
    .article-image {
        height: 160px;
        border-radius: 12px;
    }
    
    /* Layout do artigo */
    .article-layout {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    /* Article Content Wrapper */
    .article-content-wrapper {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    /* Author Box - compacto */
    .author-box {
        padding: 1rem;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .author-info h4 {
        font-size: 0.9375rem;
    }
    
    .author-info p {
        font-size: 0.8125rem;
    }
    
    /* Article Content */
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 1.125rem;
        margin: 2rem 0 0.875rem;
        padding-top: 1rem;
    }
    
    .article-content h3 {
        font-size: 1rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .article-content p {
        margin-bottom: 1.125rem;
    }
    
    .article-content ul,
    .article-content ol {
        margin: 1.125rem 0;
        padding-left: 1.25rem;
    }
    
    .article-content li {
        margin-bottom: 0.5rem;
    }
    
    .article-content blockquote {
        padding: 1rem;
        margin: 1.25rem 0;
        font-size: 0.9375rem;
    }
    
    /* Tags */
    .article-tags {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .article-tags a {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Share Mobile */
    .share-mobile {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .share-mobile h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .share-buttons-horizontal {
        gap: 0.5rem;
    }
    
    .share-buttons-horizontal .share-btn {
        width: auto;
        height: auto;
        padding: 0.5rem 0.875rem;
        border-radius: 20px;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .share-buttons-horizontal .share-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Related Articles */
    .related-section {
        padding: 2rem 0;
    }
    
    .related-section .section-header {
        margin-bottom: 1.25rem;
    }
    
    .related-section .section-header h2 {
        font-size: 1.125rem;
    }
    
    .related-section .section-header p {
        font-size: 0.8125rem;
    }
    
    .related-grid {
        gap: 1rem;
    }
    
    .related-card {
        border-radius: 14px;
    }
    
    .related-card .card-image {
        height: 120px;
    }
    
    .related-card .card-content {
        padding: 0.875rem;
    }
    
    .related-card .card-category {
        font-size: 0.5625rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .related-card .card-title {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    .related-card .card-excerpt {
        font-size: 0.75rem;
        /* Limitar a 2 linhas */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Article CTA */
    .article-cta {
        padding: 2rem 0;
    }
    
    .article-cta .container {
        padding: 0 1rem;
    }
    
    .article-cta h2 {
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }
    
    .article-cta p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .article-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* TOC Sidebar - escondida em mobile */
    .toc-sidebar {
        display: none;
    }
}

/* Print Styles */
@media print {
    .toc-sidebar,
    .share-sidebar,
    .share-mobile,
    .back-to-top,
    .reading-progress,
    .font-controls {
        display: none !important;
    }

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