/* ====================================
   StreamVault – Homepage Styles
   ==================================== */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease;
}

/* Ken Burns subtle zoom */
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: -5%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-in-out alternate infinite;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Multi-layer gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,15,0.92) 35%, rgba(8,8,15,0.3) 70%, transparent 100%),
    linear-gradient(to top, rgba(8,8,15,1) 0%, rgba(8,8,15,0.6) 25%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease both;
}

.hero-logo-img {
  max-width: 360px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
  animation: fadeUp 0.7s ease both 0.1s;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp 0.7s ease both 0.1s;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  animation: fadeUp 0.7s ease both 0.2s;
}

.hero-meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.hero-meta-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 600;
}

.hero-overview {
  font-size: 0.975rem;
  line-height: 1.7;
  color: rgba(240,240,250,0.8);
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both 0.25s;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 14px;
  animation: fadeUp 0.7s ease both 0.3s;
}

/* Hero type indicators */
.hero-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hero-type-movie {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.25);
}
.hero-type-tv {
  background: rgba(52,211,153,0.15);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}

/* Hero dots (indicator for multiple trending items) */
.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.hero-dot.active {
  background: var(--accent-purple);
  transform: scale(1.3);
}

/* Hero progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 3;
  animation: heroProgress 8s linear infinite;
  transform-origin: left;
}
@keyframes heroProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ---- Continue Watching (mock) ---- */
.continue-card {
  position: relative;
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--bg-card);
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
}
.continue-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.continue-card-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}
.continue-card-info {
  padding: 12px 14px;
}
.continue-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.continue-card-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.continue-progress-bar {
  height: 3px;
  background: var(--glass-border);
  border-radius: 99px;
  overflow: hidden;
}
.continue-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 99px;
}
.continue-play-btn {
  position: absolute;
  top: calc(50% - 30px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--ease-fast);
  font-size: 1rem;
  color: var(--bg-primary);
}
.continue-card:hover .continue-play-btn { opacity: 1; }

/* ---- Featured Grid (hero thumbnails) ---- */
.hero-thumbnails {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}
.hero-thumb {
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all var(--ease-fast);
}
.hero-thumb.active {
  opacity: 1;
  border-color: var(--accent-purple);
}
.hero-thumb:hover { opacity: 0.85; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Top 10 Badges ---- */
.top10-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-gradient);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* ---- Categories Menu ---- */
.categories-bar {
  display: flex;
  gap: 10px;
  padding: 28px 48px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }

.cat-pill {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.cat-pill:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.cat-pill.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(123,47,247,0.3);
}

/* ---- Main content offset from navbar ---- */
.main-content {
  padding-top: var(--nav-height);
}

/* Featured row with gradient divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border) 30%, var(--glass-border) 70%, transparent);
  margin: 0 48px 52px;
}

@media (max-width: 768px) {
  .hero-content { padding: 0 20px 60px; }
  .hero-thumbnails { display: none; }
  .hero-dots { right: 20px; }
  .categories-bar { padding: 20px 16px 0; }
  .section-divider { margin: 0 16px 40px; }
}
