/* TheWorldSignal.com — Political News Theme */

:root {
    --bg: #f8f8f8;
    --bg-card: #ffffff;
    --bg-surface: #f1f1f1;
    --border: #e5e5e5;
    --border-dark: #d0d0d0;
    --text: #111111;
    --text-secondary: #444444;
    --text-muted: #666666;
    --navy: #111111;
    --navy-light: #222222;
    --accent: #b91c1c;
    --accent-hover: #991b1b;
    --accent-light: rgba(185,28,28,0.08);
    --nav-height: 60px;
    --bar-height: 38px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.10);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Breaking News Bar ── */
.breaking-bar {
    background: #b91c1c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: var(--bar-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.breaking-label {
    background: #fff;
    color: #b91c1c;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.breaking-scroll {
    display: flex;
    align-items: center;
    animation: breakingScroll 40s linear infinite;
    white-space: nowrap;
}
.breaking-scroll:hover { animation-play-state: paused; }
.breaking-item { padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.3); }
.breaking-item a { color: #fff; }
.breaking-item a:hover { text-decoration: underline; }
@keyframes breakingScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Navigation ── */
.main-nav {
    background: var(--navy);
    height: var(--nav-height);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.has-breaking .main-nav {
    top: var(--bar-height);
}
.nav-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-logo {
    font-family: 'Abril Fatface', serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}
.nav-cats {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-cat:hover, .nav-cat.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cat.active { color: #fca5a5; }
.nav-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nav-search input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    width: 180px;
    outline: none;
    transition: all var(--transition);
    font-family: var(--font);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search input:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); width: 220px; }

/* ── Layout ── */
.container { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 28px 0 48px;
    align-items: start;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ── Section Titles ── */
.section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Hero Article ── */
.hero-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 28px;
    display: block;
    cursor: pointer;
}
.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-article:hover img { transform: scale(1.02); }
.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%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 24px;
}
.hero-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.hero-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-meta time { color: rgba(255,255,255,0.75); }

/* ── Article Cards ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .card-img img { transform: scale(1.04); }
.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
    color: var(--accent);
}
.card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 8px;
    flex: 1;
}
.card-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
}
.card-meta time { color: var(--text-muted); }

/* ── Badges ── */
.badge-breaking {
    display: inline-block;
    background: #b91c1c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* ── Sidebar ── */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

/* ── Article List (sidebar) ── */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.list-img {
    width: 72px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-surface);
}
.list-img img { width: 100%; height: 100%; object-fit: cover; }
.list-body { flex: 1; min-width: 0; }
.list-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 3px;
}
.list-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.list-meta time { color: var(--text-muted); }

/* ── Category Header ── */
.cat-header {
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.cat-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.cat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.cat-header h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
}
.cat-tagline {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 640px;
}

/* ── Article Page ── */
.article-header {
    padding: 28px 0 0;
    max-width: 1170px;
}
.article-page-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
}
.article-page-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.article-page-meta time { color: var(--text-muted); }
.cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 4px;
}
.meta-sep { color: var(--border-dark); }
.meta-author { font-weight: 600; color: var(--text-secondary); }
.meta-author:hover { color: var(--accent); }

.article-share { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-btn.copied { background: #16a34a; color: #fff; border-color: #16a34a; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 0 0 48px;
    align-items: start;
}
.article-main { min-width: 0; }
.article-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    max-height: 480px;
    object-fit: cover;
}
.article-excerpt {
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.5;
    margin-bottom: 28px;
}
.article-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.article-body p { margin-bottom: 18px; }
.article-body h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--text);
}
.article-body ul, .article-body ol {
    margin: 0 0 18px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--accent-hover); }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ── In-article related ── */
.in-article-related {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px 16px 14px 16px;
    margin: 24px 0;
}
.inr-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    margin-bottom: 10px;
}
.inr-row-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit;
}
.inr-img-lg {
    width: 90px;
    height: 78px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.inr-body { flex: 1; }
.inr-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.inr-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.inr-excerpt { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* ── Author Card ── */
.author-card {
    display: flex;
    gap: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 36px;
    align-items: flex-start;
}
.author-card-avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.author-card-avatar-link { flex-shrink: 0; }
.author-card-body { flex: 1; }
.author-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.author-card-name { font-size: 17px; font-weight: 800; color: var(--text); display: block; margin-bottom: 2px; }
.author-card-name:hover { color: var(--accent); }
.author-card-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.author-card-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 10px; }
.author-card-more { font-size: 13px; font-weight: 700; color: var(--accent); }
.author-card-more:hover { text-decoration: underline; }

/* ── Author Page ── */
.author-header {
    display: flex;
    gap: 28px;
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    align-items: flex-start;
}
.author-avatar-lg { width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0; }
.author-header-name { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.author-header-title { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.author-header-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 600px; }

/* ── Search ── */
.search-header {
    padding: 28px 0 24px;
}
.search-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--transition);
}
.search-form button:hover { background: var(--accent-hover); }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 28px 0;
}
.pagination a, .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    background: var(--bg-card);
    text-decoration: none;
}
.pagination a:hover, .page-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.active, .page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Read Progress Bar ── */
#read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
    width: 0;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* ── Footer ── */
.site-footer { background: #111; color: #ccc; margin-top: 40px; }
.footer-newsletter {
    background: var(--accent);
    padding: 20px 0;
}
.footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-newsletter-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}
.footer-newsletter-text strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form input {
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    width: 240px;
    font-family: var(--font);
    outline: none;
}
.footer-newsletter-form button {
    padding: 9px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}
.footer-main { padding: 40px 0 32px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-col h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-topnews-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.footer-topnews-num {
    font-size: 20px;
    font-weight: 900;
    color: #333;
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.footer-topnews-title {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
    font-weight: 500;
}
.footer-topnews-title:hover { color: #fff; }
.footer-brand-strip {
    border-top: 1px solid #222;
    padding-top: 24px;
    margin-top: 24px;
}
.footer-brand-logo {
    font-family: 'Abril Fatface', serif;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.footer-brand-tagline {
    font-size: 13px;
    color: #666;
    max-width: 560px;
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid #222;
    padding: 16px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #555;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #555; }
.footer-bottom-links a:hover { color: #fff; }

/* ── Static Pages ── */
.static-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}
.static-page h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.02em; }
.static-page .page-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.static-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.static-page p, .static-page li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 14px; }
.static-page ul, .static-page ol { margin: 0 0 14px 24px; }
.static-page a { color: var(--accent); text-decoration: underline; }

/* ── Team Page ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; }
.team-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.team-title { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.team-bio { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .main-layout { grid-template-columns: 1fr 280px; gap: 24px; }
    .article-layout { grid-template-columns: 1fr 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col-topnews { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .main-layout { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
@media (max-width: 640px) {
    .nav-inner { gap: 16px; }
    .nav-search { display: none; }
    .article-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-newsletter-inner { flex-direction: column; }
    .footer-newsletter-form { flex-wrap: wrap; }
    .footer-newsletter-form input { width: 100%; }
}
