/* La Gazeta - Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --font-serif-masthead: 'Playfair Display', Georgia, serif;
  --font-serif-headline: 'Playfair Display', Georgia, serif;
  --font-serif-body: 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --color-primary: #07172c;
  --color-primary-light: #0d284a;
  --color-accent: #0066cc;
  --color-accent-gold: #c59b27;
  --color-border: #e2e4e8;
  --color-border-dark: #222222;
  --color-bg-paper: #ffffff;
  --color-bg-quote: #f8f8f6;
  --color-text-main: #111827;
  --color-text-muted: #555e6c;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-paper);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Masthead typography */
.font-masthead {
  font-family: var(--font-serif-masthead);
  letter-spacing: 0.08em;
}

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

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

/* Custom newspaper borders */
.border-newspaper-thick {
  border-bottom: 2px solid #111827;
}

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

.border-newspaper-fine {
  border-color: #e5e7eb;
}

/* Hero news card */
.hero-gradient-overlay {
  background: linear-gradient(180deg, rgba(7, 23, 44, 0.4) 0%, rgba(7, 23, 44, 0.92) 80%, rgba(7, 23, 44, 0.98) 100%);
}

.hero-subcard:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Editorial quote card */
.quote-card {
  background: #fbfbfa;
  border: 1px solid #edebe8;
}

/* Article modal reader */
.article-content-body p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #27272a;
  margin-bottom: 1.5rem;
}

.article-content-body p.lead {
  font-size: 1.38rem;
  line-height: 1.75;
  font-weight: 500;
  color: #0f172a;
}

.article-content-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content-body blockquote {
  border-left: 3px solid #07172c;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #1e293b;
  font-size: 1.3rem;
}

.article-content-body blockquote cite {
  display: block;
  font-size: 0.95rem;
  font-style: normal;
  font-family: var(--font-sans);
  color: #64748b;
  margin-top: 0.5rem;
}

/* Hover effects */
.article-hover-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-hover-card:hover {
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  transition: color 0.15s ease;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #07172c;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* IQ Radio Styles */
.radio-pulse {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

/* Audio Visualizer Waves */
.equalizer-bar {
  display: inline-block;
  width: 3px;
  background-color: #0066cc;
  border-radius: 2px;
  animation: equalize 1s infinite alternate ease-in-out;
}

.equalizer-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.equalizer-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.equalizer-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

.paused .equalizer-bar {
  animation: none;
  height: 4px !important;
  background-color: #94a3b8;
}

@keyframes equalize {
  0% { height: 4px; }
  50% { height: 16px; }
  100% { height: 8px; }
}
