/* BharatNews — custom design layer on top of Tailwind (Play CDN).
   Brand palette, Hindi typography, glassmorphism, and reveal animations. */

:root {
  --brand: #c1121f;         /* signature news red */
  --brand-dark: #780000;
  --accent: #003049;
  --ink: #1a1a1a;
  --muted: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Hind', system-ui, sans-serif;
  color: var(--ink);
  background: #f7f7f8;
}
.dark body { background: #0b0f14; color: #e5e7eb; }

/* Headlines use a slightly tighter Devanagari face */
.font-head { font-family: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif; }

/* Brand helpers */
.text-brand { color: var(--brand); }
.bg-brand { background-color: var(--brand); }
.border-brand { border-color: var(--brand); }

/* Glass card */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
}
.dark .glass {
  background: rgba(17,24,39,0.6);
  border-color: rgba(255,255,255,0.08);
}

/* Section heading with the red tab */
.section-title {
  position: relative;
  padding-left: 0.9rem;
  font-weight: 800;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.15em;
  background: var(--brand);
  border-radius: 3px;
}

/* Breaking ticker */
.ticker-mask { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Card hover lift */
.news-card { transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.25); }

/* Line clamp helpers */
.clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Reveal-on-scroll initial state (Motion One animates to visible) */
.reveal { opacity: 0; transform: translateY(16px); }

/* Reading progress bar */
#read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 60; transition: width .1s linear; }

/* Skeleton shimmer */
.skeleton { background: linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 37%,#e5e7eb 63%); background-size:400% 100%; animation: shimmer 1.4s ease infinite; }
.dark .skeleton { background: linear-gradient(90deg,#1f2937 25%,#374151 37%,#1f2937 63%); background-size:400% 100%; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* Article prose tweaks */
.prose-hi p { margin: 0 0 1.1rem; line-height: 2; font-size: 1.12rem; }
.prose-hi h2 { font-weight: 800; font-size: 1.5rem; margin: 1.6rem 0 .8rem; }
.prose-hi img { border-radius: .75rem; margin: 1rem 0; }
