/* --- Home Page Styles (Hero, Grid, Cards, Rows) --- */

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background: url("../assets/img/p-6.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 70% 50%,
      rgba(20, 20, 20, 0),
      rgba(20, 20, 20, 1) 90%
    ),
    linear-gradient(to top, var(--bg-body) 10%, transparent 50%),
    linear-gradient(
      90deg,
      var(--bg-body) 0%,
      rgba(20, 20, 20, 0.4) 50%,
      transparent 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
  color: white; /* Fallback */
  background: linear-gradient(180deg, #ffffff 0%, #b3b3b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero p {
  color: #e0e0e0;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 65ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 2rem;
  animation: fadeUp 1s var(--transition-medium) 0.3s both;
}

/* Buttons (Moved to layout.css) */
/* .hero-btns logic remains here for layout, but styles are global now */

/* Category Sections & Rows */
.category-section {
  padding: 0 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 5;
  margin-top: -80px; /* Pull up over hero transition */
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e5e5e5;
  position: relative;
  z-index: 20;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.nav-arrows {
  display: flex;
  gap: 10px;
  position: relative;
  top: auto;
  left: auto;
  width: auto;
}

.nav-arrows i {
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.nav-arrows i:hover {
  background: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 25px var(--primary-glow);
  border-color: var(--primary);
  color: white;
}

.movie-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.movie-row::-webkit-scrollbar {
  height: 6px;
}

.movie-row::-webkit-scrollbar-track {
  background: transparent;
}

.movie-row::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 20px;
  border: 2px solid #141414;
}

/* Grid View Styles moved to layout.css */

/* Movie Card Styles moved to layout.css */

/* Responsive Tweaks for Home */
@media screen and (max-width: 1024px) {
  .hero {
    height: 60vh;
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .category-section {
    padding: 0 1rem;
    top: 0;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    padding: 1rem;
    gap: 12px;
  }

  .grid-container .movie-card {
    height: 200px;
  }

  .movie-card {
    min-width: 150px;
    height: 220px;
  }

  .hero-btns button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Metadata Styling */
.meta-imdb {
  color: #ffd700; /* Gold */
  font-weight: 600;
}

.meta-year {
  color: #e0e0e0; /* Light Gray */
  font-weight: 500;
}

.meta-genre {
  color: var(--primary); /* Theme Color */
  font-weight: 600;
  text-transform: capitalize;
}

.meta-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 8px;
}
