/* ==========================================================================
   Bharat Pulse Live - Modern Redesign Stylesheet
   Designed for High Performance, Accessibility, and Indian Media Monitoring
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tricolour & Identity Theme Colors */
  --saffron: #ff8c00;
  --saffron-light: #fff3e6;
  --saffron-dark: #cc5200;
  --white: #ffffff;
  --green: #138808;
  --green-light: #e8f5e9;
  --navy: #0b2d6b;
  --navy-dark: #071c42;
  --navy-light: #eef3ff;

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-blue: #2563eb;
  --accent-red: #e11d48;
}

.dark {
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --border-color: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --navy-light: #172554;
  --saffron-light: #2c1a06;
  --green-light: #052e16;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-hi {
  font-family: var(--font-hindi);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Tricolour Accent Line */
.tricolour-stripe {
  height: 4px;
  background: linear-gradient(90deg, #ff8c00 0%, #ff8c00 33%, #ffffff 33%, #ffffff 66%, #138808 66%, #138808 100%);
}

.dark .tricolour-stripe {
  background: linear-gradient(90deg, #ff8c00 0%, #ff8c00 33%, #94a3b8 33%, #94a3b8 66%, #138808 66%, #138808 100%);
}

/* Pulse / ECG Line Animation */
@keyframes pulseBeat {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-animation {
  animation: pulseBeat 2s infinite ease-in-out;
}

/* Live Blink Animation */
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-dot {
  animation: liveBlink 1.4s infinite ease-in-out;
}

/* Breaking Ticker Animation */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 45s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Glassmorphism Panel */
.glass-effect {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-effect {
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 41, 59, 0.8);
}

/* Card Hover Elevation */
.news-card-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(11, 45, 107, 0.08), 0 4px 10px -2px rgba(11, 45, 107, 0.04);
}

.dark .news-card-hover:hover {
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
}

/* Mini Player Dock (floating TV/Radio) */
.floating-player-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* State Badge Grid */
.state-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

/* Toast styling */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
