/* ============================================================
   MEDIABUZZ365 — SHARED STYLESHEET
   ============================================================ */

:root {
  --primary: #2563eb;
  --red:     #dc2626;
  --gold:    #d4af37;
}

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

body {
  font-family: "Noto Sans Telugu", sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* ===== BREAKING NEWS TICKER ===== */
.ticker-bar {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
}
.ticker-label {
  background: #111;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  gap: 6px;
}
.ticker-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  position: relative;
}
.ticker-items {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  height: 100%;
  align-items: center;
  padding-left: 20px;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-items span {
  cursor: pointer;
  transition: opacity 0.2s;
}
.ticker-items span:hover { opacity: 0.8; text-decoration: underline; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; }
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
}
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 50px;
  width: auto;
}
.epaper-btn {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.epaper-btn:hover { background: #b91c1c; }

/* ===== SEARCH BAR ===== */
.search-form {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  background: transparent;
  font-family: "Noto Sans Telugu", sans-serif;
  min-width: 0;
}
.search-form button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}
.search-form button:hover { background: #1d4ed8; }

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px;
  position: relative;
}
.nav-inner::-webkit-scrollbar { height: 0; }
.nav-inner a {
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
  cursor: pointer;
}
.nav-inner a:hover,
.nav-inner a.active { background: rgba(255,255,255,0.18); }
.nav-inner a.home { font-size: 18px; }

/* ===== DROPDOWN ===== */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 2000;
  max-height: 400px;
  overflow-y: auto;
}
.nav-dropdown.show { display: block; }
.dropdown-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.dropdown-grid a {
  color: #111;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s;
  display: block;
  text-decoration: none;
}
.dropdown-grid a:hover { background: #f3f4f6; }

/* ===== IMAGE WRAP ===== */
.img-wrap {
  width: 100%;
  overflow: hidden;
  background: #eef0f3;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.news-side .img-wrap,
.trending-item .img-wrap { aspect-ratio: 4 / 3; }

/* ===== SIDEBAR ITEM ===== */
.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item .img-wrap {
  width: 84px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
}
.sidebar-item h4 {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

/* ===== SHARED HEADING RESETS ===== */
.news-main h3,
.news-side h4,
.trending-item h4 {
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ===== FOOTER ===== */
footer {
  background: #1f2937;
  color: #fff;
  margin-top: 40px;
  padding: 30px 20px 20px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
footer h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--gold);
}
footer a {
  color: #d1d5db;
  text-decoration: none;
  display: block;
  margin: 8px 0;
  font-size: 14px;
}
footer a:hover { color: var(--gold); }
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 13px;
  color: #9ca3af;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: transform 0.3s;
}
.footer-social img:hover { transform: scale(1.15); }
.contact-card {
  text-align: center;
  padding: 16px;
  background: #374151;
  border-radius: 6px;
  margin: 20px auto;
  max-width: 400px;
  font-size: 14px;
}

/* ===== SKELETON LOADER ===== */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}
.skeleton-img { width: 100%; aspect-ratio: 16/9; }
.skeleton-text { height: 14px; margin-top: 8px; width: 90%; }
.skeleton-text.short { width: 60%; }
.skeleton-block {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== SHARED RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo img { height: 40px; }
  .epaper-btn { font-size: 12px; padding: 6px 10px; }
  .search-form { max-width: 200px; }
  .nav-inner a { padding: 12px 14px; font-size: 13px; }
  .dropdown-grid { grid-template-columns: 1fr; padding: 16px; }
  .ticker-bar { font-size: 13px; }
}
