/* ============================================================
   48SHOWTIME — style.css
   Visual style: dark bg + grid kotak + partikel merah
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --red:        #e8193c;
  --red-bright: #ff2d55;
  --red-dim:    #8b0f23;
  --red-glow:   rgba(232, 25, 60, 0.35);
  --dark:       #0d0305;
  --dark2:      #110407;
  --card-bg:    rgba(22, 4, 8, 0.88);
  --border-red: rgba(232, 25, 60, 0.25);
  --text-white: #f0dde0;
  --text-muted: rgba(240, 200, 200, 0.55);
  --grid-color: rgba(200, 20, 50, 0.07);
}

body.dark {
  --dark:       #0a0204;
  --dark2:      #0d0306;
  --card-bg:    rgba(18, 3, 7, 0.92);
  --text-white: #f5e5e8;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text-white);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== GRID BACKGROUND ===== */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10, 2, 4, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 50;
  transition: box-shadow 0.3s;
}
.app-header.scrolled {
  box-shadow: 0 4px 24px rgba(232, 25, 60, 0.15);
}

.brand-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 2px;
  line-height: 1;
}
.brand-red   { color: var(--red-bright); text-shadow: 0 0 12px rgba(255,45,85,0.6); }
.brand-white { color: var(--text-white); }

.app-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  overflow: hidden;
  background: rgba(232,25,60,0.08);
  border: 1px solid var(--border-red);
  color: var(--text-white);
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover {
  background: rgba(232,25,60,0.2);
  border-color: var(--red);
}

/* ===== DRAWER OVERLAY ===== */
#drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#drawerOverlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== DRAWER / SIDEBAR ===== */
#drawerMenu {
  position: fixed;
  top: 0; right: 0;
  width: 78vw;
  max-width: 320px;
  height: 100vh;
  background: #0d0305;
  border-left: 1px solid var(--border-red);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#drawerMenu.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-red);
  flex-shrink: 0;
}

.user-info { display: flex; align-items: center; gap: 14px; }

.avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0510, #0d0305);
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--red-bright);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(232,25,60,0.3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-meta strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
}
.user-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 5px;
}
.user-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(232,25,60,0.15);
  border: 1px solid var(--border-red);
  color: var(--red-bright);
}

#closeDrawer {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
#closeDrawer:hover { color: var(--red-bright); }

/* wallet box */
.wallet-box {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-red);
  flex-shrink: 0;
}
.wallet-box > div {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-box > div:first-child { border-right: 1px solid var(--border-red); }
.wallet-box span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
}
.wallet-box strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--red-bright);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255,45,85,0.4);
}

/* drawer nav */
.drawer-nav {
  flex: 1;
  padding: 16px 0;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: var(--text-white);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(232,25,60,0.1);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.drawer-link i { color: var(--red); width: 18px; text-align: center; }
.drawer-link:hover {
  color: var(--red-bright);
  background: rgba(232,25,60,0.07);
  padding-left: 32px;
}

/* drawer footer */
.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-red);
  flex-shrink: 0;
}
.drawer-footer.hidden { display: none; }
.drawer-logout {
  width: 100%;
  background: rgba(232,25,60,0.1);
  border: 1px solid var(--border-red);
  color: var(--red-bright);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-logout:hover { background: rgba(232,25,60,0.25); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
  background: #0d0305;
}

.hero-slider-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-slider {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Red vignette overlay */
.hero-slider-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,3,5,0.3) 0%, transparent 30%, transparent 70%, rgba(13,3,5,0.8) 100%),
    linear-gradient(to right, rgba(232,25,60,0.06) 0%, transparent 50%, rgba(232,25,60,0.06) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  position: relative;
  z-index: 3;
  background: rgba(10,2,4,0.6);
}
.hero-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(232,25,60,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  border: 1px solid transparent;
}
.hero-dots span.active {
  background: var(--red-bright);
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255,45,85,0.6);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: relative;
  z-index: 1;
  padding: 28px 18px 60px;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--red-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 2px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-decoration: none;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  will-change: transform;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Corner glow accent */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.6;
  transition: width 0.3s;
}
.feature-card:hover { border-color: var(--red); box-shadow: 0 0 20px rgba(232,25,60,0.2), 0 4px 20px rgba(0,0,0,0.5); }
.feature-card:hover::before { width: 100%; opacity: 1; }

.feature-icon {
  font-size: 1.4rem;
  color: var(--red-bright);
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255,45,85,0.5);
}

.feature-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--text-white);
}

.feature-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.feature-badge {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(232,25,60,0.12);
  border: 1px solid rgba(232,25,60,0.3);
  color: var(--red-bright);
  width: fit-content;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card-bg);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.stat-cell {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid var(--border-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-cell:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--red-bright);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255,45,85,0.4);
}
.stat-lbl {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ===== AUTH CARD ===== */
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-red);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.auth-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(232,25,60,0.15);
  border: 1px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--red-bright);
  flex-shrink: 0;
}
.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-white);
}
.auth-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,25,60,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--red); }
.input-wrap i { color: var(--red-dim); font-size: 0.9rem; flex-shrink: 0; }
.input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  width: 100%;
}
.input-wrap input::placeholder { color: var(--text-muted); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e8193c, #c0112e, #ff2d55);
  border: none;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(232,25,60,0.35), 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(232,25,60,0.55), 0 6px 20px rgba(0,0,0,0.3);
}

.auth-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-note a { color: var(--red-bright); }

#authInfo {
  font-size: 0.75rem;
  color: var(--red-bright);
  text-align: center;
  display: block;
}

/* ===== WATCH BOX ===== */
.watch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0 8px;
}

.btn-stream {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(232,25,60,0.1);
  border: 1px solid var(--border-red);
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 14px 36px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-stream.locked { cursor: not-allowed; }
.btn-stream:not(.locked) {
  background: linear-gradient(135deg, #e8193c, #c0112e);
  color: #fff;
  box-shadow: 0 0 20px rgba(232,25,60,0.4);
}

.watch-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.watch-hint i { color: var(--red-dim); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.19s; }
.d4 { transition-delay: 0.26s; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-red);
  background: rgba(8,2,4,0.95);
}
.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-white);
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}
.footer-copy i { color: var(--red); font-size: 0.65rem; }

.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-red);
  background: rgba(232,25,60,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  background: rgba(232,25,60,0.25);
  color: var(--red-bright);
  box-shadow: 0 0 10px rgba(232,25,60,0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 4px; }
