/* BLOG DESIGN SYSTEM - GuíaEmigrar PRO */

:root {
    --blog-primary: #f59e0b;
    --blog-secondary: #0f172a;
    --blog-accent: #3b82f6;
    --blog-bg: #ffffff;
    --blog-text: #334155;
    --blog-muted: #64748b;
    --blog-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    color: var(--blog-secondary);
    margin-bottom: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    box-shadow: var(--blog-card-shadow);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blog-primary);
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.4rem;
    color: var(--blog-secondary);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 800;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--blog-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* Post Content Styles (for articles) */
.post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
}

.post-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 25px;
}

/* --- PREMIUM BLOG FEATURES --- */

/* 1. Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--blog-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* 2. Table of Contents (TOC) */
.toc-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blog-secondary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    text-decoration: none;
    color: var(--blog-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--blog-primary);
    padding-left: 5px;
}

/* 3. Call-out Boxes */
.callout-box {
    padding: 25px;
    border-radius: 12px;
    margin: 35px 0;
    border-left: 5px solid;
}

.callout-tip {
    background: #ecfdf5;
    border-color: #10b981;
    color: #064e3b;
}

.callout-warning {
    background: #fff7ed;
    border-color: #f97316;
    color: #7c2d12;
}

.callout-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.callout-title {
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 4. Typography Upgrades */
.post-content p {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.8rem;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blog-secondary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blog-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}