@import "tailwindcss";

@theme {
  --color-accent: #d4af37;
  --color-accent-amber: #f59e0b;
  --color-gold-light: #fef08a;
  --color-gold-dark: #b45309;
}

/* ==========================================================================
   HOLLYWOOD LUXURY & AWARDS NIGHT (DARK VELVET & GOLD)
   Groomed for pro cinematic experience: Rich obsidian velvet, polished gold,
   amber radiance, glassmorphism, and elegant typography styling.
   ========================================================================== */

:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #111319;
  --bg-card: rgba(18, 20, 29, 0.75);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(212, 175, 55, 0.2);
  --glow-color: rgba(245, 158, 11, 0.35);
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #d4af37 40%, #f59e0b 70%, #b45309 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  color-scheme: dark;
}

body[data-theme="light"] {
  --bg-primary: #f8f6f0;
  --bg-secondary: #eae6dd;
  --bg-card: #ffffff;
  --text-primary: #121316;
  --text-secondary: #52525b;
  --border-color: rgba(180, 83, 9, 0.25);
  --glow-color: rgba(217, 119, 6, 0.15);
  --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  --gold-glow: 0 10px 30px rgba(217, 119, 6, 0.15);
  color-scheme: light;
}

/* Base Body Ambient Velvet Glow */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(180, 83, 9, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, #07080b 0%, #030406 100%) !important;
  background-attachment: fixed;
}

body[data-theme="light"] {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    linear-gradient(to bottom, #f8f6f0 0%, #ede8de 100%) !important;
}

/* High-End Glassmorphism Velvet Cards */
.bg-white,
.bg-zinc-900,
.bg-zinc-950,
.bg-gray-100,
.bg-gray-50 {
  background-color: var(--bg-card) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(212, 175, 55, 0.15) !important;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="light"] .bg-white,
body[data-theme="light"] .bg-zinc-900,
body[data-theme="light"] .bg-zinc-950,
body[data-theme="light"] .bg-gray-100,
body[data-theme="light"] .bg-gray-50 {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
  box-shadow: 0 12px 35px -8px rgba(180, 83, 9, 0.12) !important;
}

/* Dynamic Interactive Hover Effects */
.group:hover,
.hover:border-amber-500:hover,
.hover:border-orange-500:hover {
  border-color: rgba(254, 240, 138, 0.6) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-2px);
}

/* Header Luxury Bar */
header {
  background-color: rgba(6, 7, 10, 0.82) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* Logo Styling */
#logo-link span {
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fef08a !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Hero Section Plaque */
section.text-center .relative {
  background: linear-gradient(145deg, rgba(18, 20, 29, 0.9) 0%, rgba(8, 9, 13, 0.95) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(245, 158, 11, 0.15) !important;
}

/* Input Fields & Search Bars */
input[type="text"],
input[type="url"] {
  background-color: rgba(7, 8, 12, 0.8) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="url"]:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  outline: none;
}

/* Custom Gold Sliders (Range Input) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(30, 32, 45, 0.8);
  height: 6px;
  border-radius: 9999px;
  outline: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 9999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-gradient);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.9), 0 0 5px rgba(255, 255, 255, 0.8);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
  margin-top: -6px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.35);
  box-shadow: 0 0 22px rgba(254, 240, 138, 1), 0 0 12px rgba(245, 158, 11, 1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--gold-gradient);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.9);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Pills & Buttons */
.category-pill,
#filter-favorites-btn,
#reset-filters-btn,
#copy-prompt-btn,
#movie-favorite-btn,
#movie-share-btn,
#edit-media-btn {
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  background: linear-gradient(180deg, rgba(25, 28, 40, 0.8) 0%, rgba(12, 14, 20, 0.9) 100%) !important;
  color: #fef08a !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.category-pill:hover,
#filter-favorites-btn:hover,
#reset-filters-btn:hover,
#copy-prompt-btn:hover,
#movie-favorite-btn:hover,
#movie-share-btn:hover,
#edit-media-btn:hover {
  background: var(--gold-gradient) !important;
  color: #060709 !important;
  border-color: #fef08a !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-2px);
}

.category-pill.active {
  background: var(--gold-gradient) !important;
  color: #060709 !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7), 0 0 10px rgba(254, 240, 138, 0.5) !important;
}

/* Movie Poster & Card Styling */
.aspect-[2/3] img,
#hero-poster,
.aspect-video img {
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.group:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.movie-card-anim {
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tagline Banner Box */
#hero-tagline-container {
  background: linear-gradient(135deg, rgba(20, 22, 32, 0.95) 0%, rgba(10, 11, 16, 0.98) 100%) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-left: 4px solid #d4af37 !important;
  border-right: 4px solid #f59e0b !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

/* Video Player Frame */
.video-ratio-16-9 iframe {
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.2);
}

/* Code & Console Box */
.prompt-code-editor,
#json-snippet-box {
  font-family: 'JetBrains Mono', monospace;
  background-color: rgba(5, 6, 9, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #fef08a !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Gold Canvas Radar Chart Lighting */
canvas {
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.35));
}

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

::-webkit-scrollbar-track {
  background: rgba(6, 7, 10, 0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37 0%, #b45309 100%);
  border-radius: 99px;
  border: 2px solid rgba(6, 7, 10, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
}

/* Footer Styling */
footer {
  background-color: rgba(6, 7, 10, 0.95) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}
