/*
Theme Name: GeneratePress Collectionews
Template: generatepress
Author: Collectionews
Description: Child theme do GeneratePress com identidade editorial inspirada no Rest of World (Versao B).
Version: 1.0
*/

:root {
    --bg: #ffffff;
    --header-bg: #0c0c0c;
    --header-text: #ffffff;
    --accent: #e8402c;
    --text: #111111;
    --muted: #666666;
    --border: #e4e4e4;
    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

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

.cn-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- TOP BAR ---------- */
.cn-topbar {
    background: var(--header-bg);
    color: var(--header-text);
}
.cn-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.cn-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    letter-spacing: .3px;
}
.cn-logo a { color: #fff; }
.cn-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.cn-nav a {
    color: #fff;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: .85;
}
.cn-nav a:hover, .cn-nav a.is-active { opacity: 1; color: var(--accent); }
.cn-subscribe {
    background: var(--accent);
    color: #fff !important;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 2px;
    white-space: nowrap;
}
.cn-subscribe:hover { color: #fff !important; opacity: .9; }

/* ---------- COMMON ---------- */
.cn-eyebrow {
    color: var(--accent);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}
.cn-img-ph {
    background: linear-gradient(135deg, #f1f1f1, #e6e6e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 11px;
    overflow: hidden;
}
.cn-img-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HOME ---------- */
.cn-home-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 10px;
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 48px;
}
.cn-hero { display: flex; gap: 28px; margin-bottom: 40px; padding-bottom: 36px; border-bottom: 2px solid var(--text); }
.cn-hero .cn-img-ph { width: 46%; aspect-ratio: 4/3; flex-shrink: 0; }
.cn-hero-text h1 { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.15; margin: 0 0 14px; }
.cn-hero-text h1 a { color: var(--text); }
.cn-hero-text .cn-dek { font-size: 15px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.cn-byline { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.cn-section { margin-bottom: 40px; }
.cn-section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--text);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.cn-section-title a.cn-more { font-size: 11px; color: var(--accent); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.cn-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cn-card .cn-img-ph { width: 100%; aspect-ratio: 16/10; margin-bottom: 12px; }
.cn-card h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.cn-card h3 a { color: var(--text); }
.cn-card p { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }
.cn-empty-state {
    grid-column: 1 / -1;
    border: 1.5px dashed var(--border);
    padding: 26px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}
.cn-empty-state strong { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 15px; }

/* Sidebar */
.cn-side-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 2px solid var(--text);
    padding-bottom: 10px;
    margin-bottom: 4px;
}
.cn-side-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cn-side-item .cn-img-ph { width: 76px; height: 58px; flex-shrink: 0; font-size: 8px; }
.cn-side-item h4 { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; line-height: 1.3; margin: 2px 0 0; }
.cn-side-item h4 a { color: var(--text); }
.cn-ranking-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.cn-ranking-row .cn-num { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--accent); width: 32px; flex-shrink: 0; }
.cn-ranking-row .cn-img-ph { width: 46px; height: 46px; border-radius: 50%; font-size: 7px; flex-shrink: 0; }
.cn-ranking-row h5 { font-size: 12.5px; font-weight: 700; margin: 0; }
.cn-ranking-row span { font-size: 10.5px; color: var(--muted); }

/* Newsletter strip */
.cn-newsletter {
    background: var(--header-bg);
    color: #fff;
    margin-top: 10px;
}
.cn-newsletter-inner {
    max-width: 1180px; margin: 0 auto; padding: 26px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.cn-newsletter h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 4px; }
.cn-newsletter p { font-size: 12.5px; color: #bbb; margin: 0; }
.cn-newsletter form { display: flex; gap: 8px; }
.cn-newsletter input[type=email] { padding: 10px 14px; border: none; border-radius: 2px; width: 230px; font-size: 13px; }
.cn-newsletter button {
    background: var(--accent); color: #fff; border: none; padding: 10px 20px;
    border-radius: 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; cursor: pointer;
}

/* ---------- ARTICLE ---------- */
.cn-article-hero { width: 100%; max-height: 480px; aspect-ratio: 21/9; }
.cn-article-wrap { max-width: 720px; margin: 0 auto; padding: 44px 24px 10px; text-align: center; }
.cn-article-wrap h1 { font-family: var(--font-head); font-weight: 700; font-size: 38px; line-height: 1.18; margin: 0 0 16px; }
.cn-article-dek { font-size: 16px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.cn-article-meta {
    font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 12px 0; margin-bottom: 30px;
}
.cn-article-body { text-align: left; font-size: 17px; line-height: 1.75; }
.cn-article-body p { margin-bottom: 20px; }
.cn-article-body h2 { font-family: var(--font-head); font-size: 24px; margin: 34px 0 14px; }
.cn-article-body blockquote {
    font-family: var(--font-head); font-size: 22px; font-style: italic; color: var(--accent);
    border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; line-height: 1.4;
}
.cn-related {
    border-top: 2px solid var(--text);
    max-width: 1180px; margin: 50px auto 0; padding: 30px 24px 50px;
}

/* ---------- CATEGORY ARCHIVE ---------- */
.cn-cat-banner { border-bottom: 2px solid var(--text); padding: 40px 0 26px; }
.cn-cat-banner h1 { font-family: var(--font-head); font-weight: 700; font-size: 36px; margin: 0 0 8px; }
.cn-cat-banner p { font-size: 14px; color: var(--muted); max-width: 640px; margin: 0; }
.cn-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 0; }
.cn-cat-grid .cn-img-ph { aspect-ratio: 4/3; margin-bottom: 10px; }
.cn-cat-grid h3 { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.cn-cat-grid .cn-date { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cn-pagination { text-align: center; padding: 20px 0 60px; }
.cn-pagination .page-numbers { display: inline-block; margin: 0 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cn-pagination .page-numbers.current { color: var(--accent); }

/* ---------- PERSONALIDADES ESPECIAL ---------- */
.cn-special-header { border-bottom: 2px solid var(--text); padding: 40px 0 26px; }
.cn-special-header h1 { font-family: var(--font-head); font-weight: 700; font-size: 34px; margin: 0 0 10px; }
.cn-special-header p { font-size: 14.5px; color: var(--muted); max-width: 680px; line-height: 1.5; margin: 0; }
.cn-special-list { max-width: 900px; margin: 0 auto; padding: 20px 0 60px; }
.cn-special-item { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cn-special-item .cn-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--accent); width: 54px; flex-shrink: 0; }
.cn-special-item .cn-img-ph { width: 64px; height: 64px; border-radius: 50%; font-size: 8px; flex-shrink: 0; }
.cn-special-item h4 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.cn-special-item .cn-role { font-size: 11.5px; color: var(--accent); font-weight: 700; display: block; margin-bottom: 4px; }
.cn-special-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }

/* ---------- RESPONSIVE ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
.cn-hero, .cn-hero-text, .cn-home-body, .cn-home-main, .cn-home-side,
.cn-card-grid, .cn-card, .cn-section, .cn-cat-grid { min-width: 0; }
.cn-hero-text h1, .cn-article-wrap h1, .cn-special-header h1, .cn-cat-banner h1,
.cn-hero-text .cn-dek, .cn-card h3, .cn-side-item h4 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 900px) {
    .cn-home-body { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
    .cn-card-grid { grid-template-columns: 1fr 1fr; }
    .cn-cat-grid { grid-template-columns: 1fr 1fr; }
    .cn-hero { flex-direction: column; }
    .cn-hero .cn-img-ph { width: 100%; }
    .cn-wrap { padding: 0 16px; }
    .cn-topbar-inner { padding: 14px 16px; }
}
@media (max-width: 560px) {
    .cn-card-grid, .cn-cat-grid { grid-template-columns: 1fr; }
    .cn-nav { gap: 16px; }
    .cn-hero-text h1 { font-size: 24px; }
    .cn-article-wrap h1 { font-size: 24px; }
    .cn-article-wrap { padding: 28px 16px 10px; }
    .cn-special-header h1, .cn-cat-banner h1 { font-size: 24px; }
    .cn-newsletter-inner { flex-direction: column; align-items: flex-start; }
    .cn-newsletter input[type=email] { width: 100%; }
}
