/*
Theme Name: US Recession News
Theme URI: https://usrecessionnews.com
Author: US Recession News
Description: A professional, AdSense-ready news and finance blog theme. Dark editorial design with crimson and gold accents. Optimized for SEO and AdSense compliance.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: us-recession-news
Tags: news, finance, blog, dark, responsive, adsense, seo
*/

:root {
  --bg: #0b1623; --bg-card: #112237; --bg-header: #071018; --bg-footer: #060e18;
  --primary: #c8102e; --primary-h: #e8152f; --gold: #f0c040; --gold-l: #ffd86e;
  --text: #d8dde6; --muted: #8899aa; --heading: #eef2f7; --border: #1e3a5f;
  --link: #5aadff; --font-h: 'Oswald', sans-serif; --font-b: 'Source Sans 3', Georgia, serif;
  --r: 6px; --shadow: 0 4px 20px rgba(0,0,0,0.4); --t: 0.25s ease;
  --max: 1200px; --sw: 320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); color: var(--heading); letter-spacing: .02em; line-height: 1.2; }
p { margin-bottom: 1.2em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--bg-header); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.6); }
.header-top { background: var(--bg-footer); padding: 6px 0; border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); align-items: center; }
.header-tagline { color: var(--gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .72rem; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; }
.site-title a { font-family: var(--font-h); font-size: 2rem; font-weight: 700; color: var(--heading); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.site-title a span { color: var(--primary); }
.site-title a em { color: var(--gold); font-style: normal; }
.site-description { font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.main-nav ul li a { font-family: var(--font-h); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); padding: 8px 14px; border-radius: var(--r); transition: all var(--t); display: block; }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item a { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--primary); color: var(--heading); padding: 8px 12px; cursor: pointer; border-radius: var(--r); font-size: 1.2rem; }

.header-ad-bar { background: var(--bg-card); border-top: 1px solid var(--border); padding: 8px 0; text-align: center; }
.ad-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

.breaking-ticker { background: var(--primary); padding: 8px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 20px; }
.ticker-label { background: var(--gold); color: #000; font-family: var(--font-h); font-size: .8rem; font-weight: 700; letter-spacing: .1em; padding: 3px 12px; white-space: nowrap; text-transform: uppercase; flex-shrink: 0; }
.ticker-text { color: #fff; font-size: .85rem; white-space: nowrap; animation: ticker 35s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

.site-main-layout { display: grid; grid-template-columns: 1fr var(--sw); gap: 40px; padding: 40px 0; }

.featured-hero { position: relative; background: var(--bg-card); border-radius: var(--r); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border); }
.featured-hero .hero-img { width: 100%; height: 380px; object-fit: cover; filter: brightness(.5); }
.featured-hero .hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(0deg,rgba(7,16,24,.97),transparent); }
.featured-hero .hero-cat { background: var(--primary); color: #fff; font-family: var(--font-h); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; display: inline-block; margin-bottom: 12px; }
.featured-hero h2 a { color: #fff; font-size: 1.9rem; line-height: 1.15; font-weight: 700; }
.featured-hero h2 a:hover { color: var(--gold); }
.featured-hero .hero-meta { color: var(--muted); font-size: .82rem; margin-top: 8px; }

.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.section-heading h2 { font-family: var(--font-h); font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.section-heading .line { flex: 1; height: 1px; background: var(--border); }
.section-heading .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

.posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 30px; }
.post-card { background: var(--bg-card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.post-card .card-img { width: 100%; height: 180px; object-fit: cover; filter: brightness(.85); transition: filter var(--t); }
.post-card:hover .card-img { filter: brightness(1); }
.post-card .card-body { padding: 18px; }
.post-card .card-cat { font-family: var(--font-h); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--gold); }
.post-card .card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.post-card .card-meta { font-size: .75rem; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.post-card .read-more { margin-left: auto; font-family: var(--font-h); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary); padding: 3px 10px; border-radius: 3px; transition: all var(--t); }
.post-card .read-more:hover { background: var(--primary); color: #fff; }

.ad-in-content { display: block; width: 336px; max-width: 100%; min-height: 280px; background: var(--bg-card); border: 1px dashed var(--border); text-align: center; color: var(--muted); font-size: .8rem; margin: 24px auto; border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.ad-sidebar-rect { display: flex; align-items: center; justify-content: center; width: 300px; max-width: 100%; min-height: 250px; background: var(--bg-card); border: 1px dashed var(--border); color: var(--muted); font-size: .8rem; border-radius: var(--r); margin: 0 auto 24px; }

.sidebar .widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 24px; }
.widget-title { font-family: var(--font-h); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--gold); }
.search-form { display: flex; gap: 6px; }
.search-form input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: var(--r); font-size: .88rem; }
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 9px 14px; border-radius: var(--r); cursor: pointer; font-family: var(--font-h); font-size: .85rem; }
.search-form button:hover { background: var(--primary-h); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: .75rem; padding: 4px 10px; border-radius: 3px; transition: all var(--t); font-family: var(--font-h); letter-spacing: .05em; text-transform: uppercase; }
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.entry-header { margin-bottom: 28px; }
.entry-cat-badge { background: var(--primary); color: #fff; font-family: var(--font-h); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 14px; border-radius: 3px; display: inline-block; margin-bottom: 16px; }
.entry-title { font-size: 2.2rem; line-height: 1.15; font-weight: 700; margin-bottom: 16px; }
.entry-meta { display: flex; gap: 16px; align-items: center; font-size: .82rem; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.entry-meta .meta-author { color: var(--gold); font-weight: 600; }
.entry-content { font-size: 1.05rem; line-height: 1.85; }
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .8em; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .6em; color: var(--gold); }
.entry-content blockquote { border-left: 4px solid var(--primary); background: var(--bg-card); padding: 16px 20px; margin: 1.5em 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.entry-content table th { background: var(--primary); color: #fff; font-family: var(--font-h); padding: 10px 14px; text-align: left; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.key-takeaway { background: linear-gradient(135deg,#112237,#0d1f33); border: 1px solid var(--gold); border-left: 5px solid var(--gold); border-radius: var(--r); padding: 20px 24px; margin: 2em 0; }
.key-takeaway .tk-label { font-family: var(--font-h); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.financial-disclaimer { background: #0d1e2f; border: 1px solid #1e3a5f; border-left: 4px solid var(--muted); border-radius: var(--r); padding: 16px 20px; margin: 2em 0; font-size: .82rem; color: var(--muted); font-style: italic; }
.author-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; gap: 18px; margin: 30px 0; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: 1.6rem; color: #fff; font-weight: 700; }
.author-name { font-family: var(--font-h); color: var(--gold); margin-bottom: 4px; }
.author-bio { font-size: .88rem; color: var(--muted); margin: 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination a, .pagination span { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: var(--r); font-family: var(--font-h); font-size: .9rem; transition: all var(--t); }
.pagination a:hover, .pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

.site-footer { background: var(--bg-footer); border-top: 3px solid var(--primary); margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 50px 0 40px; }
.footer-widget-title { font-family: var(--font-h); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { color: var(--muted); font-size: .88rem; }
.footer-nav ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }

.page-header { background: var(--bg-card); border-bottom: 3px solid var(--primary); padding: 40px 0; margin-bottom: 40px; }
.page-header h1 { font-size: 2.2rem; }
.page-content h2 { font-size: 1.4rem; margin: 2em 0 .8em; color: var(--gold); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-family: var(--font-h); letter-spacing: .05em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 12px 16px; border-radius: var(--r); font-size: .95rem; transition: border-color var(--t); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 12px 28px; border-radius: var(--r); cursor: pointer; font-family: var(--font-h); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; transition: background var(--t); }
.btn-primary:hover { background: var(--primary-h); }

.no-results { text-align: center; padding: 80px 20px; }
.no-results h2 { font-size: 1.8rem; margin-bottom: 12px; }

@media (max-width: 900px) {
  .site-main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-title a { font-size: 1.4rem; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .entry-title { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .sidebar, .breaking-ticker, .header-ad-bar { display: none; }
  body { background: #fff; color: #000; }
}
