@tailwind base;
@tailwind components;
@tailwind utilities;

/* Netflix Sans Font */

@font-face {
  font-family: 'Netflix Sans';
  src: url('./fonts/NetflixSans_W_Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Netflix Sans';
  src: url('./fonts/NetflixSans_W_Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Netflix Sans';
  src: url('./fonts/NetflixSans_W_Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Netflix-ish accents (keep your layout/background, only colors) */
  --accent-red: #E50914;
  --accent-red-dark: #B20710;
  --surface: rgba(255, 255, 255, 0.75);
  --ink: #111827;
  --muted: #6B7280;

  /* keep these names so you don't have to refactor the rest */
  --kawaii-pink: #F3F4F6;
  /* light gray */
  --kawaii-pink-dark: #E5E7EB;
  /* gray border */
  --kawaii-accent: #E50914;
  /* primary accent */
}

body {
  font-family: 'Netflix Sans', sans-serif;
  background-color: #ffffff;
  /* keep the dotted background but make it neutral */
  background-image: radial-gradient(#E5E7EB 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  color: #111111;
}


h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}


.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
}

/* NETFLIX
/* Netflix-like scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .55);
  border: 2px solid transparent;
  background-clip: content-box;
}

/*
/* Netflix-like hover */
.media-card {
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.media-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
  border-color: rgba(0, 0, 0, .12) !important;
}

/* hace que el póster se vea más “premium” */
.media-card img {
  transition: transform .35s ease, filter .35s ease;
}

.media-card:hover img {
  transform: scale(1.08);
  filter: contrast(1.05) saturate(1.05);
}

/* AVANCES*/
.kawaii-input:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, .18);
  border-color: #E50914 !important;
}

.nav-link.active {
  color: #E50914 !important;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #E50914;
}

.nav-solid {
  background: rgba(255, 255, 255, .95) !important;
  border-bottom-color: rgba(0, 0, 0, .12) !important;
  backdrop-filter: blur(10px);
}

/* Press buttons (Netflix red shadow) */
.kawaii-btn {
  box-shadow: 0 4px 0 var(--accent-red-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}

.kawaii-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-red-dark);
}

.kawaii-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.green-btn {
  box-shadow: 0 4px 0 var(--accent-red-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}

.green-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-red-dark);
}

.green-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Float anim for hero img */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Scrollbar (discreta tipo Netflix) */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.35);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.6);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 120, 0.35) transparent;
}

/* Input focus */
.kawaii-input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

/* Ribbon for featured plan */
.fav-ribbon {
  position: absolute;
  top: 4px;
  right: -32px;
  background: var(--accent-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Card hover */
.media-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-card:hover {
  transform: translateY(-4px);
}

/* Plan hover */
.plan-card {
  transition: transform 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Progress bar */
.prog-bar-inner {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
  border-radius: 9999px;
  height: 100%;
}