/* ============================================================
   LifePlay — Main Stylesheet (Netflix-style dark theme)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand Colors — LifePrimeTV ─────────────────────────── */
  /* Purple: creativity, premium, trust */
  --purple:       #5c2d91;
  --purple-dark:  #3d1d60;
  --purple-hover: #7b3fbf;
  --purple-light: #9b6fd4;
  --purple-faint: rgba(92,45,145,.12);

  /* Green: health, nature, life */
  --green:        #2e8b57;
  --green-dark:   #1e5e3a;
  --green-hover:  #3aad6e;
  --green-light:  #46d369;
  --green-faint:  rgba(46,139,87,.12);

  /* Gradient: brand signature */
  --brand-grad:   linear-gradient(135deg, #5c2d91 0%, #2e8b57 100%);
  --brand-grad-h: linear-gradient(135deg, #7b3fbf 0%, #3aad6e 100%);

  /* Legacy alias — keeps existing var(--red) working */
  --red:          #5c2d91;
  --red-dark:     #3d1d60;
  --red-hover:    #7b3fbf;

  /* ── Neutrals ──────────────────────────────────────────── */
  --black:        #000000;
  --dark:         #141414;
  --dark2:        #1a1a1a;
  --dark3:        #222222;
  --gray:         #757575;
  --gray-light:   #b3b3b3;
  --white:        #ffffff;

  /* ── Typography ────────────────────────────────────────── */
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Bebas Neue', cursive;

  /* ── Utils ──────────────────────────────────────────────── */
  --radius:       4px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  padding-top: 62px; /* fixed navbar height */
}
.admin-layout, .auth-wrapper { padding-top: 0; } /* admin/auth have their own layout */

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }



/* Fallback for browsers that don't support gradient text */














.navbar__search input::placeholder { color: var(--gray); }




.navbar__dropdown-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}






/* Mobile slide-in menu */








/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .navbar__links       { display: none !important; }
  .navbar__search      { display: none; }
  .navbar__burger      { display: flex; align-items: center; }
  /* Guest nav mobile — hide Pricing, keep just 2 buttons */
  .navbar__right--guest     { gap: 6px; flex-shrink: 0; }
  .navbar__plans-link       { display: none; }
  .navbar__signup-btn       { display: none; }
  .navbar__right--guest .btn { padding: 8px 16px; font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 12px; min-height: 58px; }
  
  .navbar__right--guest .btn { padding: 7px 13px; font-size: .78rem; }
}


.hero {
  position: relative;
  height: 80vh; min-height: 500px;
  display: flex; align-items: flex-end;
  padding: 0 4% 8%;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right, rgba(0,0,0,.85) 30%, transparent 100%
  ),
  linear-gradient(
    to top, rgba(20,20,20,1) 0%, transparent 50%
  );
}
.hero__content { position: relative; z-index: 1; max-width: 550px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.6);
}
.hero__meta { display: flex; gap: 12px; margin-bottom: 16px; }
.hero__badge {
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
}
.hero__desc {
  font-size: .95rem; color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__buttons { display: flex; gap: 12px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--white); color: var(--black);
}
.btn-primary:hover { background: rgba(255,255,255,.8); }

.btn-secondary {
  background: rgba(109,109,110,.7);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(109,109,110,.4); }

/* btn-red = PURPLE (brand primary) — LifePrimeTV identity */
.btn-red    { background: #5c2d91 !important; color: #fff !important; }
.btn-red:hover { background: #7b3fbf !important; }
.btn-purple { background: #5c2d91; color: #fff; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.btn-purple:hover { background: #7b3fbf; }
.btn-green { background: var(--green); color: #fff; border: none; cursor: pointer; display: inline-flex; align-items: center; gap:6px; }
.btn-green:hover { background: var(--green-hover); }

.btn-outline {
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Content Row (carrossel) ──────────────────────────────── */
.row { margin-bottom: 40px; padding: 0 4%; }
.row__title {
  font-size: 1.2rem; font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-light);
  letter-spacing: .5px;
}
.row__slider {
  display: flex; gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.row__slider::-webkit-scrollbar { display: none; }

/* ── Card ─────────────────────────────────────────────────── */
.card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, z-index 0s 0.25s;
  background: var(--dark3);
}
.card:hover {
  transform: scale(1.08);
  z-index: 10;
  transition: transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
.card__img {
  width: 100%;
  aspect-ratio: 2/3;          /* Poster ratio — like Titanic poster */
  object-fit: cover;
  object-position: center top;
  background: var(--dark3);
  display: block;
}
.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 8px;
}
.card:hover .card__overlay { opacity: 1; }
.card__title {
  font-size: .78rem; font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta { font-size: .68rem; color: var(--gray-light); margin-bottom: 6px; }
.card__actions { display: flex; gap: 5px; margin-bottom: 4px; }
.card__btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #fff;
  transition: background 0.15s;
  text-decoration: none;
}
.card__btn:hover { background: rgba(255,255,255,.45); }
.card__btn--play { background: var(--white); color: var(--black); border-color: var(--white); }
.card__btn--play:hover { background: rgba(255,255,255,.85); }
.card__progress {
  height: 3px;
  background: var(--gray);
  border-radius: 2px;
  margin-top: 4px;
}
.card__progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}

/* ── Video Player ─────────────────────────────────────────── */
.player-page { background: var(--black); }

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  max-height: 80vh;
}
.player-wrapper video {
  width: 100%; height: 100%;
  object-fit: contain;
}
.player-wrapper iframe {
  width: 100%; height: 100%; border: none;
}

.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
  padding: 20px 20px 14px;
  opacity: 0;
  transition: opacity var(--transition);
}
.player-wrapper:hover .player-controls { opacity: 1; }

.player-progress {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
}
.player-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}
.player-btns { display: flex; align-items: center; gap: 14px; }
.player-btn {
  background: none; border: none;
  color: var(--white); font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.player-btn:hover { color: var(--gray-light); }
.player-time { font-size: .8rem; color: var(--gray-light); margin-left: auto; }

/* ── Forms ────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
              url('/public/css/bg-hero.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-box {
  background: rgba(0,0,0,.78);
  border-radius: 4px;
  padding: 50px 68px;
  width: 100%; max-width: 450px;
}
.auth-box h1 {
  font-size: 2rem; font-weight: 700;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--gray-light); }
.form-control {
  width: 100%; padding: 14px 16px;
  background: #333; border: none; border-radius: var(--radius);
  color: var(--white); font-size: 1rem;
  outline: none;
  transition: background var(--transition);
}
.form-control:focus { background: #454545; }
.form-control.error { border: 1px solid var(--red); }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { accent-color: var(--red); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.alert-error   { background: rgba(92,45,145,.15); border: 1px solid rgba(92,45,145,.4); color: #ff8080; }
.alert-success { background: rgba(70,211,105,.15); border: 1px solid rgba(70,211,105,.4); color: #46d369; }
.alert-info    { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.4); color: #93c5fd; }

/* ── Plans / Pricing ─────────────────────────────────────── */
.plans-page { padding: 100px 4% 60px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.plan-card {
  background: var(--dark2);
  border: 2px solid var(--dark3);
  border-radius: 8px;
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.plan-card:hover { border-color: var(--red); transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--red);
}
.plan-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red);
  color: var(--white); font-size: .75rem; font-weight: 700;
  padding: 3px 14px; border-radius: 20px;
  white-space: nowrap;
}
.plan-card__name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.plan-card__price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.plan-card__price span { font-size: 1rem; font-weight: 400; color: var(--gray-light); }
.plan-card__features { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-card__features li { display: flex; gap: 10px; font-size: .9rem; color: var(--gray-light); }
.plan-card__features li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; flex-shrink: 0;
  background: #0d0d0d;
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__logo {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--red);
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: block;
}
.sidebar__nav { padding: 16px 0; }
.sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px;
  font-size: .88rem; color: var(--gray-light);
  transition: all var(--transition);
}
.sidebar__item:hover,
.sidebar__item.active { color: var(--white); background: rgba(92,45,145,.1); }
.sidebar__item.active { border-left: 3px solid var(--red); }

.admin-main { flex: 1; padding: 32px; overflow-x: auto; }
.admin-header { margin-bottom: 28px; }
.admin-header h1 { font-size: 1.8rem; font-weight: 700; }
.admin-header p  { color: var(--gray-light); margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--dark2);
  border-radius: 8px;
  padding: 22px 24px;
  border-left: 4px solid var(--red);
}
.stat-card__label { font-size: .8rem; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.stat-card__value { font-size: 2rem; font-weight: 700; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--gray); border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-table td {
  padding: 12px 14px; font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table .badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: .72rem; font-weight: 600;
}
.badge-success { background: rgba(70,211,105,.15); color: #46d369; }
.badge-danger  { background: rgba(92,45,145,.15); color: var(--red); }
.badge-warning { background: rgba(251,191,36,.15); color: #fbbf24; }
.badge-gray    { background: rgba(255,255,255,.08); color: var(--gray-light); }

.table-wrapper { background: var(--dark2); border-radius: 8px; overflow: hidden; padding: 0 0 8px; }
.table-actions { display: flex; gap: 8px; }
.table-actions a, .table-actions button {
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: .78rem; font-weight: 500;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-red   { color: var(--red); }
.text-gray  { color: var(--gray-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-box { padding: 40px 24px; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .admin-layout { flex-direction: column; }
  .hero { height: 60vh; padding-bottom: 12%; }
  .lp-card { flex: 0 0 110px; }
  .plans-grid { grid-template-columns: 1fr; }
}
