@import "tailwindcss";

:root {
  --storm-bg: #0a0c12;
  --storm-surface: #12151d;
  --storm-card: #181c28;
  --storm-card-hover: #222838;
  --storm-border: #2a3040;
  --storm-accent: #f97316;
  --storm-accent-glow: #fb923c;
  --storm-text: #e8ecf4;
  --storm-text-dim: #8892a4;
  --storm-green: #22c55e;
  --storm-red: #ef4444;
  --storm-gold: #f59e0b;
  --font-display: 'Rajdhani', 'Outfit', sans-serif;
}

@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    overflow-y: scroll;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    background: var(--storm-bg);
    color: var(--storm-text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

}

@layer base {
  /* ===== TYPOGRAPHY ===== */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: 'Rajdhani', 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  /* Display font utility class */
  .font-display {
    font-family: var(--font-display);
  }
}

/* Prevent iOS Safari auto-zoom on input focus (font-size must be >= 16px) */
input, select, textarea {
  font-size: 16px;
}

/* ===== COMPONENTS ===== */

/* Sport icon nav */
.sport-icon-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Slow rotation — round balls spin when NOT selected */
.sport-ball-spin {
  animation: sportBallRotate 8s linear infinite;
}

@keyframes sportBallRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Ball stops rotating when selected */
.sport-ball-stopped {
  animation: none !important;
}

/* Football — stationary, laces flash every 1.5s */
.football-static .football-laces {
  animation: laceFlash 1.5s ease-in-out infinite;
}

@keyframes laceFlash {
  0%, 100% {
    opacity: 0.15;
    filter: drop-shadow(0 0 0px white);
  }
  40%, 60% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
  }
}

/* League drawer z-index helper */
.z-45 {
  z-index: 45;
}

/* Hide scrollbar on sport icon row */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* League drawer item hover */
.league-drawer-item:hover {
  background: rgba(42, 48, 64, 0.4) !important;
  transform: translateX(2px);
}

/* Cloud pulse animation (legacy) */
@keyframes cloudPulse {

  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 4px rgba(74, 158, 255, 0.3));
  }

  50% {
    filter: brightness(1.3) drop-shadow(0 0 14px rgba(96, 165, 250, 0.6));
  }
}

.cloud-icon {
  animation: cloudPulse 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s;
}

.cloud-icon:hover {
  transform: scale(1.15);
}

/* ===== STORM CLOUD ICON ===== */
@keyframes stormFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

@keyframes rainDrop {
  0% { opacity: 0.5; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes sunPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(251,191,36,0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(251,191,36,0.6)); }
}

@keyframes sunRaysRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cloud-icon-storm {
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.cloud-icon-storm svg {
  animation: stormFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.cloud-icon-storm:hover {
  transform: scale(1.12);
}

.cloud-icon-storm:hover svg {
  filter: drop-shadow(0 2px 12px rgba(74,158,255,0.3));
}

/* Lightning bolt animation */
.lightning-bolt {
  opacity: 0.6;
  transition: opacity 0.05s;
}

.lightning-bolt.lightning-active {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(251,191,36,0.8));
}

/* Storm rain drops animation */
.storm-rain-drops line {
  animation: rainDrop 1.2s ease-in infinite;
}

.storm-rain-drops line:nth-child(2) {
  animation-delay: 0.4s;
}

.storm-rain-drops line:nth-child(3) {
  animation-delay: 0.8s;
}

/* Sunny cloud icon */
.cloud-icon-sunny {
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.cloud-icon-sunny svg {
  animation: sunPulse 2.5s ease-in-out infinite;
}

.cloud-icon-sunny:hover {
  transform: scale(1.1);
}

.cloud-icon-sunny .sun-rays-group {
  transform-origin: 32px 32px;
  animation: sunRaysRotate 20s linear infinite;
}

/* ===== FLYING MATH TRANSITION ===== */
@keyframes flyOutMath {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), var(--fly-y)) scale(var(--fly-scale)) rotate(var(--fly-rot));
  }
}

/* Old flying-math CSS removed — now using canvas-based FlyingMath component */

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--storm-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--storm-border);
  border-radius: 3px;
}

/* Sport tabs horizontal scroll */
.sport-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
  scroll-snap-type: x proximity;
}

.sport-tabs > button {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .sport-tabs {
    gap: 10px;
  }
}

.sport-tabs::-webkit-scrollbar {
  display: none;
}

/* Uniform card heights in grid */
.event-card {
  display: flex;
  flex-direction: column;
}

/* Anti-screenshot for forecast content */
.forecast-content {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Watermark overlay */
.watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.watermark-text {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.04);
  transform: rotate(-35deg);
  white-space: nowrap;
  letter-spacing: 8px;
  font-weight: 700;
}

/* Blur on tab switch */
.blur-on-hidden {
  transition: filter 0.3s;
}

.blur-on-hidden.is-hidden {
  filter: blur(20px);
}

/* Card hover glow */
.event-card {
  transition: all 0.2s ease;
  border: 1px solid var(--storm-border);
  background: var(--storm-card);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.event-card:hover {
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 4px 30px rgba(74, 158, 255, 0.06), 0 0 0 1px rgba(74, 158, 255, 0.08);
  background: var(--storm-card-hover);
}

/* Responsive scaling for small screens */
@media (max-width: 479px) {
  .event-card {
    padding: 16px;
    min-height: 280px !important;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  .event-card {
    padding: 20px;
    min-height: 300px !important;
  }
}

/* Confidence meter */
.confidence-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--storm-red) 0%, var(--storm-gold) 50%, var(--storm-green) 100%);
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.18s ease-out both;
}

.modal-panel {
  animation: modalPanelIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Odds display */
.odds-positive {
  color: var(--storm-green);
}

.odds-negative {
  color: var(--storm-red);
}

/* Loading shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--storm-card) 25%, var(--storm-card-hover) 50%, var(--storm-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* Glass card effect */
.glass-card {
  background: rgba(24, 28, 40, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(42, 48, 64, 0.6);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease both;
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== NEW WEATHER SYSTEM ===== */

/* Base Realistic Background — video-based rolling storm */
.storm-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
}

.storm-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.1);
  object-fit: cover;
  opacity: 0.15;
}

/* Phase Transitions */
.weather-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.weather-layer.active {
  opacity: 1;
}

/* Rain Effect (CSS approach - Phase 2 & 3) */
.rain-layer {
  background: transparent;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(200, 215, 245, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 10px 40px;
  animation: rain-fall 0.3s linear infinite;
  opacity: 0;
}

@keyframes rain-fall {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 10px 40px;
  }
}

/* Heavy rain variant */
.rain-heavy {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(200, 215, 245, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 8px 60px;
  animation: rain-fall-heavy 0.2s linear infinite;
}

@keyframes rain-fall-heavy {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 60px;
  }
}

/* Overlay for Lightning flashes */
.lightning-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ===== PREMIUM SIGNAL UI ===== */

/* Hero Stats Bar */
.hero-stats-bar {
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  position: relative;
}

.hero-stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.3), transparent);
}

/* Hero Free Pick Button (legacy) */
.hero-free-pick-btn {
  background: linear-gradient(135deg, var(--storm-green), #16a34a);
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.hero-free-pick-btn:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

/* Hero Featured Forecast Module */
.hero-forecast-module {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(74, 158, 255, 0.15);
  text-align: left;
}

.hero-forecast-module:hover {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.10) 0%, rgba(34, 197, 94, 0.07) 100%);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 4px 40px rgba(74, 158, 255, 0.1), 0 0 0 1px rgba(74, 158, 255, 0.08);
  transform: translateY(-1px);
}

.hero-forecast-module:active {
  transform: translateY(0px) scale(0.995);
  transition-duration: 0.1s;
}

/* Hero cloud icon */
.hero-cloud-icon {
  animation: cloudPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(74, 158, 255, 0.35));
}

/* Hero microcopy underline on hover */
.hero-forecast-module:hover .hero-microcopy {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Storm Tier Badges */
.storm-tier-badge {
  font-family: 'Outfit', monospace;
  letter-spacing: 0.02em;
}

/* Free Badge */
.free-badge {
  animation: free-pulse 2s ease-in-out infinite;
}

@keyframes free-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.15); }
}

/* Model Edge Panel */
.model-edge-panel {
  background: rgba(10, 12, 18, 0.6);
}

/* Preview Blur */
.preview-blur-container {
  min-height: 200px;
}

.preview-blur-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 21, 29, 0.95) 40%);
}

/* Forecast cloud icon in popup header */
.forecast-cloud-icon {
  animation: cloudPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.4));
}

/* Mobile card centering */
@media (max-width: 639px) {
  .event-card {
    max-width: 100%;
  }
}

/* ===== BLOG CONTENT ===== */
.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--storm-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.blog-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--storm-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  color: var(--storm-text-dim);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
  color: var(--storm-text-dim);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-content ul li {
  list-style-type: disc;
}

.blog-content ol li {
  list-style-type: decimal;
}

.blog-content strong {
  color: var(--storm-text);
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.blog-content th {
  background: var(--storm-card);
  color: var(--storm-text);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--storm-border);
}

.blog-content td {
  padding: 0.75rem;
  border: 1px solid var(--storm-border);
  color: var(--storm-text-dim);
}
/* Navbar storm cloud lightning flash */
@keyframes navLightningFlash {
  0%, 85% { opacity: 1; }
  88% { opacity: 0.3; }
  90% { opacity: 1; }
  93% { opacity: 0.2; }
  95% { opacity: 1; }
  100% { opacity: 1; }
}
.nav-lightning {
  animation: navLightningFlash 4s ease-in-out infinite;
}

/* Left lightning bolt — offset from main */
@keyframes lightningFlashLeft {
  0%, 75% { opacity: 0; }
  76% { opacity: 1; }
  78% { opacity: 0; }
  80% { opacity: 0.8; }
  82% { opacity: 0; }
  84% { opacity: 1; }
  86% { opacity: 0; }
  100% { opacity: 0; }
}
.lightning-bolt-left {
  animation: lightningFlashLeft 3s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Right lightning bolt — different timing */
@keyframes lightningFlashRight {
  0%, 60% { opacity: 0; }
  62% { opacity: 1; }
  64% { opacity: 0.2; }
  66% { opacity: 0.9; }
  68% { opacity: 0; }
  100% { opacity: 0; }
}
.lightning-bolt-right {
  animation: lightningFlashRight 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Electric arcs — rapid flicker */
@keyframes electricArc1 {
  0%, 40% { opacity: 0; transform: scaleY(1); }
  42% { opacity: 0.8; transform: scaleY(1.1); }
  44% { opacity: 0; transform: scaleY(0.9); }
  46% { opacity: 0.6; transform: scaleY(1); }
  48% { opacity: 0; }
  100% { opacity: 0; }
}
.electric-arc-1 {
  animation: electricArc1 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes electricArc2 {
  0%, 55% { opacity: 0; transform: scaleY(1); }
  57% { opacity: 0.7; transform: scaleY(1.15); }
  59% { opacity: 0; transform: scaleY(0.85); }
  61% { opacity: 0.9; transform: scaleY(1.05); }
  63% { opacity: 0; }
  100% { opacity: 0; }
}
.electric-arc-2 {
  animation: electricArc2 3.5s ease-in-out infinite;
  animation-delay: 2s;
  transform-origin: center;
}

/* Lightning glow pulse under cloud */
@keyframes lightningGlow {
  0%, 80% { opacity: 0; }
  85% { opacity: 0.25; }
  88% { opacity: 0; }
  90% { opacity: 0.3; }
  92% { opacity: 0.05; }
  95% { opacity: 0.2; }
  100% { opacity: 0; }
}
.lightning-glow {
  animation: lightningGlow 4s ease-in-out infinite;
}

/* Navbar rain drop animation */
@keyframes navRainFall {
  0% { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(4px); opacity: 0; }
}
.nav-rain {
  animation: navRainFall 1.2s ease-in infinite;
}

/* Thunder rumble animation for headlines */
@keyframes rumble {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1px, 1px) rotate(-0.3deg); }
  20% { transform: translate(1px, -1px) rotate(0.3deg); }
  30% { transform: translate(-2px, 0px) rotate(-0.5deg); }
  35% { transform: translate(2px, 1px) rotate(0.5deg); text-shadow: 0 2px 16px rgba(249,115,22,0.6), 0 0 60px rgba(249,115,22,0.4), 0 4px 30px rgba(0,0,0,0.5); }
  40% { transform: translate(-1px, -1px) rotate(-0.3deg); }
  45% { transform: translate(1px, 0px) rotate(0.2deg); }
  50% { transform: translate(0, 0) rotate(0deg); }
  /* Calm period between rumbles */
  50%, 100% { transform: translate(0, 0) rotate(0deg); }
}

.animate-rumble {
  animation: rumble 3s ease-in-out infinite;
}

/* Electric text — lightning flash + shimmer + shake */
@keyframes electric-text {
  0%, 100% {
    color: #e8ecf4;
    text-shadow: 0 0 10px rgba(74,158,255,0.2), 0 0 20px rgba(74,158,255,0.1);
    transform: translate(0, 0) rotate(0deg);
  }
  /* First strike */
  15% {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(74,158,255,0.8), 0 0 40px rgba(74,158,255,0.5), 0 0 80px rgba(100,180,255,0.3), 0 2px 4px rgba(0,0,0,0.8);
    transform: translate(-1px, 0.5px) rotate(-0.2deg);
  }
  16% {
    color: #e8ecf4;
    text-shadow: 0 0 8px rgba(74,158,255,0.15);
    transform: translate(0.5px, -0.5px) rotate(0.1deg);
  }
  18% {
    color: #f0f4ff;
    text-shadow: 0 0 30px rgba(74,158,255,0.9), 0 0 60px rgba(100,180,255,0.6), 0 0 100px rgba(74,158,255,0.3), -2px 0 8px rgba(74,158,255,0.4), 2px 0 8px rgba(74,158,255,0.4);
    transform: translate(1px, 0.5px) rotate(0.3deg);
  }
  20% {
    color: #e8ecf4;
    text-shadow: 0 0 10px rgba(74,158,255,0.2);
    transform: translate(0, 0) rotate(0deg);
  }
  /* Second strike */
  55% {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(251,191,36,0.7), 0 0 50px rgba(249,115,22,0.4), 0 0 80px rgba(74,158,255,0.3);
    transform: translate(0.5px, -0.5px) rotate(0.15deg);
  }
  56% {
    color: #e8ecf4;
    text-shadow: 0 0 5px rgba(74,158,255,0.1);
    transform: translate(-0.5px, 0.5px) rotate(-0.1deg);
  }
  58% {
    color: #f8faff;
    text-shadow: 0 0 35px rgba(74,158,255,1), 0 0 70px rgba(100,180,255,0.7), 0 0 120px rgba(74,158,255,0.4), -3px 0 10px rgba(251,191,36,0.3), 3px 0 10px rgba(251,191,36,0.3);
    transform: translate(-1px, -0.5px) rotate(-0.2deg);
  }
  60% {
    color: #e8ecf4;
    text-shadow: 0 0 10px rgba(74,158,255,0.2), 0 0 20px rgba(74,158,255,0.1);
    transform: translate(0, 0) rotate(0deg);
  }
}

.animate-electric-text {
  animation: electric-text 4s ease-in-out infinite;
}

/* Navbar shell */
.navbar-shell {
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(249, 115, 22, 0.25);
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
}

.navbar-chalkboard {
  position: absolute;
  inset: 0 auto auto 0;
  width: 200%;
  height: 100%;
  background-image: url(/math-chalkboard.webp);
  background-size: auto 100%;
  background-repeat: repeat-x;
  opacity: 0.35;
}

.navbar-row {
  margin: 0;
  padding: 0;
}

.navbar-logo-wrap {
  z-index: 5;
  margin-top: -2px;
}

.navbar-logo-image {
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.55)) drop-shadow(0 0 40px rgba(249, 115, 22, 0.25));
}

.navbar-nav-link {
  color: var(--storm-text-dim);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.navbar-nav-link.is-active {
  color: var(--storm-accent);
  border-bottom-color: var(--storm-accent);
}

.navbar-credit-pill {
  background: rgba(249, 115, 22, 0.12);
  color: var(--storm-accent);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.navbar-credit-pill.is-low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--storm-red);
  border-color: rgba(239, 68, 68, 0.3);
}

.navbar-auth-link,
.navbar-menu-toggle,
.navbar-menu-link-accent {
  color: var(--storm-accent);
}

.navbar-primary-cta {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.25);
}

.navbar-title-stack {
  margin-top: -10px;
}

.navbar-wordmark {
  font-size: clamp(2rem, 10vw, 8.3rem);
  letter-spacing: 0.05em;
}

.navbar-ai-badge {
  position: relative;
}

.navbar-sports-cursive {
  margin-top: -6px;
}

.navbar-tagline {
  color: var(--storm-accent);
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
  margin-top: 6px;
}

.navbar-dropdown {
  background: rgba(10, 12, 18, 0.98);
}

.navbar-menu-link {
  color: var(--storm-text);
}

.navbar-menu-link-dim,
.navbar-legal-heading {
  color: var(--storm-text-dim);
}

.navbar-rain-man {
  color: var(--storm-gold);
}

/* Sports cursive — glowing red under RAINMAKER */
.sports-cursive {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.95rem, 8.6vw, 6.5rem);
  font-weight: 700;
  font-style: italic;
  color: #ef4444;
  text-shadow:
    0 0 8px rgba(239, 68, 68, 0.8),
    0 0 20px rgba(239, 68, 68, 0.5),
    0 0 40px rgba(239, 68, 68, 0.3),
    0 0 60px rgba(239, 68, 68, 0.15);
  animation: sportsGlow 2.5s ease-in-out infinite;
  letter-spacing: 0.04em;
}

@keyframes sportsGlow {
  0%, 100% {
    color: #ef4444;
    text-shadow:
      0 0 8px rgba(239, 68, 68, 0.8),
      0 0 20px rgba(239, 68, 68, 0.5),
      0 0 40px rgba(239, 68, 68, 0.3);
  }
  50% {
    color: #f87171;
    text-shadow:
      0 0 12px rgba(248, 113, 113, 0.9),
      0 0 30px rgba(239, 68, 68, 0.7),
      0 0 60px rgba(239, 68, 68, 0.4),
      0 0 80px rgba(239, 68, 68, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sports-cursive {
    animation: none;
  }
}

/* Tiny curled bill: ~10x4px with subtle curl highlight */
.cash-bill {
  position: absolute;
  top: -8px;
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 1) 0%,
    rgba(16, 185, 129, 1) 55%,
    rgba(34, 197, 94, 0.95) 100%
  );
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0.5px 1.5px rgba(0, 0, 0, 0.25);
  will-change: top, margin-left, rotate;
  animation:
    cash-fall var(--fall-ms) linear forwards,
    cash-drift var(--drift-ms) ease-in-out infinite,
    cash-wobble calc(var(--drift-ms) * 1.15) ease-in-out infinite;
}

@keyframes cash-fall {
  0%   { top: -8px; opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes cash-drift {
  0%   { margin-left: calc(var(--drift-amp) * -0.5); }
  50%  { margin-left: calc(var(--drift-amp) * 0.5); }
  100% { margin-left: calc(var(--drift-amp) * -0.5); }
}

@keyframes cash-wobble {
  0%   { rotate: calc(var(--rot-deg) * -0.35); }
  50%  { rotate: var(--rot-deg); }
  100% { rotate: calc(var(--rot-deg) * -0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .cash-bill { animation: none !important; }
}

/* Chalkboard math slow scroll */
.chalkboard-scroll {
  animation: chalkboardDrift 30s linear infinite;
  will-change: transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .chalkboard-scroll {
    animation: none;
  }
}

/* AI accent glow — green pulse for "ai" in RAINMAKER */
.ai-accent {
  display: inline-block;
  font-weight: inherit;
  color: #6dff9a;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: #6dff9a;
  text-shadow: 0 0 6px rgba(109, 255, 154, 0.55), 0 0 14px rgba(109, 255, 154, 0.35);
  animation: aiGreenGlow 2.2s ease-in-out infinite;
  will-change: transform, color, text-shadow, opacity;
}

@keyframes aiGreenGlow {
  0%, 100% {
    color: #6dff9a;
    text-shadow: 0 0 6px rgba(109, 255, 154, 0.55), 0 0 14px rgba(109, 255, 154, 0.35);
    transform: scale(1);
    opacity: 0.95;
  }
  35% {
    color: #00ff7b;
    text-shadow: 0 0 10px rgba(0, 255, 123, 0.75), 0 0 22px rgba(0, 255, 123, 0.45);
    transform: scale(1.04);
    opacity: 1;
  }
  70% {
    color: #00d46a;
    text-shadow: 0 0 8px rgba(0, 212, 106, 0.70), 0 0 18px rgba(0, 212, 106, 0.40);
    transform: scale(1.02);
    opacity: 0.98;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-accent {
    animation: none;
    color: #00ff7b;
    text-shadow: 0 0 8px rgba(0, 255, 123, 0.6), 0 0 18px rgba(0, 255, 123, 0.35);
    transform: none;
  }
}

/* Raining balls animation — staggered bounce/fall */
@keyframes rain-ball-fall {
  0% { transform: translateY(-8px); opacity: 0; }
  15% { opacity: 1; }
  80% { transform: translateY(4px); opacity: 1; }
  90% { transform: translateY(2px); opacity: 0.8; }
  100% { transform: translateY(4px); opacity: 0; }
}

.rain-ball-1 {
  animation: rain-ball-fall 2.5s ease-in infinite;
  animation-delay: 0s;
}
.rain-ball-2 {
  animation: rain-ball-fall 2.5s ease-in infinite;
  animation-delay: 0.4s;
}
.rain-ball-3 {
  animation: rain-ball-fall 2.5s ease-in infinite;
  animation-delay: 0.8s;
}

/* Lightning bolts — staggered flashing */
@keyframes logo-bolt-flash {
  0%, 70% { opacity: 0; }
  72% { opacity: 1; }
  74% { opacity: 0.1; }
  76% { opacity: 0.9; }
  78% { opacity: 0; }
  80% { opacity: 1; }
  84% { opacity: 0; }
  100% { opacity: 0; }
}

.logo-bolt-1 { animation: logo-bolt-flash 3s ease-in-out infinite; }
.logo-bolt-2 { animation: logo-bolt-flash 3s ease-in-out infinite; animation-delay: 1s; }
.logo-bolt-3 { animation: logo-bolt-flash 3s ease-in-out infinite; animation-delay: 2s; }

/* Lightning glow under cloud */
@keyframes logo-glow-pulse {
  0%, 65% { opacity: 0; }
  70% { opacity: 0.3; }
  75% { opacity: 0.05; }
  80% { opacity: 0.4; }
  85% { opacity: 0; }
  100% { opacity: 0; }
}

.logo-lightning-glow { animation: logo-glow-pulse 3s ease-in-out infinite; }

/* Ball electric glow — pulses when bolt hits */
@keyframes ball-glow {
  0%, 70% { opacity: 0; }
  75% { opacity: 0.6; }
  80% { opacity: 0.1; }
  85% { opacity: 0.5; }
  90% { opacity: 0; }
  100% { opacity: 0; }
}

.ball-glow-1 { animation: ball-glow 3s ease-in-out infinite; }
.ball-glow-2 { animation: ball-glow 3s ease-in-out infinite; animation-delay: 1s; }
.ball-glow-3 { animation: ball-glow 3s ease-in-out infinite; animation-delay: 2s; }

/* Spark particles — random twinkle */
@keyframes spark-twinkle {
  0%, 80% { opacity: 0; transform: scale(0); }
  85% { opacity: 1; transform: scale(1.5); }
  90% { opacity: 0.3; transform: scale(0.8); }
  95% { opacity: 0.8; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0); }
}

.spark-1 { animation: spark-twinkle 2.5s ease-in-out infinite; animation-delay: 0.2s; }
.spark-2 { animation: spark-twinkle 3s ease-in-out infinite; animation-delay: 0.8s; }
.spark-3 { animation: spark-twinkle 2.8s ease-in-out infinite; animation-delay: 1.5s; }
.spark-4 { animation: spark-twinkle 3.2s ease-in-out infinite; animation-delay: 0.5s; }
.spark-5 { animation: spark-twinkle 2.6s ease-in-out infinite; animation-delay: 1.8s; }
.spark-6 { animation: spark-twinkle 2.9s ease-in-out infinite; animation-delay: 1.2s; }

/* Cloud+ pulsating glow */
@keyframes cloud-plus-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(249,115,22,0.6)) drop-shadow(0 0 16px rgba(249,115,22,0.3));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(249,115,22,0.9)) drop-shadow(0 0 30px rgba(249,115,22,0.5)) drop-shadow(0 0 50px rgba(249,115,22,0.25));
  }
}

.animate-cloud-pulse {
  animation: cloud-plus-pulse 2.5s ease-in-out infinite;
}

/* Cash Drizzle from AI badge */
.cash-drizzle-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 70vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.cash-particle {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 8px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, rgba(34,197,94,1) 0%, rgba(16,185,129,1) 55%, rgba(34,197,94,0.95) 100%);
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0.5px 1.5px rgba(0, 0, 0, 0.25);
  opacity: 0;
  left: var(--x, 50%);
  scale: var(--scale, 1);
  animation: cashParticleFall var(--duration, 3.5s) cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: var(--delay, 0s);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cash-particle::after {
  content: '$';
  font-size: 6px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,0,0,0.5);
}

.cash-particle-0 { --delay: 0.12s; --x: 6%; --duration: 9.4s; --drift: -18px; --rot: -30deg; --opacity: 0.52; --scale: 0.82; }
.cash-particle-1 { --delay: 0.66s; --x: 18%; --duration: 10.8s; --drift: 16px; --rot: 24deg; --opacity: 0.64; --scale: 0.94; }
.cash-particle-2 { --delay: 1.14s; --x: 27%; --duration: 11.7s; --drift: -10px; --rot: -14deg; --opacity: 0.7; --scale: 1.08; }
.cash-particle-3 { --delay: 1.72s; --x: 36%; --duration: 9.9s; --drift: 22px; --rot: 33deg; --opacity: 0.58; --scale: 0.9; }
.cash-particle-4 { --delay: 2.2s; --x: 46%; --duration: 12.4s; --drift: -24px; --rot: -28deg; --opacity: 0.76; --scale: 1.16; }
.cash-particle-5 { --delay: 2.86s; --x: 57%; --duration: 10.2s; --drift: 11px; --rot: 17deg; --opacity: 0.48; --scale: 0.78; }
.cash-particle-6 { --delay: 3.34s; --x: 68%; --duration: 13.1s; --drift: -14px; --rot: -9deg; --opacity: 0.81; --scale: 1.2; }
.cash-particle-7 { --delay: 4.08s; --x: 77%; --duration: 11.1s; --drift: 26px; --rot: 29deg; --opacity: 0.62; --scale: 0.98; }
.cash-particle-8 { --delay: 4.62s; --x: 87%; --duration: 12.7s; --drift: -20px; --rot: -35deg; --opacity: 0.72; --scale: 1.1; }
.cash-particle-9 { --delay: 5.18s; --x: 95%; --duration: 10.5s; --drift: 8px; --rot: 12deg; --opacity: 0.55; --scale: 0.86; }

@keyframes cashParticleFall {
  0%   { top: -4px; opacity: 0; transform: translateX(0) rotate(0deg); }
  2%   { opacity: var(--opacity, 0.7); }
  8%   { transform: translateX(var(--drift, 12px)) rotate(var(--rot, 20deg)); }
  16%  { transform: translateX(calc(var(--drift, 12px) * -0.8)) rotate(calc(var(--rot, 20deg) * -0.7)); }
  24%  { transform: translateX(calc(var(--drift, 12px) * 0.6)) rotate(calc(var(--rot, 20deg) * 0.5)); }
  32%  { transform: translateX(calc(var(--drift, 12px) * -0.5)) rotate(calc(var(--rot, 20deg) * -0.4)); }
  40%  { transform: translateX(calc(var(--drift, 12px) * 0.4)) rotate(calc(var(--rot, 20deg) * 0.3)); }
  50%  { transform: translateX(calc(var(--drift, 12px) * -0.3)) rotate(calc(var(--rot, 20deg) * -0.25)); opacity: var(--opacity, 0.6); }
  60%  { transform: translateX(calc(var(--drift, 12px) * 0.25)) rotate(calc(var(--rot, 20deg) * 0.2)); }
  70%  { transform: translateX(calc(var(--drift, 12px) * -0.2)) rotate(calc(var(--rot, 20deg) * -0.15)); }
  80%  { transform: translateX(calc(var(--drift, 12px) * 0.15)) rotate(calc(var(--rot, 20deg) * 0.1)); opacity: calc(var(--opacity, 0.5) * 0.7); }
  90%  { transform: translateX(calc(var(--drift, 12px) * -0.1)) rotate(calc(var(--rot, 20deg) * -0.05)); opacity: calc(var(--opacity, 0.5) * 0.4); }
  92%  { opacity: calc(var(--opacity, 0.5) * 0.25); }
  97%  { opacity: 0; }
  100% { top: 68vh; opacity: 0; transform: translateX(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cash-particle { animation: none !important; }
}

/* Rain Wire index */
.rainwire-index-shell {
  min-height: 100vh;
}

.rainwire-index-shell.is-homepage {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.28) 0%, rgba(10, 12, 18, 0.72) 22%, rgba(10, 12, 18, 0.9) 100%);
}

.rainwire-index-shell.is-sport-page {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.74) 0%, rgba(10, 12, 18, 0.92) 100%);
}

.rainwire-hero-panel {
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.rainwire-hero-panel.is-homepage {
  background: linear-gradient(135deg, rgba(8, 10, 16, 0.68), rgba(23, 28, 41, 0.8));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.rainwire-hero-panel.is-sport-page {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(34, 197, 94, 0.06));
}

.rainwire-hero-glow {
  background:
    radial-gradient(circle at 16% 22%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(74, 158, 255, 0.16), transparent 24%);
}

.rainwire-hero-logo {
  filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.35));
}

.rainwire-accent-text,
.rainwire-read-link {
  color: var(--storm-accent);
}

.rainwire-heading-text {
  color: var(--storm-text);
}

.rainwire-body-text,
.rainwire-empty-state {
  color: var(--storm-text-dim);
}

.rainwire-primary-link {
  background: var(--storm-accent);
  color: #fff;
}

.rainwire-membership-link {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.32);
  color: var(--storm-text);
}

.rainwire-secondary-link {
  border: 1px solid var(--storm-border);
  color: var(--storm-text);
}

.rainwire-info-card {
  background: rgba(10, 12, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rainwire-sport-pill {
  background: var(--storm-card);
  color: var(--storm-text-dim);
  border: 1px solid var(--storm-border);
}

.rainwire-sport-pill.is-active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--storm-accent);
  border-color: rgba(249, 115, 22, 0.35);
}

.rainwire-post-card,
.rainwire-links-card,
.rainwire-empty-state {
  background: var(--storm-card);
  border: 1px solid var(--storm-border);
}

.rainwire-post-media {
  background: rgba(12, 15, 23, 0.9);
}

.rainwire-post-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.24) 100%);
}

.rainwire-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rainwire-timestamp {
  color: rgba(136, 146, 164, 0.88);
}

/* ===== DRUDGE NEWS FEED ===== */

/* Trending bar */
.drudge-trending-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--storm-red);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.06);
  overflow: hidden;
}

.drudge-trending-label {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--storm-red);
  white-space: nowrap;
  flex-shrink: 0;
}

.drudge-trending-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  animation: drudgeTicker 40s linear infinite;
}
.drudge-trending-scroll::-webkit-scrollbar { display: none; }

.drudge-trending-scroll:hover {
  animation-play-state: paused;
}

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

.drudge-trending-item {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--storm-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.drudge-trending-item:hover {
  color: var(--storm-red);
}

.drudge-trending-sep {
  color: var(--storm-border);
  margin: 0 8px;
  font-size: 0.75rem;
}

.drudge-breaking-prefix {
  color: var(--storm-red);
  font-weight: 800;
  margin-right: 4px;
}

/* Filter pills */
.drudge-filter-pill {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--storm-card);
  color: var(--storm-text-dim);
  border: 1px solid var(--storm-border);
}
.drudge-filter-pill:hover {
  transform: translateY(-1px);
}

.drudge-filter-pill[data-tone='orange'][data-active='true'] {
  background: rgba(249, 115, 22, 0.15);
  color: var(--storm-accent);
  border-color: rgba(249, 115, 22, 0.4);
}

.drudge-filter-pill[data-tone='orange']:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--storm-accent);
  border-color: rgba(249, 115, 22, 0.32);
}

.drudge-filter-pill[data-tone='red'][data-active='true'] {
  background: rgba(239, 68, 68, 0.15);
  color: var(--storm-red);
  border-color: rgba(239, 68, 68, 0.4);
}

.drudge-filter-pill[data-tone='red']:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--storm-red);
  border-color: rgba(239, 68, 68, 0.32);
}

/* 3-column grid */
.drudge-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .drudge-grid {
    grid-template-columns: 1fr;
  }
  .drudge-center {
    border-left: none !important;
    border-right: none !important;
    border-top: 2px solid var(--storm-border);
    border-bottom: 2px solid var(--storm-border);
    padding-top: 16px;
    padding-bottom: 16px;
    margin: 16px 0;
  }
}

/* Column styling */
.drudge-column {
  padding: 0 12px;
}

.drudge-center {
  border-left: 1px solid var(--storm-border);
  border-right: 1px solid var(--storm-border);
}

/* Section headers */
.drudge-section {
  margin-bottom: 20px;
}

.drudge-section-header {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--storm-red);
  border-bottom: 2px solid var(--storm-red);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.drudge-section-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Headline links */
.drudge-headline-link {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  line-height: 1.35;
  border-bottom: 1px solid rgba(42, 48, 64, 0.4);
  transition: background 0.1s;
}
.drudge-headline-link:hover {
  background: rgba(74, 158, 255, 0.04);
}
.drudge-headline-link:hover .drudge-headline-text {
  text-decoration: underline;
}

.drudge-headline-text {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--storm-accent);
  letter-spacing: 0.02em;
}

.drudge-breaking .drudge-headline-text {
  color: var(--storm-red);
}

.drudge-source-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--storm-text-dim);
  margin-left: 6px;
  text-transform: none;
}

.drudge-time-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  color: rgba(136, 146, 164, 0.6);
  margin-left: 6px;
  text-transform: none;
}

/* Featured / Breaking block */
.drudge-featured-block {
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--storm-border);
}

.drudge-featured-link {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  line-height: 1.3;
  transition: background 0.1s;
}
.drudge-featured-link:hover {
  background: rgba(239, 68, 68, 0.04);
}
.drudge-featured-link:hover .drudge-featured-text {
  text-decoration: underline;
}

.drudge-featured-text {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--storm-text);
  letter-spacing: 0.03em;
}

.drudge-breaking .drudge-featured-text,
.drudge-featured-link.drudge-breaking .drudge-featured-text {
  color: var(--storm-red);
}

/* Single-sport column view */
.drudge-single-column {
  max-width: 700px;
  margin: 0 auto;
}

/* ─── Curated Visual Cards ─── */
.drudge-curated-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .drudge-curated-block {
    grid-template-columns: 1fr;
  }
}

.drudge-curated-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--storm-card);
  border: 1px solid var(--storm-border);
  transition: border-color 0.2s, transform 0.2s;
}
.drudge-curated-card:hover {
  border-color: var(--storm-accent);
  transform: translateY(-1px);
}

.drudge-curated-card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background-color: #141821;
}

.drudge-curated-card-content {
  padding: 12px 14px;
}

.drudge-curated-card-title {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--storm-text);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.drudge-curated-card-summary {
  font-size: 0.82rem;
  color: var(--storm-text-dim);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drudge-curated-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ─── Engagement Badge ─── */
.drudge-engagement-badge {
  font-size: 0.75rem;
  margin-right: 4px;
  vertical-align: middle;
}

/* ─── Celebrity Tag Pills ─── */
.drudge-celeb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.drudge-celeb-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--storm-accent);
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 10px;
}

.drudge-headline-wrapper {
  margin-bottom: 2px;
}

/* Headline with thumbnail */
.drudge-headline-link.drudge-has-thumb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.drudge-headline-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #141821;
}

.drudge-headline-body {
  flex: 1;
  min-width: 0;
}

/* ─── Forecasts Promo ─── */
.drudge-forecast-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(74,158,255,0.08), rgba(34,197,94,0.06));
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.drudge-forecast-promo:hover {
  border-color: var(--storm-accent);
  background: linear-gradient(135deg, rgba(74,158,255,0.14), rgba(34,197,94,0.10));
}

.drudge-forecast-promo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.drudge-forecast-promo-title {
  display: block;
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--storm-text);
  letter-spacing: 0.04em;
}

.drudge-forecast-promo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--storm-text-dim);
  margin-top: 2px;
}

.drudge-forecast-promo-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--storm-accent);
  flex-shrink: 0;
}

/* ── Social Feed Styles ── */

.social-feed-container {
  width: 100%;
}

.social-persona-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--storm-border);
  scrollbar-width: none;
}
.social-persona-tabs::-webkit-scrollbar { display: none; }

.social-persona-tab {
  --persona-color: var(--storm-accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--storm-card);
  color: var(--storm-text-dim);
  border: 1px solid var(--storm-border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-display), sans-serif;
}
.social-persona-tab:hover {
  background: var(--storm-card-hover);
  color: var(--storm-text);
}
.social-persona-tab.active {
  background: var(--persona-color, var(--storm-accent));
  color: #fff;
  border-color: var(--persona-color, var(--storm-accent));
}
.social-persona-tab-emoji {
  margin-right: 0.3rem;
}

.persona-accent-the_sharp,
.persona-accent-the_degen {
  --persona-color: #f97316;
  --card-accent: #f97316;
  --placeholder-color: #f97316;
}

.persona-accent-the_educator {
  --persona-color: #22c55e;
  --card-accent: #22c55e;
  --placeholder-color: #22c55e;
}

.persona-accent-the_culture_host {
  --persona-color: #a855f7;
  --card-accent: #a855f7;
  --placeholder-color: #a855f7;
}

.social-feed-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.social-feed-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(22, 28, 41, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.social-feed-status-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-feed-status-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--storm-text-dim);
}

.social-feed-status-text {
  font-size: 0.85rem;
  color: var(--storm-text);
}

.social-feed-mode-pill,
.social-feed-new-pill,
.drudge-social-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-feed-mode-pill::before,
.drudge-social-live-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: socialPulseDot 1.8s ease-in-out infinite;
}

.social-feed-mode-posted {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.social-feed-mode-preview {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.social-feed-new-pill {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
}

@keyframes socialPulseDot {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.social-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .social-feed-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.social-feed-card {
  background: var(--storm-card);
  border: 1px solid var(--storm-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-left: 3px solid var(--card-accent, var(--storm-accent));
  text-decoration: none;
  color: inherit;
}
.social-feed-card-linkable {
  cursor: pointer;
}
.social-feed-card-linkable:hover {
  border-color: var(--card-accent, var(--storm-accent));
  box-shadow: 0 0 16px rgba(74, 158, 255, 0.08);
}
.social-feed-card-static {
  cursor: default;
}

.social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.social-persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--persona-color, var(--storm-accent));
}

.social-persona-avatar {
  font-size: 0.85rem;
}

.social-persona-label {
  font-family: var(--font-display), sans-serif;
}

.social-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-league-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(74, 158, 255, 0.12);
  color: var(--storm-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-timestamp {
  font-size: 0.75rem;
  color: var(--storm-text-dim);
}

.social-card-body {
  margin-bottom: 0.6rem;
}

.social-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--storm-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.social-card-image {
  margin-bottom: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
}
.social-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.social-card-placeholder {
  position: relative;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(10, 12, 18, 0.95) 0%,
    color-mix(in srgb, var(--placeholder-color) 18%, #0a0c12) 50%,
    rgba(10, 12, 18, 0.95) 100%
  );
  border: 1px solid color-mix(in srgb, var(--placeholder-color) 25%, transparent);
}
.social-placeholder-emoji {
  font-size: 2rem;
  opacity: 0.7;
}
.social-placeholder-brand {
  font-family: var(--font-display), sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--placeholder-color) 50%, var(--storm-text-dim));
}
.social-placeholder-type {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--storm-text-dim);
  opacity: 0.5;
}

.social-thread-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--storm-accent);
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(74, 158, 255, 0.08);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(42, 48, 64, 0.5);
}

.social-engagement-bar {
  display: flex;
  gap: 0.75rem;
}

.social-metric {
  font-size: 0.75rem;
  color: var(--storm-text-dim);
}

.social-view-on-x {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--storm-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.social-view-on-x:hover {
  color: #fff;
}

.social-preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--storm-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--storm-border);
}

.social-page-btn {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--storm-card);
  color: var(--storm-text);
  border: 1px solid var(--storm-border);
  cursor: pointer;
  transition: all 0.2s;
}
.social-page-btn:hover:not(:disabled) {
  background: var(--storm-card-hover);
  border-color: var(--storm-accent);
}
.social-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.social-page-info {
  font-size: 0.85rem;
  color: var(--storm-text-dim);
}

.social-feed-loading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Source Badges (unified feed) ─── */
.drudge-source-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  color: #fff;
}
.drudge-source-rainwire {
  background: #ef4444;
}
.drudge-source-social {
  background: #a855f7;
}

/* ─── Social Card Deep-Link Highlight ─── */
.social-card-highlighted {
  animation: socialHighlightPulse 2s ease-out;
}
@keyframes socialHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
  }
  100% {
    box-shadow: none;
    border-color: var(--storm-border);
  }
}

/* ─── Social Wire Section in Drudge Grid ─── */
.drudge-social-section {
  margin-top: 8px;
}
.drudge-social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 10px;
}

.drudge-social-title {
  color: #a855f7;
  border-color: #a855f7;
  margin-bottom: 0;
}

.drudge-social-live-pill {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.24);
  flex-shrink: 0;
}

.drudge-social-grid {
  gap: 0.75rem;
}

.drudge-social-section .social-feed-card {
  padding: 0.75rem 0.85rem;
}
.drudge-social-section .social-card-text {
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drudge-social-section .social-card-placeholder {
  height: 70px;
}

.storm-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.storm-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drudge-midfeed-cta {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 88, 12, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.drudge-midfeed-title {
  color: var(--storm-accent);
}

.drudge-midfeed-link {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.drudge-heading-text {
  color: var(--storm-text);
}

.drudge-muted-text {
  color: var(--storm-text-dim);
}

.drudge-pagination-button {
  background: var(--storm-card);
  color: var(--storm-text-dim);
  border: 1px solid var(--storm-border);
}

.drudge-skeleton-w-60 {
  width: 60%;
}

.drudge-skeleton-w-72 {
  width: 72%;
}

.drudge-skeleton-w-84 {
  width: 84%;
}

@media (max-width: 768px) {
  .social-feed-status {
    padding: 0.85rem 0.9rem;
  }

  .social-feed-status-main,
  .social-feed-status-meta,
  .drudge-social-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Purchase success toast animation */
@keyframes slide-down {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.animate-slide-down {
  animation: slide-down 0.4s ease-out forwards;
}
