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

:root {
  --color-charcoal-dark: #070708;
  --color-charcoal-medium: #111113;
  --color-charcoal-light: #1c1c1f;
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);
  --color-gold: #eab308;
  --color-gold-metallic: #d4af37;
  --color-gold-glow: rgba(234, 179, 8, 0.3);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-charcoal-dark);
  color: #f3f4f6;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) rgba(10, 10, 10, 0.5);
}

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

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.4);
  border-radius: 9999px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Luxury Spotlights & Gradients */
.bg-spotlight-emerald {
  background: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.15) 0%, rgba(7, 7, 8, 0) 65%);
}

.bg-spotlight-gold {
  background: radial-gradient(circle at 10% 30%, rgba(234, 179, 8, 0.05) 0%, rgba(7, 7, 8, 0) 50%);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: linear-gradient(135deg, #a7f3d0 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gold-gradient {
  border-image: linear-gradient(to right, #ca8a04, #eab308, #fef08a) 1;
}

/* African Luxury Traditional Patterns */
.african-pattern-bg {
  background-image: radial-gradient(rgba(234, 179, 8, 0.04) 1px, transparent 0),
                    radial-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.african-border-pattern {
  background-image: repeating-linear-gradient(45deg, 
    rgba(234, 179, 8, 0.1) 0px, 
    rgba(234, 179, 8, 0.1) 2px, 
    transparent 2px, 
    transparent 8px,
    rgba(16, 185, 129, 0.1) 8px,
    rgba(16, 185, 129, 0.1) 10px,
    transparent 10px,
    transparent 16px
  );
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(17, 17, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Hover States */
.movie-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 
              0 0 15px rgba(16, 185, 129, 0.15);
}

/* Smart TV Navigation Simulation Focus Rules */
.tv-mode-active {
  cursor: none !important;
}

.tv-mode-active button,
.tv-mode-active a,
.tv-mode-active .movie-card,
.tv-mode-active .nav-item,
.tv-mode-active .tv-focusable {
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tv-mode-active .tv-focused {
  position: relative;
  z-index: 50 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 0 3px var(--color-gold),
              0 0 25px var(--color-emerald) !important;
  border-color: var(--color-gold) !important;
}

/* Slider Controls */
.slider-container::-webkit-scrollbar {
  display: none;
}
.slider-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Micro-interactions & Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), 0 0 10px rgba(234, 179, 8, 0.3);
  }
}

.pulse-glow-emerald {
  animation: pulseGlow 2.5s infinite;
}

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

.shimmer-text {
  background: linear-gradient(90deg, #eab308, #10b981, #eab308);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  animation: textShimmer 4s linear infinite;
}

/* Top 10 Rank Text Styling */
.rank-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
  color: rgba(7, 7, 8, 0.85);
  line-height: 0.8;
  letter-spacing: -0.05em;
  transition: all 0.4s ease;
}

.movie-card:hover .rank-number {
  -webkit-text-stroke: 2px var(--color-gold);
  color: rgba(16, 185, 129, 0.1);
  text-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

/* Glass Card 3D Tilt Simulation */
.credit-card-mockup {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(28, 28, 31, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.credit-card-mockup::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
