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

:root {
  --primary-red: #E50914;
  --primary-red-hover: #ff1f2d;
  --primary-red-glow: rgba(229, 9, 20, 0.4);
  --bg-dark: #08080B;
  --bg-surface: #101015;
  --bg-card: #15151C;
  --border-subtle: #242430;
  --border-red: rgba(229, 9, 20, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #F3F4F6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08080b;
}
::-webkit-scrollbar-thumb {
  background: #2b1216;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Glow & Ambient Backgrounds */
.red-glow {
  box-shadow: 0 0 30px var(--primary-red-glow);
}
.red-glow-lg {
  box-shadow: 0 0 60px rgba(229, 9, 20, 0.35);
}
.red-text-glow {
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.ambient-radial-red {
  background: radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.18) 0%, rgba(8, 8, 11, 0) 70%);
}

.ambient-corner-red {
  background: radial-gradient(circle at 100% 0%, rgba(229, 9, 20, 0.15) 0%, rgba(8, 8, 11, 0) 50%);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(20, 20, 27, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 15px 35px -10px rgba(229, 9, 20, 0.25);
}

.glass-navbar {
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
}

/* Red Gradients */
.btn-red-gradient {
  background: linear-gradient(135deg, #E50914 0%, #B30710 100%);
  transition: all 0.25s ease;
}
.btn-red-gradient:hover {
  background: linear-gradient(135deg, #ff1f2d 0%, #D40813 100%);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.55);
}

.badge-red {
  background: rgba(229, 9, 20, 0.15);
  color: #ff4d58;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Wheel Canvas Container */
.wheel-container {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.3));
}
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid #E50914;
  z-index: 20;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-in-out;
}

/* Subtle Pulse */
@keyframes redPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.8);
  }
}
.animate-red-pulse {
  animation: redPulse 2.5s infinite;
}

/* Line clamp helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
