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

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

:root {
    --bg: #0a0a0f;
    --card: #12121a;
    --border: #1e1e2a;
    --text: #ffffff;
    --muted: #9ca3af;
    --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(10, 10, 15, 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: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav {
    display: flex;
    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.15);
    color: var(--text);
}

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

.menu-toggle {
    display: none;
    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;
}

.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.9) 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;
}

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

.hero-meta {
    font-size: 14px;
    color: var(--muted);
}

/* ========== 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-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.article-image {
    height: 180px;
    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: #b0b0b0;
    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: #3a3a4a;
    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.1);
}

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

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

.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 blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #a0a0a0;
}

.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(--card);
    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.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    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.1);
    border: 1px solid rgba(21, 99, 89, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 40px;
}

.tldr-badge {
    background: rgba(21, 99, 89, 0.4);
    color: #2dd4bf;
    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: #2dd4bf;
}

.tldr-link:hover {
    color: #5eead4;
    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;
}

.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.8);
    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;
}

@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-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

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

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

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(180deg, var(--bg) 0%, var(--card) 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(--border);
    border: 1px solid rgba(255,255,255,0.1);
    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: #475569;
    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;
}

.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(--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-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;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-article { height: 400px; }
    .hero-title { font-size: 28px; }
    .hero-content { padding: 24px; }
    .nav { display: none; }
    .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; }
}