/*
Theme Name: Timesbull Enterprise News
Theme URI: https://timesbull.com/
Author: Timesbull Engineering Team
Author URI: https://timesbull.com/
Description: High-performance, E-E-A-T optimized, enterprise WordPress news theme modeled after Timesbull. Features sticky trending stories, customizer controls, Google AMP engine, mobile drawer navigation, category-wise grid layouts, breaking news ticker, 5-column obsidian footer, and responsive AMP-ready design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, theme-options, translation-ready, e-commerce, dark-mode
Text Domain: timesbull
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary-red: #eb2e2e;
  --primary-red-hover: #c92222;
  --dark-bg: #090e1a;
  --dark-card: #121929;
  --dark-border: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --max-width: 1280px;
}

/* UNBREAKABLE MOBILE-FIRST RESET & SCROLL PREVENT */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.wrap, .tb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ============================================ */
/* PREMIUM GUTENBERG & POST EDITOR STYLING */
/* ============================================ */
.single-article-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 30px;
}

.article-breadcrumbs {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

.article-breadcrumbs a {
  color: #64748b;
}

.article-breadcrumbs a:hover {
  color: var(--primary-red);
}

.article-main-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.25;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.author-info-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.author-name-text {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.article-date-text {
  font-size: 12px;
  color: #64748b;
}

.article-badges-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-views {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #93c5fd;
}

.badge-eeat {
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #6ee7b7;
}

.article-featured-media {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
}

.article-featured-media img {
  width: 100%;
  height: auto;
}

/* 📌 GUTENBERG ENTRY CONTENT STYLING */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  font-family: var(--font-main);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.entry-content h2 {
  font-size: 24px;
  border-left: 4px solid var(--primary-red);
  padding-left: 12px;
}

.entry-content blockquote, .entry-content .wp-block-quote {
  background: #f8fafc;
  border-left: 5px solid var(--primary-red);
  margin: 24px 0;
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 18px;
  color: #1e293b;
}

.entry-content img, .entry-content figure, .entry-content iframe, .entry-content embed, .entry-content video, .entry-content .wp-block-embed {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 20px 0;
}

/* AUTHOR BIO BOX & RELATED STORIES */
.author-bio-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.related-stories-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

.related-stories-title {
  margin-top: 0;
  font-size: 18px;
  font-weight: 900;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-story-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.related-thumb-link {
  height: 130px;
  display: block;
  overflow: hidden;
}

.related-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-heading {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.related-card-meta {
  margin-top: auto;
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.social-share-bar {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.share-buttons-flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }

/* ============================================ */
/* TOP LIVE SPORTS MATCH TICKER BAR */
/* ============================================ */
.sports-live-ticker {
  background: #060a14;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sports-ticker-container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.sports-badge-live {
  background: #eb2e2e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sports-match-card {
  background: #121929;
  border: 1px solid #24314d;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  color: #94a3b8;
  min-width: 220px;
}

.sports-match-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 700;
  color: #cbd5e1;
}

.sports-match-teams {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.sports-match-status {
  font-size: 10.5px;
  color: #38bdf8;
  margin-top: 2px;
}

/* ============================================ */
/* TOP DATE BAR */
/* ============================================ */
.top-date-bar {
  background: #0b1120;
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.top-date-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-date-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-date-badge {
  background: #eb2e2e;
  color: #ffffff;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.top-date-right a {
  color: #94a3b8;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
}

.top-date-right a:hover {
  color: #ffffff;
}

/* ============================================ */
/* BRAND HEADER & LOGO */
/* ============================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #0f172a;
  text-transform: uppercase;
}

.logo-title span {
  color: var(--primary-red);
}

.header-weather-widget {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

/* ============================================ */
/* MAIN NAVIGATION BAR */
/* ============================================ */
.main-nav-bar {
  background: #090e1a;
  border-top: 1px solid #1e293b;
  border-bottom: 3px solid var(--primary-red);
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-menu-list a {
  display: block;
  padding: 12px 0;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu-list a:hover, .nav-menu-list .current-menu-item a {
  color: var(--primary-red);
}

/* MOBILE NAV DRAWER */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #0f172a;
  padding: 4px 8px;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #060a14;
  color: #ffffff;
  z-index: 10000;
  padding: 24px 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-close {
  background: #1e293b;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  float: right;
  cursor: pointer;
  font-weight: 800;
}

/* ============================================ */
/* TAG TICKER BAR */
/* ============================================ */
.tag-ticker-bar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tag-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-label {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.tag-chip {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-chip:hover {
  color: var(--primary-red);
}

/* ============================================ */
/* TWO-COLUMN LAYOUT GRID */
/* ============================================ */
.main-layout-grid {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.left-content-area {
  flex: 1;
  min-width: 0;
}

.right-sidebar {
  width: 340px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  align-self: flex-start;
  flex-shrink: 0;
}

/* ============================================ */
/* STICKY TRENDING STORIES WIDGET */
/* ============================================ */
.sticky-trending-wrapper {
  position: sticky;
  top: 84px;
  z-index: 80;
  align-self: flex-start;
  width: 100%;
}

.trending-widget-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
}

.trending-live-badge {
  background: rgba(235, 46, 46, 0.1);
  color: var(--primary-red);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(235, 46, 46, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trending-live-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary-red);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.trending-card-item:hover {
  transform: translateX(3px);
}

.trending-rank-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.trending-rank-num.rank-1 { background: linear-gradient(135deg, #eb2e2e 0%, #b91c1c 100%); }
.trending-rank-num.rank-2 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.trending-rank-num.rank-3 { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.trending-rank-num.rank-default { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }

.trending-card-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.trending-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-card-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.trending-card-item:hover .trending-card-title {
  color: var(--primary-red);
}

/* ============================================ */
/* OBSIDIAN FOOTER */
/* ============================================ */
.site-footer {
  background: #060a14;
  color: #94a3b8;
  padding-top: 40px;
  padding-bottom: 24px;
  border-top: 4px solid var(--primary-red);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 0;
}

.footer-logo span {
  color: var(--primary-red);
}

.footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 6px;
  display: inline-block;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: #ffffff;
}

/* ============================================ */
/* UNIVERSAL RESPONSIVE BREAKPOINTS (ALL DEVICES) */
/* ============================================ */

/* LAPTOP / TABLET BREAKPOINT (768px - 1024px) */
@media (max-width: 1024px) {
  .main-layout-grid {
    flex-direction: column;
  }
  .right-sidebar {
    width: 100%;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE PHONES BREAKPOINT (< 768px) */
@media (max-width: 768px) {
  .top-date-right {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo-title {
    font-size: 26px;
  }
  .main-nav-bar {
    display: none;
  }
  .article-main-title {
    font-size: 22px;
  }
  .single-article-card {
    padding: 16px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
}

/* SMALL MOBILE PHONES (< 480px) */
@media (max-width: 480px) {
  .wrap, .tb-container {
    padding: 0 12px;
  }
  .logo-title {
    font-size: 22px;
  }
  .header-weather-widget {
    font-size: 10.5px;
    padding: 4px 10px;
  }
}
