/* ==========================================================================
   RUWA JURAI NEWS - MODERN ORANGE NEWS PORTAL STYLESHEET
   Aesthetic: Contemporary High-Impact Editorial, Radiant Tangerine & Slate Contrast
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600;1,700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --primary-orange: #f97316;
  --primary-dark: #ea580c;
  --primary-deep: #c2410c;
  --accent-amber: #f59e0b;
  --accent-fire: #ff4500;
  --dark-base: #090d16;
  --dark-card: #0f172a;
  --dark-border: #1e293b;
  --light-bg: #fffaf5;
  --light-card: #ffffff;
  --light-border: #fed7aa;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-editorial {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.article-headline, .font-serif-headline {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #fb923c;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Reading Progress Bar on Top */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #ff7a00, #ff4500, #f59e0b);
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
}

/* Modern Orange Prism Strip (Replacing old green tapis) */
.orange-prism-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 25%, #f59e0b 50%, #ea580c 75%, #c2410c 100%);
  background-size: 200% 100%;
  animation: shimmerGradient 4s linear infinite;
}

.orange-prism-strip-thick {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #c2410c, #ea580c, #f97316, #f59e0b, #ea580c);
}

@keyframes shimmerGradient {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Live Marquee Ticker Animations */
.marquee-container {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

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

/* Bento Card Hover Glow */
.bento-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(234, 88, 12, 0.12), 0 0 0 1px rgba(249, 115, 22, 0.25);
}

/* Gradient text utility */
.text-gradient-orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-fire {
  background: linear-gradient(135deg, #ff4500, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Pulse Indicator */
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.live-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Dynamic Font Resizing for Reader */
.font-size-small {
  font-size: 0.925rem;
  line-height: 1.7;
}
.font-size-normal {
  font-size: 1.075rem;
  line-height: 1.85;
}
.font-size-large {
  font-size: 1.25rem;
  line-height: 1.95;
}

/* Print Styles */
@media print {
  header, nav, footer, .orange-prism-strip, .share-box, .reader-controls, #sidebar-content, #comment-section, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
