/* Glassmorphism Netflix-Inspired Dark Mode Default */
:root {
  --bg-primary: #0f1016;
  --bg-secondary: #181a24;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-main: #f8f9fa;
  --text-muted: #a0a5b5;
  --accent-color: #e50914;
  --accent-hover: #b80710;
  --navbar-bg: rgba(15, 16, 22, 0.85);
}

[data-theme="light"] {
  --bg-primary: #f4f6f9;
  --bg-secondary: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent-color: #e50914;
  --accent-hover: #b80710;
  --navbar-bg: rgba(255, 255, 255, 0.9);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

/* Sticky Glass Navbar */
.navbar-glass {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

/* Movie Poster Container */
.poster-wrapper {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  aspect-ratio: 2/3;
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-wrapper img {
  transform: scale(1.06);
}

/* Badges */
.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-trending {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #f7971e, #ffd200);
  color: #000;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Price Tag */
.price-tag {
  background: rgba(229, 9, 20, 0.2);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
}
