/* ========================================
   ПРЕМИАЛЬНЫЙ ДИЗАЙН ДЛЯ ПУБЛИЧНЫХ САЙТОВ БОТОВ
   Вдохновение: ProPublica, LA NACION, El País
   ======================================== */

/* ----- Variables ----- */
:root {
    --bg-body: #f8f9fb;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1f36;
    --text-secondary: #5a6a8a;
    --text-muted: #8a99b9;
    --border-light: #e8ecf2;
    --border-medium: #d0d5e0;

    /* Accent palette */
    --accent-blue: #2c6bff;
    --accent-blue-dark: #1a56e8;
    --accent-green: #0f9d58;
    --accent-orange: #ff6b2b;
    --accent-red: #ea4335;
    --accent-purple: #7c3aed;
    --accent-pink: #e83e8c;
    --accent-teal: #17a2b8;

    /* Shadows - ProPublica inspired subtle depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.10);

    /* Typography - El País inspired */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Category colors - LA NACION inspired */
    --cat-news: #2c6bff;
    --cat-programming: #0f9d58;
    --cat-ai: #7c3aed;
    --cat-russia-life: #ff6b2b;
    --cat-photo: #e83e8c;
    --cat-science: #17a2b8;
    --cat-other: #6c757d;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ----- Navigation (ProPublica inspired minimal bar) ----- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-med);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-categories {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: center;
}

.nav-categories::-webkit-scrollbar {
    display: none;
}

.nav-cat {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-cat:hover {
    color: var(--text-primary);
    background: rgba(44, 107, 255, 0.06);
    border-color: var(--border-light);
}

.nav-cat.active {
    color: white;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ----- Mobile Category Drawer ----- */
.cat-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.cat-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cat-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    box-shadow: var(--shadow-xl);
}

.cat-drawer.open {
    transform: translateX(0);
}

.cat-drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 16px;
}

.cat-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

.cat-drawer-list {
    padding: 12px;
}

.cat-drawer-item {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cat-drawer-item:hover {
    background: var(--bg-body);
}

.cat-drawer-item.active {
    color: var(--accent-blue);
    background: rgba(44, 107, 255, 0.06);
}

/* ----- Main Content ----- */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

/* ----- Hero Section (El País inspired) ----- */
.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-med);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: var(--bg-body);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform var(--transition-slow);
}

.hero-card:hover .hero-image img {
    transform: scale(1.03);
}

.hero-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-summary {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    transition: var(--transition-fast);
}

.hero-link:hover {
    color: var(--accent-blue-dark);
    gap: 8px;
}

/* ----- Category Strip (LA NACION inspired) ----- */
.category-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.cat-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(44, 107, 255, 0.04);
}

.cat-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* ----- Posts Grid (ProPublica inspired card grid) ----- */
.posts-section {
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Адаптация сетки под разные экраны */
@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Баннерный пост — растягивается на всю ширину сетки,
   выделяется градиентным фоном и отступами от остальных карточек */
.post-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #eef6ff 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(44, 107, 255, 0.18);
    transition: var(--transition-med);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    grid-column: 1 / -1;
    min-height: 200px;
    margin: 8px 0;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.post-banner:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(44, 107, 255, 0.35);
}

.post-banner-image-wrap {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    background: var(--bg-body);
    min-height: 180px;
}

.post-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-banner-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-banner-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-banner-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-banner-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Адаптация баннера на мобильных */
@media (max-width: 640px) {
    .post-banner {
        flex-direction: column;
        padding: 8px;
        margin: 6px 0;
    }
    .post-banner-image-wrap {
        flex: none;
        width: 100%;
        padding-top: 56.25%;
    }
    .post-banner-title {
        font-size: 17px;
    }
}

.post-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-med);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.post-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--bg-body);
}

.post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.post-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.post-card-source {
    font-size: 12px;
    color: var(--text-muted);
}

.post-card-quality {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
}

/* ----- Badges ----- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.badge-category {
    background: rgba(44, 107, 255, 0.08);
    color: var(--accent-blue);
}

.badge-category[data-category="news"] { background: rgba(44, 107, 255, 0.08); color: var(--accent-blue); }
.badge-category[data-category="programming"] { background: rgba(15, 157, 88, 0.08); color: var(--accent-green); }
.badge-category[data-category="ai"] { background: rgba(124, 58, 237, 0.08); color: var(--accent-purple); }
.badge-category[data-category="russia_life"] { background: rgba(255, 107, 43, 0.08); color: var(--accent-orange); }
.badge-category[data-category="photo"] { background: rgba(232, 62, 140, 0.08); color: var(--accent-pink); }
.badge-category[data-category="science"] { background: rgba(23, 162, 184, 0.08); color: var(--accent-teal); }
.badge-category[data-category="other"] { background: rgba(108, 117, 125, 0.08); color: var(--text-muted); }

.post-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ----- Load More ----- */
.load-more {
    text-align: center;
    margin-top: 32px;
}

.btn-load-more {
    padding: 12px 32px;
    border-radius: 30px;
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-load-more:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(44, 107, 255, 0.04);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: default;
}

.posts-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ----- Post Detail View (El País article style) ----- */
.post-detail {
    animation: fadeIn var(--transition-med);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-blue);
    cursor: pointer;
    margin-bottom: 24px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    border-radius: 8px;
}

.btn-back:hover {
    background: rgba(44, 107, 255, 0.06);
}

.post-article {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.post-hero-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: var(--bg-body);
}

.post-hero-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.post-header {
    padding: 32px 40px 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-date, .post-source {
    font-size: 13px;
    color: var(--text-muted);
}

.post-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.8px;
}

.post-body {
    padding: 0 40px 32px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-primary);
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body h2, .post-body h3 {
    font-family: var(--font-heading);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.post-body h2 { font-size: 24px; }
.post-body h3 { font-size: 20px; }

.post-body blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 20px;
    margin: 1.5em 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body ul, .post-body ol {
    margin: 1em 0;
    padding-left: 24px;
}

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

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

.post-body a:hover {
    color: var(--accent-blue-dark);
}

.post-footer {
    padding: 20px 40px 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(44, 107, 255, 0.04);
}

/* ----- Quality Score Bar ----- */
.post-quality {
    padding: 0 40px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quality-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-body);
    border-radius: 3px;
    overflow: hidden;
}

.quality-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transition: width var(--transition-slow);
}

.quality-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ----- Similar Posts ----- */
.similar-section {
    margin-top: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ----- Footer (ProPublica minimal footer) ----- */
.site-footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.footer-links a {
    font-size: 13px;
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    background: rgba(44, 107, 255, 0.06);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ----- Skeleton Loading (El País micro-animations) ----- */
.skeleton-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 999;
    padding: 80px 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
    display: none;
}

.skeleton-loader.visible {
    display: block;
}

.skeleton-header {
    margin-bottom: 32px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #e8ecf2 25%, #f0f2f6 50%, #e8ecf2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }

.skeleton-hero {
    margin-bottom: 40px;
}

.skeleton-block {
    background: linear-gradient(90deg, #e8ecf2 25%, #f0f2f6 50%, #e8ecf2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

.skeleton-block.h-300 { height: 300px; }

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.skeleton-card {
    height: 360px;
    background: linear-gradient(90deg, #e8ecf2 25%, #f0f2f6 50%, #e8ecf2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- Toast Notification ----- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-med);
    z-index: 2000;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

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

/* ========================================
   RESPONSIVE (LA NACION mobile-first)
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 240px;
    }

    .hero-image img {
        position: relative;
    }

    .hero-body {
        padding: 28px 32px;
    }

    .hero-title {
        font-size: 24px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-header, .post-body, .post-footer, .post-quality {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-categories {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .cat-drawer-overlay, .cat-drawer {
        display: block;
    }

    .category-strip {
        display: none;
    }

    .main-content {
        padding: 72px 16px 24px;
    }

    .hero-body {
        padding: 20px 24px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-summary {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-card-title {
        font-size: 16px;
    }

    .post-header, .post-body, .post-footer, .post-quality {
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-body {
        font-size: 15px;
    }

    .post-hero-image {
        max-height: 240px;
    }

    .post-hero-image img {
        max-height: 240px;
    }

    .footer-inner {
        padding: 24px 16px;
    }

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

/* Small mobile */
@media (max-width: 480px) {
    .hero-image {
        min-height: 180px;
    }

    .hero-body {
        padding: 16px 18px;
    }

    .hero-title {
        font-size: 18px;
    }

    .post-card-body {
        padding: 16px;
    }

    .post-header, .post-body, .post-footer, .post-quality {
        padding-left: 16px;
        padding-right: 16px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-body {
        font-size: 14px;
    }
}

/* ========================================
   DARK MODE (El País inspired optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f1117;
        --bg-card: #1a1d27;
        --bg-nav: rgba(15, 17, 23, 0.95);
        --text-primary: #e8ecf2;
        --text-secondary: #9aa5b8;
        --text-muted: #6b7a96;
        --border-light: #2a2d3a;
        --border-medium: #3a3d4a;
    }

    .hero-card, .post-article, .post-card {
        border-color: var(--border-light);
    }

    .cat-btn {
        background: var(--bg-card);
        border-color: var(--border-light);
    }

    .cat-btn:hover {
        border-color: var(--accent-blue);
    }

    .skeleton-line, .skeleton-block, .skeleton-card {
        background: linear-gradient(90deg, #1a1d27 25%, #222538 50%, #1a1d27 75%);
        background-size: 200% 100%;
    }

    .post-body a {
        color: #5b8aff;
    }

    .btn-outline {
        background: var(--bg-card);
        border-color: var(--border-light);
    }

    .btn-load-more {
        background: var(--bg-card);
        border-color: var(--border-light);
    }
}