@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Light Theme (Default) */
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --primary-color: #22c55e;
  --primary-hover: #16a34a;
  --secondary-color: #64748b;
  --card-bg: #ffffff;
  --card-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --hero-overlay: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  --input-bg: #ffffff;
}

[data-theme="green"] {
  /* Green Dark Theme */
  --bg-color: #052e16;
  --text-color: #f0fdf4;
  --text-muted: #86efac;
  --primary-color: #4ade80;
  --primary-hover: #22c55e;
  --secondary-color: #10b981;
  --card-bg: #064e3b;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(5, 46, 22, 0.8);
  --border-color: #065f46;
  --glass-bg: rgba(6, 78, 59, 0.7);
  --glass-border: rgba(52, 211, 153, 0.2);
  --hero-overlay: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  --input-bg: #064e3b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Custom Premium Scrollbar - Global Fix */
::-webkit-scrollbar {
  width: 12px;
  background-color: #0d1117;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-radius: 10px;
  border: 3px solid #0d1117;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
}

/* Firefox Support */
* {
  scrollbar-width: auto;
  scrollbar-color: #22c55e #0d1117;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeInPage 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
.btn {
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--text-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100vw !important;
  position: relative;
  left: 50% !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  flex-shrink: 0;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  color: white;
  z-index: 10;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Home Page Specific Hero */
/* Main Home Page Specific Hero */
.main-hero {
  height: 55vh !important;
  min-height: 400px;
  max-height: 600px;
  width: 90% !important;
  margin: 30px auto !important;
  border-radius: 30px !important;
  left: 0 !important;
  transform: none !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-hero .hero-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.main-hero .hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* Sections */
section {
  padding: 100px 5%;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Movie Cards */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.movie-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  position: relative;
}

.movie-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.movie-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.1);
}

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 50px 15px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.movie-overlay .btn {
  width: 85%;
  padding: 16px;
  background: #2ecc71 !important; /* Professional Vibrant Green */
  color: white !important;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4);
  border: none;
  border-radius: 12px;
}

.movie-overlay .btn i {
  font-size: 1.2rem;
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
}

.movie-info {
  padding: 20px;
}

.movie-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.movie-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Theme Toggle */
.theme-switch {
  width: 60px;
  height: 30px;
  background: #e2e8f0;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 5px;
  transition: background 0.3s;
}

.theme-switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="green"] .theme-switch {
  background: var(--primary-color);
}

[data-theme="green"] .theme-switch::before {
  transform: translateX(28px);
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    var(--border-color) 100%
  );
}

.auth-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 450px;
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 80px 5%;
  }
}
