/*
Theme Name: AmericaNews Bold
Theme URI: https://americanews.com
Author: AmericaNews
Description: A bold, professional news theme for AmericaNews.com with dark navy and red design language, compact story layout with left-aligned thumbnails, and category-based navigation.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: americanews
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --navy: #0a1628;
  --navy-light: #0f2040;
  --navy-mid: #132a52;
  --red: #cc0000;
  --red-hover: #e60000;
  --red-dark: #990000;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e0e0e0;
  --gray-300: #ccc;
  --gray-400: #999;
  --gray-600: #666;
  --gold: #d4a843;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--gray-100);
  color: #222;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ── TOP BAR / HEADER ── */
.top-bar {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  padding: 0;
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

/* ── LOGO: AmericaNews as one word ── */
.logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
}
.logo-america {
  color: var(--white);
}
.logo-news {
  color: var(--red);
}

/* ── SEARCH BOX ── */
.header-search {
  position: relative;
}
.header-search form {
  display: flex;
  align-items: center;
}
.search-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  padding: 8px 40px 8px 14px;
  border-radius: 4px;
  width: 240px;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}
.search-input::placeholder {
  color: rgba(255,255,255,0.5);
}
.search-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.search-btn:hover {
  color: var(--white);
}

/* ── SEARCH DROPDOWN (city autocomplete + article search) ── */
.header-search .search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E8E6E1;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
}
.header-search .search-dropdown div {
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.05em;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.header-search .search-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #1A1A1A !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.header-search .search-dropdown a:hover,
.header-search .search-dropdown a.active {
  background: #f0f7ff;
}
.header-search .search-dropdown a span {
  color: #888;
  font-size: 12px;
  margin-left: 4px;
}
.search-dropdown a.search-all {
  background: var(--gray-100);
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border-bottom: none;
}
.search-dropdown a.search-all:hover {
  background: var(--red);
  color: var(--white);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-date {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── NAVIGATION ── */
.main-nav {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links li a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a,
.nav-links li.current-cat a {
  background: var(--red);
  color: var(--white);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── SECTION DIVIDER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  white-space: nowrap;
}
.section-header .line {
  flex: 1;
  height: 0;
}

/* ── CATEGORY LABEL (red pill) ── */
.cat-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.cat-label:hover { background: var(--red-hover); }

/* ── META / BYLINE ── */
.meta {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.meta a { color: var(--gray-400); text-decoration: none; }
.meta a:hover { color: var(--red); }

/* ════════════════════════════════════════════
   AMERICANEWS COMPACT STORY LIST LAYOUT
   ════════════════════════════════════════════ */

.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  margin-bottom: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.15s;
}
.story-row:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.story-thumb-small {
  flex-shrink: 0;
  width: 140px;
  height: 95px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-thumb-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

.story-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.story-info h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 4px;
}
.story-info h3 a {
  color: var(--navy);
  text-decoration: none;
}
.story-info h3 a:hover { color: var(--red); }
.story-info p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── MAIN CONTENT + SIDEBAR LAYOUT ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-section-header {
  background: var(--navy);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.sidebar-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
  margin-bottom: 2px;
}
.sidebar-card:hover {
  border-left-color: var(--navy);
}
.sidebar-card .cat-label {
  font-size: 9px;
  padding: 2px 6px;
  margin-bottom: 4px;
}
.sidebar-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 4px;
}
.sidebar-card h3 a {
  color: var(--navy);
  text-decoration: none;
}
.sidebar-card h3 a:hover { color: var(--red); }
.sidebar-card .meta { font-size: 11px; }

/* Trending sidebar with numbers */
.sidebar-trending {
  counter-reset: trending;
}
.sidebar-trending .sidebar-card {
  position: relative;
  padding-left: 48px;
}
.sidebar-trending .sidebar-card::before {
  counter-increment: trending;
  content: counter(trending);
  position: absolute;
  left: 12px;
  top: 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--gray-200);
  line-height: 1;
}

/* ── STORY GRID (for category pages) ── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.story-card {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.story-thumb {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  position: relative;
}
.story-card-body {
  padding: 16px;
}
.story-card-body .cat-label {
  font-size: 10px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
.story-card-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
}
.story-card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}
.story-card-body h3 a:hover { color: var(--red); }
.story-card-body .meta { font-size: 11px; }

/* ── SINGLE POST ── */
.single-post-content {
  background: var(--white);
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  border-top: 4px solid var(--red);
}
.single-post-content h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}
.single-post-content .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.single-post-content .entry-content p {
  margin-bottom: 20px;
}
.single-post-content .entry-content img {
  max-width: 100%;
  height: auto;
}
.single-post-content .entry-content h2,
.single-post-content .entry-content h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--navy);
  margin: 28px 0 12px;
}

/* ── PAGINATION ── */
.pagination {
  margin: 28px 0;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pagination .nav-links a,
.pagination .nav-links span {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .nav-links a:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.pagination .nav-links .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── COMING SOON / EMPTY STATE ── */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.coming-soon h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 12px;
}
.coming-soon p {
  color: var(--gray-600);
  font-size: 16px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--red);
  padding: 40px 20px 24px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-copy {
  text-align: center;
  color: var(--gray-600);
  font-size: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sidebar-section-header {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .top-bar-inner { height: 56px; }
  .logo { font-size: 24px; }
  .top-date { display: none; }
  .search-input { width: 160px; font-size: 13px; padding: 6px 34px 6px 10px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open li a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .hamburger { display: block; margin-left: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .single-post-content { padding: 24px 18px; }
  .single-post-content h1 { font-size: 26px; }
  .story-thumb-small {
    width: 110px;
    height: 75px;
  }
  .story-info h3 { font-size: 15px; }
  .story-info p { font-size: 13px; }
  .sidebar {
    grid-template-columns: 1fr;
  }
}
