/* ============================================================
   COREFLIX — Home (Hero + Cards + Rows)
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: var(--transition-slow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 8, 8, 0.95) 0%,
    rgba(10, 8, 8, 0.7) 50%,
    rgba(10, 8, 8, 0.2) 100%
  ),
  linear-gradient(
    to top,
    rgba(10, 8, 8, 1) 0%,
    rgba(10, 8, 8, 0.4) 40%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  max-width: 600px;
}

.hero-badge {
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-meta .rating {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero indicators */
.hero-indicators {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(245, 240, 240, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  width: 24px;
  background: var(--accent);
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */

.main-content {
  padding-top: 40px;
}

/* ── ROW SCROLL ───────────────────────────────────────────── */

.row-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.row-scroll::-webkit-scrollbar {
  display: none;
}

/* ── MEDIA CARD ───────────────────────────────────────────── */

.media-card {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.media-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.media-card-poster {
  width: 100%;
  height: 270px;
  object-fit: cover;
  background: var(--bg-elevated);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.media-card-poster.loaded {
  opacity: 1;
}

.media-card-info {
  padding: 10px 12px 12px;
}

.media-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.media-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.media-card-rating {
  color: var(--accent);
  font-weight: 600;
}

/* Overlay ao hover */
.media-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 8, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.media-card:hover .media-card-overlay {
  opacity: 1;
}

.media-card-overlay .btn {
  width: 80%;
}

/* Skeleton card */
.skeleton-card {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Badge no card */
.media-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

/* ── SECTION TITLE ────────────────────────────────────────── */

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { height: 70vh; }
  .hero-content { max-width: 100%; }
  .media-card { width: 150px; }
  .media-card-poster { height: 225px; }
  .skeleton-card { width: 150px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions .btn-secondary { display: none; }
  .media-card { width: 130px; }
  .media-card-poster { height: 195px; }
  .skeleton-card { width: 130px; }
}
