/*
Theme Name: BuzzFlash USA
Theme URI: https://buzzflashusa.com
Author: BuzzFlash USA
Description: A viral news WordPress theme for BuzzFlash USA — featuring breaking news ticker, category sections, trending grid, AdSense-ready ad slots, and a full responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buzzflash-usa
Tags: news, blog, custom-colors, custom-logo, featured-images, sticky-post, two-columns, three-columns, four-columns, right-sidebar, translation-ready
*/

/* ========================================
   BUZZFLASH USA — Main Stylesheet
   ======================================== */

:root {
  --red: #e8121b;
  --red-dark: #b50d14;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray-dark: #2d2d2d;
  --gray: #555;
  --gray-light: #888;
  --border: #e0e0e0;
  --bg: #f4f4f4;
  --white: #ffffff;
  --cat-politics: #1a56db;
  --cat-tech: #7c3aed;
  --cat-ent: #d97706;
  --cat-sports: #059669;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-serif: 'Merriweather', serif;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--black);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #222;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 12px; align-items: center; }
.top-bar .separator { opacity: 0.3; }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-right a { color: #888; font-size: 11px; letter-spacing: 0.5px; }
.top-bar-right a:hover { color: var(--red); }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding a { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-buzz { font-family: var(--font-head); font-size: 42px; color: var(--red); letter-spacing: 2px; }
.logo-flash { font-family: var(--font-head); font-size: 42px; color: var(--black); letter-spacing: 2px; }
.logo-usa {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 1px;
}
.custom-logo { max-height: 60px; width: auto; }
.header-tagline {
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}
.header-search { display: flex; border: 2px solid var(--border); overflow: hidden; }
.header-search input {
  padding: 8px 14px;
  font-size: 13px;
  border: none;
  outline: none;
  width: 200px;
  font-family: var(--font-body);
}
.header-search button {
  background: var(--red);
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

/* ========== NAV ========== */
.main-nav { background: var(--dark); position: sticky; top: 80px; z-index: 99; }
.main-nav .container { position: relative; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
}
.nav-menu li a {
  display: block;
  padding: 14px 18px;
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a { color: var(--white); background: var(--red); }
.nav-menu .sub-menu { display: none; position: absolute; background: var(--dark); z-index: 200; min-width: 200px; }
.nav-menu li:hover .sub-menu { display: block; }
.nav-menu .sub-menu li a { padding: 10px 18px; border-bottom: 1px solid #333; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  padding: 14px 0;
  cursor: pointer;
}

/* ========== BREAKING TICKER ========== */
.breaking-ticker {
  background: var(--red);
  color: white;
  padding: 10px 0;
  overflow: hidden;
}
.breaking-ticker .container { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--white);
  color: var(--red);
  padding: 3px 10px;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ========== ADS ========== */
.ad-banner { background: var(--bg); padding: 16px 0; border-bottom: 1px solid var(--border); }
.ad-slot { display: flex; justify-content: center; }
.ad-placeholder {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-leaderboard .ad-placeholder { width: 728px; height: 90px; }
.ad-sidebar .ad-placeholder { width: 300px; height: 250px; margin-top: 16px; }

/* ========== MAIN CONTENT ========== */
.main-content { padding: 32px 0; }

/* ========== HERO GRID ========== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}
.hero-main .hero-image { position: relative; overflow: hidden; margin-bottom: 16px; }
.hero-main .hero-image img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.4s; }
.hero-main:hover .hero-image img { transform: scale(1.02); }
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--black);
}
.hero-content h1 a:hover { color: var(--red); }
.hero-excerpt { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }

/* Category badges */
.category-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  color: white;
  position: absolute;
  top: 12px;
  left: 12px;
}
.cat-politics { background: var(--cat-politics); }
.cat-tech { background: var(--cat-tech); }
.cat-entertainment { background: var(--cat-ent); }
.cat-sports { background: var(--cat-sports); }

.trend-body .category-badge,
.side-card-content .category-badge,
.list-card .category-badge { position: static; margin-bottom: 8px; }

.viral-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.5px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-light);
  flex-wrap: wrap;
}
.article-meta .dot { opacity: 0.4; }
.article-meta .author { font-weight: 600; color: var(--gray); }

/* Hero sidebar */
.hero-side { display: flex; flex-direction: column; gap: 0; }
.section-label {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--black);
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.side-card { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.side-card img { width: 100px; height: 75px; object-fit: cover; flex-shrink: 0; }
.side-card-content { flex: 1; }
.side-card-content h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--black);
}
.side-card-content h4 a:hover { color: var(--red); }
.side-card-content .time { font-size: 12px; color: var(--gray-light); }

/* ========== SECTION HEADERS ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--red);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-title { font-family: var(--font-head); font-size: 24px; letter-spacing: 2px; color: var(--black); }
.section-title .fire { margin-right: 4px; }
.cat-politics-title { color: var(--cat-politics); }
.cat-tech-title { color: var(--cat-tech); }
.cat-ent-title { color: var(--cat-ent); }
.cat-sports-title { color: var(--cat-sports); }
.see-all { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.5px; }

/* ========== TRENDING GRID ========== */
.trending-section { margin-bottom: 48px; }
.trending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trend-card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trend-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.trend-card img { width: 100%; height: 180px; object-fit: cover; }
.trend-number {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: white;
  font-family: var(--font-head);
  font-size: 22px;
  padding: 4px 10px;
  line-height: 1;
  letter-spacing: 1px;
}
.trend-body { padding: 14px; }
.trend-body h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.trend-body h3 a:hover { color: var(--red); }

/* ========== CATEGORIES ROW ========== */
.categories-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 0; }
.category-column { background: var(--white); padding: 24px; }
.list-card.featured-list { margin-bottom: 16px; }
.list-card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 12px; }
.list-card h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.list-card h3 a:hover { color: var(--red); }
.mini-card { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.mini-num { font-family: var(--font-head); font-size: 28px; color: #ddd; line-height: 1; flex-shrink: 0; width: 30px; }
.mini-card h4 { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--dark); }
.mini-card h4 a:hover { color: var(--red); }

/* ========== NEWSLETTER ========== */
.newsletter-section { background: var(--black); margin: 40px 0; padding: 40px; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.newsletter-text h3 { font-family: var(--font-head); font-size: 28px; color: var(--white); letter-spacing: 1px; margin-bottom: 6px; }
.newsletter-text p { color: #aaa; font-size: 14px; }
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form input { padding: 12px 20px; font-size: 14px; border: none; outline: none; width: 280px; font-family: var(--font-body); }
.newsletter-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ========== FOOTER ========== */
.site-footer { background: var(--black); color: #aaa; padding: 48px 0 24px; margin-top: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
  margin-bottom: 24px;
}
.footer-logo { font-family: var(--font-head); font-size: 32px; color: var(--white); letter-spacing: 2px; margin-bottom: 14px; }
.footer-logo span { color: var(--red); }
.footer-col p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.footer-address { font-size: 12px; color: #666; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 12px; color: #555; margin-bottom: 6px; }
.footer-disclaimer { font-size: 11px; color: #444; font-style: italic; }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

/* ========== INNER PAGE STYLES ========== */
.page-hero {
  background: var(--black);
  color: white;
  padding: 40px 0;
  margin-bottom: 40px;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { font-family: var(--font-head); font-size: 52px; letter-spacing: 2px; margin-bottom: 8px; }
.page-hero p { color: #aaa; font-size: 15px; }
.page-content { max-width: 800px; }
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--black);
  border-left: 4px solid var(--red);
  padding-left: 14px;
}
.page-content p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; font-size: 15px; color: #444; line-height: 1.8; }

.two-col-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ========== ARTICLE PAGE ========== */
.article-header { margin-bottom: 24px; }
.article-title { font-family: var(--font-serif); font-size: 34px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; color: var(--black); }
.entry-content p { font-family: var(--font-serif); font-size: 17px; line-height: 1.85; color: #333; margin-bottom: 20px; }
.entry-content img { width: 100%; height: auto; object-fit: cover; margin: 24px 0; }
.entry-content h2 { font-family: var(--font-serif); font-size: 24px; margin: 32px 0 12px; border-left: 4px solid var(--red); padding-left: 14px; }
.entry-content h3 { font-family: var(--font-serif); font-size: 20px; margin: 24px 0 10px; }
.post-tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags span { font-size: 12px; font-weight: 700; color: #888; letter-spacing: 1px; text-transform: uppercase; }
.post-tags a { display: inline-block; background: #f0f0f0; padding: 4px 12px; font-size: 12px; color: #555; margin: 4px 4px 4px 0; }
.post-tags a:hover { background: var(--red); color: white; }
.share-buttons { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.share-btn {
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25d366; }

/* ========== CATEGORY PAGE ========== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background: var(--white); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card img { width: 100%; height: 200px; object-fit: cover; }
.cat-card-body { padding: 16px; }
.cat-card-body h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.cat-card-body h3 a:hover { color: var(--red); }

/* ========== CONTACT ========== */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  outline: none;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { height: 160px; resize: vertical; }
.contact-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--red-dark); }
.info-box { background: var(--white); padding: 24px; border-left: 4px solid var(--red); margin-bottom: 20px; }
.info-box h4 { font-weight: 700; margin-bottom: 8px; color: var(--black); }
.info-box p { font-size: 14px; color: var(--gray); }

/* ========== BREADCRUMB ========== */
.breadcrumb { background: white; border-bottom: 1px solid #eee; padding: 10px 0; font-size: 13px; }
.breadcrumb a { color: #888; }
.breadcrumb span { color: #555; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--dark);
}
.pagination a:hover, .pagination .current { background: var(--red); color: white; border-color: var(--red); }

/* ========== WIDGETS ========== */
.widget { margin-bottom: 28px; }
.widget-title {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget ul li a:hover { color: var(--red); }

/* ========== COOKIE BANNER ========== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #ddd;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  font-size: 14px;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner .btn-accept { background: var(--red); color: white; border: none; padding: 10px 20px; cursor: pointer; font-weight: 700; }
#cookie-banner .btn-decline { background: #333; color: white; border: none; padding: 10px 20px; cursor: pointer; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .logo-buzz, .logo-flash { font-size: 32px; }
  .header-tagline { display: none; }
  .header-search input { width: 140px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); }
  .nav-menu.open { display: flex; }
  .categories-row { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .ad-leaderboard .ad-placeholder { width: 320px; height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}
