/*
Theme Name: Tez Khabar Live
Theme URI: https://tezkhabarlive.com
Author: Tez Khabar Editorial Team
Description: Modern & Classic AdSense-compliant WordPress News Theme
Version: 1.0.0
Text Domain: tezkhabar-live
*/

:root {
  --primary-red: #c62828;
  --dark-navy: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bg-light: #f8fafc;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--text-dark); background: #ffffff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Ad Container Defaults (CLS Prevention) */
.ad-slot-wrapper {
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px dashed var(--border-light);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ad-slot-wrapper::before {
  content: 'ADVERTISEMENT';
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.leaderboard-ad { min-height: 90px; width: 100%; max-width: 728px; }
.in-article-ad { min-height: 250px; width: 100%; max-width: 336px; margin: 30px auto; }
.sidebar-ad { min-height: 250px; width: 100%; max-width: 300px; }

/* Header & Breaking News Ticker */
.top-bar { background: var(--dark-navy); color: #fff; font-size: 13px; padding: 8px 0; }
.ticker-wrap { display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.ticker-badge { background: var(--primary-red); color: #fff; padding: 6px 14px; font-weight: 700; text-transform: uppercase; }
.ticker-content { padding-left: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-header { padding: 20px 0; border-bottom: 2px solid var(--primary-red); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-branding h1 { font-size: 32px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: var(--dark-navy); }
.site-branding span { color: var(--primary-red); }

.main-navigation { background: #fff; border-bottom: 1px solid var(--border-light); }
.main-navigation ul { display: flex; list-style: none; gap: 20px; overflow-x: auto; padding: 12px 0; }
.main-navigation a { font-weight: 600; font-size: 15px; color: var(--dark-navy); }
.main-navigation a:hover { color: var(--primary-red); }

/* Magazine 3-Column Homepage Layout */
.magazine-grid { display: grid; grid-template-columns: 280px 1fr 300px; gap: 25px; margin-top: 25px; }
@media (max-width: 991px) {
  .magazine-grid { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; text-align: center; }
}

.hero-lead-card img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; }
.hero-lead-card h2 { font-family: var(--font-serif); font-size: 26px; margin: 15px 0 10px; line-height: 1.3; }
.lead-excerpt { color: var(--text-muted); font-size: 15px; }

.small-news-item { border-bottom: 1px solid var(--border-light); padding-bottom: 12px; margin-bottom: 12px; }
.small-news-item h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.meta-time { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }

/* Article View (Single.php) */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 30px; }
@media (max-width: 768px) { .article-layout { grid-template-columns: 1fr; } }

.article-content { font-family: var(--font-serif); font-size: 18px; line-height: 1.8; color: #222; }
.article-content p { margin-bottom: 24px; }
.article-title { font-size: 34px; line-height: 1.25; margin-bottom: 15px; color: var(--dark-navy); }
.author-box { display: flex; gap: 15px; align-items: center; background: var(--bg-light); padding: 15px; border-radius: 6px; margin-top: 40px; }
.author-box img { border-radius: 50%; width: 60px; height: 60px; }

/* Page Default Layout */
.page-container { max-width: 800px; margin: 30px auto; padding: 20px; background: #ffffff; }
.page-container h1 { font-size: 30px; margin-bottom: 20px; color: var(--dark-navy); }

/* Top Bar Styling */
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.separator { color: #475569; }
.weather-widget {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
#city-selector {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
#city-selector option { background: var(--dark-navy); color: #fff; }
.trending-badge { color: #f59e0b; font-weight: 700; font-size: 12px; }
.trending-links a { color: #cbd5e1; margin-right: 6px; font-size: 12px; }
.trending-links a:hover { color: #fff; text-decoration: underline; }

/* Flash News / Ticker */
.flash-news-wrap {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.flash-news-container { display: flex; align-items: center; }
.flash-badge {
  background: var(--primary-red);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  white-space: nowrap;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.flash-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding-left: 20px;
  width: 100%;
}
.flash-ticker-track {
  display: inline-block;
  animation: marquee 25s linear infinite;
}
.flash-ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  margin-right: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.ticker-item:hover { color: var(--primary-red); }
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Site Branding & Custom Logo */
.site-branding .site-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--dark-navy);
  line-height: 1;
}
.site-branding .site-title span { color: var(--primary-red); }
.site-tagline { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.custom-logo-wrap img { max-height: 70px; width: auto; object-fit: contain; }

/* Navigation Bar & Search */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-menu-list {
  display: flex;
  list-style: none;
  gap: 18px;
  padding: 10px 0;
  margin: 0;
}
.header-menu-list a {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-navy);
}
.header-menu-list a:hover { color: var(--primary-red); }

.nav-search-bar form {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3px 10px;
}
.nav-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  padding: 4px;
}
.nav-search-bar button {
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .top-bar-right { display: none; }
  .header-row { flex-direction: column; text-align: center; }
  .nav-container { flex-direction: column; gap: 10px; }
  .header-menu-list { overflow-x: auto; max-width: 100%; }
}
