/* ==========================================================================
   BOBIWINE MOVIES DESIGN SYSTEM TOKENS & BASE STYLES
   Exact aesthetic and design language as s-u.in
   ========================================================================== */

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

:root {
  /* Core palette */
  --nv-bg: #0C0D0F;
  --nv-surface: #15171C;
  --nv-surface-hover: #1E2128;
  --nv-card: #1A1D24;
  --nv-card-hover: #222630;
  --nv-border: rgba(255, 255, 255, 0.08);
  --nv-border-light: rgba(255, 255, 255, 0.14);

  /* Typography Colors */
  --nv-text-primary: #FFFFFF;
  --nv-text-secondary: rgba(255, 255, 255, 0.72);
  --nv-text-muted: rgba(255, 255, 255, 0.45);

  /* Default Emerald Accent */
  --nv-accent: #00DC82;
  --nv-accent-strong: #00b86c;
  --nv-accent-rgb: 0, 220, 130;
  --nv-on-accent: #000000;
  --nv-accent-glow: rgba(0, 220, 130, 0.25);

  /* Radius & Geometry */
  --nv-radius-card: 20px;
  --nv-radius-poster: 14px;
  --nv-radius-pill: 9999px;
  --nv-radius-button: 12px;

  /* Elevations & Shadows */
  --nv-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --nv-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --nv-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --nv-shadow-glow: 0 0 25px var(--nv-accent-glow);

  /* Transitions */
  --nv-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --nv-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --nv-duration-fast: 180ms;
  --nv-duration-normal: 280ms;
  --nv-duration-slow: 400ms;

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Accent Themes */
[data-accent="emerald"], :root:not([data-accent]) {
  --nv-accent: #00DC82;
  --nv-accent-strong: #00b86c;
  --nv-accent-rgb: 0, 220, 130;
  --nv-on-accent: #000000;
  --nv-accent-glow: rgba(0, 220, 130, 0.25);
}

[data-accent="purple"] {
  --nv-accent: #b056ea;
  --nv-accent-strong: #8e24aa;
  --nv-accent-rgb: 176, 86, 234;
  --nv-on-accent: #FFFFFF;
  --nv-accent-glow: rgba(176, 86, 234, 0.25);
}

[data-accent="amber"] {
  --nv-accent: #fb8c00;
  --nv-accent-strong: #ef6c00;
  --nv-accent-rgb: 251, 140, 0;
  --nv-on-accent: #000000;
  --nv-accent-glow: rgba(251, 140, 0, 0.25);
}

[data-accent="rose"] {
  --nv-accent: #ff3366;
  --nv-accent-strong: #c2185b;
  --nv-accent-rgb: 255, 51, 102;
  --nv-on-accent: #FFFFFF;
  --nv-accent-glow: rgba(255, 51, 102, 0.25);
}

[data-accent="cyan"] {
  --nv-accent: #00e5ff;
  --nv-accent-strong: #00b0ff;
  --nv-accent-rgb: 0, 229, 255;
  --nv-on-accent: #000000;
  --nv-accent-glow: rgba(0, 229, 255, 0.25);
}

/* AMOLED True Black Mode */
[data-amoled="true"],
html[data-amoled="true"],
body[data-amoled="true"] {
  --nv-bg: #000000 !important;
  --nv-surface: #0A0A0C !important;
  --nv-card: #111114 !important;
  --nv-border: rgba(255, 255, 255, 0.05) !important;
}

/* Base Document Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--nv-bg);
  color: var(--nv-text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Keyframes & Motion */
@keyframes nvFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nvFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes nvShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes nvPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

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

/* Shimmer Skeleton Loaders (s-u.in style) */
.nv-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: nvShimmer 1.8s infinite ease-in-out;
  border-radius: var(--nv-radius-poster);
}

.nv-fade-up {
  animation: nvFadeUp var(--nv-duration-normal) var(--nv-ease-smooth) forwards;
}

.nv-fade-in {
  animation: nvFadeIn var(--nv-duration-fast) var(--nv-ease-smooth) forwards;
}

/* Utilities */
.text-accent {
  color: var(--nv-accent);
}

.bg-accent {
  background-color: var(--nv-accent);
  color: var(--nv-on-accent);
}

.glow-accent {
  box-shadow: var(--nv-shadow-glow);
}
