/* =========================================================
   INFO SAI LAMPUNG - AUTHENTIC EDITORIAL BLUE THEME
   ========================================================= */

@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&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-primary: #1d4ed8;
  --color-primary-dark: #0f2b66;
  --color-primary-light: #3b82f6;
  --color-sky: #0284c7;
  --color-gold: #d97706;
  --color-gold-light: #fbbf24;
  --color-navy: #091326;
  --color-surface: #ffffff;
  --color-canvas: #f4f7fb;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: #1e293b;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.font-editorial {
  font-family: var(--font-serif);
}

.font-code {
  font-family: var(--font-mono);
}

/* Authentic Lampung Geometric Tapis Pattern Overlay */
.tapis-pattern {
  background-color: #0b1f48;
  background-image: radial-gradient(#38bdf8 0.75px, transparent 0.75px), radial-gradient(#1e40af 0.75px, #0b1f48 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.tapis-subtle {
  background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.tapis-border-gold {
  border-image: linear-gradient(to right, #1d4ed8, #f59e0b, #38bdf8, #1d4ed8) 1;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #091326;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================================
   TICKER & MARQUEE SCROLLERS
   ========================================================= */
.ticker-wrap {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 38s linear infinite;
}

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

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.weather-ticker-wrap {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.weather-ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: weatherScroll 48s linear infinite;
}

.weather-ticker-wrap:hover .weather-ticker-move {
  animation-play-state: paused;
}

@keyframes weatherScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Dropcap for Long-form Articles */
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.85;
  font-weight: 800;
  float: left;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  color: var(--color-primary);
}

/* Glassmorphic Effects */
.glass-sapphire {
  background: rgba(9, 19, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Card Glow & Hover Elevate */
.editorial-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(15, 43, 102, 0.12), 0 4px 8px -2px rgba(15, 43, 102, 0.06);
}

/* Authentic Siger Badge Glow */
.siger-badge {
  background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Pulse Glow Animation */
@keyframes pulseBlue {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.pulse-badge {
  animation: pulseBlue 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes highlightFresh {
  0% { background-color: rgba(56, 189, 248, 0.3); transform: scale(1.01); }
  100% { background-color: transparent; transform: scale(1); }
}

.animate-new-article {
  animation: highlightFresh 2.5s ease-out;
}

/* Newspaper / Broadsheet Authentic Layout Enhancements */
.newspaper-masthead {
  border-top: 3px double #0f2b66;
  border-bottom: 3px double #0f2b66;
}

.newspaper-border-double {
  border-top: 3px double #cbd5e1;
  border-bottom: 3px double #cbd5e1;
}

.newspaper-rule-thick-thin {
  border-top: 2px solid #0f2b66;
  border-bottom: 1px solid #cbd5e1;
  padding: 3px 0;
}

.newspaper-rule {
  border-top: 1px solid #cbd5e1;
  position: relative;
}

.newspaper-rule::after {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 8px;
  font-size: 9px;
  color: #1d4ed8;
}

.newspaper-section-header {
  border-bottom: 2px solid #0f2b66;
  position: relative;
  margin-bottom: 1rem;
}

.newspaper-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #d97706;
}

.hero-main-shadow {
  box-shadow: 0 4px 20px -2px rgba(15, 43, 102, 0.08), 0 2px 6px -1px rgba(15, 43, 102, 0.04);
}

.siger-corner-accent {
  background-image: linear-gradient(135deg, rgba(29, 78, 216, 0.04) 25%, transparent 25%), 
                    linear-gradient(225deg, rgba(29, 78, 216, 0.04) 25%, transparent 25%), 
                    linear-gradient(45deg, rgba(29, 78, 216, 0.04) 25%, transparent 25%), 
                    linear-gradient(315deg, rgba(29, 78, 216, 0.04) 25%, #ffffff 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  background-repeat: repeat;
}

.category-pill-authentic {
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
}

.authentic-subheadline {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

/* Authentic News Card with Newspaper Lines */
.authentic-card {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease-in-out;
}

.authentic-card:hover {
  background: #f8fafc;
}

.editorial-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.editorial-kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #d97706;
  border-radius: 1px;
}

.photo-caption-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 11px;
  padding: 6px 12px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editorial-rank-number {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.group:hover .editorial-rank-number {
  color: #1d4ed8;
}

/* Authentic Lampung Tapis Stripe */
.tapis-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #0f2b66 0px,
    #0f2b66 12px,
    #d97706 12px,
    #d97706 18px,
    #2563eb 18px,
    #2563eb 30px,
    #f59e0b 30px,
    #f59e0b 36px
  );
}

