/* ================================================
   FEEDCURATO LIGHT THEME - style.css
   ================================================ */

/* ========== RESET & VARIABLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --muted: #64748b;
    --accent: #6366f1;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========== HEADER - Estilo Pills ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.nav a {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text);
}

.nav a.active {
    background: var(--accent);
    color: white;
}

.menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

/* ========== MAIN ========== */
.main {
    padding-top: 76px;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
}

/* ========== HERO ========== */
.hero {
    margin-bottom: 48px;
}

.hero-article {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
}

.hero-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: white;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 800px;
    color: white;
}

.hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.section-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--accent);
}

/* ========== ARTICLES GRID ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.article-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
}

.article-body {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
}

/* ========== ARTICLE SINGLE ========== */
.article {
    padding-top: 5px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 60px;
}

/* Ad Billboard */
.ad-billboard {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 20px;
}

.ad-billboard img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 16px;
    margin-top: 16px;
}

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

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

.breadcrumbs .separator {
    color: var(--border);
}

.breadcrumbs .current {
    color: var(--muted);
}

/* Article header */
.article-header {
    padding-bottom: 24px;
}

.article-header .article-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: white;
}

.article-header .article-category:hover {
    text-decoration: none;
    filter: brightness(1.1);
}

.article-header .article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    display: block;
    -webkit-line-clamp: unset;
}

.article-summary {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Article meta row */
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-meta-row .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

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

.meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background: #d1d5db;
    border-radius: 50%;
}

.time-fresh {
    color: #10b981;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.share-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

/* Article image */
.article-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Article featured image with caption */
.article-featured-figure {
    margin: 5px 0 15px 0;
    padding: 0;
}

.article-featured-figure .article-featured-image {
    margin: 0;
    border-radius: 12px 12px 0 0;
}

.article-featured-figure figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #6b7280;
    padding: 10px 0 0 0;
    line-height: 1.4;
    text-align: left;
}

/* Article content */
.article-content {
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text);
}

.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}

.article-content figure {
    margin: 24px 0;
    padding: 0;
}

.article-content figure img {
    margin: 0;
    border-radius: 8px;
}

.article-content figcaption {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    padding: 8px 0 0 0 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #6b7280;
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text);
    font-weight: 600;
}

/* Ads */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.ad-rectangle img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

/* Article tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tags-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.tag {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--muted);
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* CTA Horizontal */
.cta-horizontal {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cta-horizontal .cta-text {
    font-size: 15px;
    color: var(--text);
}

.cta-horizontal .cta-text span {
    color: var(--muted);
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-btn svg {
    width: 16px;
    height: 16px;
}

/* TL;DR Card */
.tldr-card {
    padding: 18px 22px;
    background: rgba(21, 99, 89, 0.08);
    border: 1px solid rgba(21, 99, 89, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 40px;
}

.tldr-badge {
    background: rgba(21, 99, 89, 0.2);
    color: #0d9488;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.tldr-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.tldr-link {
    color: #0d9488;
}

.tldr-link:hover {
    color: #14b8a6;
    text-decoration: underline;
}

/* Related section */
.related-section {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.related-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.related-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
}

.related-body {
    padding: 16px;
}

.related-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== SHARE MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    animation: modalIn 0.2s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: all 0.2s;
}

.share-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.share-option .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.share-option .label {
    font-size: 13px;
    font-weight: 500;
}

.copy-link {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.copy-link input {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
}

.copy-link button {
    padding: 12px 16px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

/* ========== CATEGORY/TAG PAGE ========== */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--muted);
    font-size: 16px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
    padding: 60px 24px 30px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--muted);
    transition: fill 0.2s;
}

.footer-social a:hover svg {
    fill: white;
}

.footer-social a.facebook:hover { background: #1877f2; }
.footer-social a.twitter:hover { background: #000000; }
.footer-social a.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a.youtube:hover { background: #ff0000; }
.footer-social a.tiktok:hover { background: #000000; }
.footer-social a.linkedin:hover { background: #0a66c2; }
.footer-social a.telegram:hover { background: #0088cc; }
.footer-social a.whatsapp:hover { background: #25d366; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 20px;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 12px;
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 24px;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-text p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-accept {
    background: var(--accent);
    color: white;
}

.cookie-accept:hover {
    filter: brightness(1.1);
}

.cookie-more {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ========== EMPTY STATE ========== */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 1.5;
}

/* ========== SIDEBAR TOGGLE (Hamburguesa - siempre visible) ========== */
.sidebar-toggle {
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

/* ========== SEARCH BUTTON ========== */
.search-btn {
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.search-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

/* ========== SIDEBAR MENU ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card);
    border-right: 1px solid var(--border);
    z-index: 201;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.sidebar-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text);
}

/* ========== SEARCH MODAL ========== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    animation: searchSlideDown 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-form {
    display: contents;
}

.search-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-modal-header svg {
    width: 20px;
    height: 20px;
    stroke: var(--muted);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

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

.search-modal-close {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
}

.search-modal-close:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.search-modal-hint {
    padding: 16px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.search-modal-hint kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin: 0 2px;
}

/* ========== NAV MOBILE ========== */
.nav-mobile {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-article { height: 400px; }
    .hero-title { font-size: 28px; }
    .hero-content { padding: 24px; }
    .nav { display: none !important; }
    .menu-toggle { display: flex; }
    .article-header .article-title { font-size: 28px; }
    .article-meta-row { flex-direction: column; align-items: flex-start; }
    .cta-horizontal { flex-direction: column; text-align: center; }
    .tldr-card { flex-direction: column; }
    .footer-social { gap: 8px; }
    .footer-social a { width: 38px; height: 38px; }
    .footer-links { gap: 16px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .search-btn { display: none; }
    
    .menu-toggle.active svg {
        transform: rotate(90deg);
    }
}
