/* ============================================================
   ZeepLive — style.css
   Dark premium UI for a livestream discovery app
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:          #000000;
  --bg-card:     #111111;
  --bg-card-2:   #181818;
  --bg-glass:    rgba(20, 20, 20, 0.75);
  --orange:      #ff6b00;
  --orange-dim:  rgba(255, 107, 0, 0.18);
  --orange-glow: rgba(255, 107, 0, 0.4);
  --green:       #22c55e;
  --white:       #ffffff;
  --gray:        #888888;
  --gray-light:  #bbbbbb;
  --border:      rgba(255,255,255,0.07);
  --radius-card: 20px;
  --radius-pill: 50px;
  --font:        'Poppins', sans-serif;
  --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-btn:  0 4px 20px var(--orange-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  max-width: 480px;       /* Mobile-first max width */
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 90px;  /* Space for bottom nav */
  position: relative;
}

/* Subtle ambient gradient on page */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 100px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER / TOP NAV
   ============================================================ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}

.logo-zeep {
  color: var(--white);
}

.logo-live {
  color: var(--orange);
}

.logo-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: 3px;
  animation: pulseDot 1.8s infinite;
  align-self: flex-start;
  margin-top: 4px;
}

/* Nav right section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Notification button */
.notif-btn {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--gray-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 0.9rem;
  transition: var(--transition);
}

.notif-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--orange);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* Coin badge */
.coin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1a1a1a, #2a1800);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.coin-badge:hover {
  border-color: var(--orange);
  box-shadow: 0 0 14px var(--orange-glow);
}

.coin-icon {
  color: var(--orange);
  font-size: 0.7rem;
}

.coin-value {
  color: var(--white);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  margin: 18px 16px 0;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #1a0a00 0%, #0d0d0d 60%, #1a0800 100%);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 28px 24px 24px;
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease both;
}

/* Decorative background texture */
.hero-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,107,0,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-sub {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.hero-title span {
  color: var(--orange);
}

.hero-live-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 16px var(--orange-glow);
}

.hero-live-pill .live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulseDot 1.2s infinite;
  display: inline-block;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  padding: 14px 16px 4px;
  animation: fadeSlideUp 0.65s ease both;
  animation-delay: 0.05s;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-icon {
  color: var(--gray);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
}

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

.search-filter-btn {
  background: var(--orange-dim);
  border: none;
  color: var(--orange);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-filter-btn:hover {
  background: var(--orange);
  color: #fff;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-wrap {
  padding: 14px 16px 0;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.1s;
}

.tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 5px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tab i {
  font-size: 0.7rem;
}

.tab:hover {
  color: var(--gray-light);
}

.tab.active {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

/* ============================================================
   STORIES ROW
   ============================================================ */
.stories-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 16px 4px;
  scrollbar-width: none;
  animation: fadeSlideUp 0.75s ease both;
  animation-delay: 0.15s;
}

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

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}

.story-item span {
  font-size: 0.65rem;
  color: var(--gray);
  font-weight: 500;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.story-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2.5px solid var(--orange);
  transition: var(--transition);
  position: relative;
}

.story-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--orange), #ff9f4a) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.story-item:hover .story-avatar::after {
  opacity: 1;
}

.story-item:hover .story-avatar {
  transform: scale(1.08);
}

.add-avatar {
  background: var(--bg-card-2);
  border: 2px dashed rgba(255,107,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1rem;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.2s;
}

.section-label span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.see-all {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.see-all:hover {
  gap: 7px;
}

/* ============================================================
   PROFILE GRID
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
}

/* Individual Profile Card */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.018);
  box-shadow: 0 16px 48px rgba(255, 107, 0, 0.15), 0 4px 16px rgba(0,0,0,0.5);
  border-color: rgba(255, 107, 0, 0.35);
}

/* Card image area */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.profile-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

/* Gradient overlay at bottom of image */
.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
  pointer-events: none;
}

/* Online badge (green dot) */
.online-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 11px;
  height: 11px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulseRing 2s infinite;
  opacity: 0;
}

/* LIVE tag */
.live-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(255,107,0,0.5);
}

.live-tag i {
  font-size: 0.45rem;
  animation: pulseDot 1.2s infinite;
}

/* Viewer count */
.viewer-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 0.58rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card info below the image */
.card-info {
  padding: 10px 10px 12px;
  background: var(--bg-card);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.creator-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-country {
  font-size: 0.65rem;
  color: var(--gray);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.creator-country i {
  font-size: 0.5rem;
  color: var(--orange);
}

/* Orange call button */
.call-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 0 3px 14px var(--orange-glow);
  transition: var(--transition);
}

.call-btn:hover {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 6px 20px var(--orange-glow);
}

.call-btn:active {
  transform: scale(0.92);
}

/* Tags / category pills */
.card-tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255,107,0,0.25);
  letter-spacing: 0.3px;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 22px 16px 8px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,107,0,0.35);
  color: var(--orange);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.load-more-btn:hover {
  background: var(--orange-dim);
  border-color: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
}

.load-more-btn:hover i {
  animation: spin 0.6s linear;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px 20px;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 200;
}

/* Nav buttons */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0 14px;
}

.nav-item i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--gray-light);
}

.nav-item.active {
  color: var(--orange);
}

.nav-item.active i {
  filter: drop-shadow(0 0 8px var(--orange-glow));
}

/* Active indicator dot */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
}

/* Live nav icon special button */
.live-nav-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange), #ff9f00);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 18px var(--orange-glow);
  margin-top: -12px;
  transition: var(--transition);
}

.nav-item:has(.live-nav-icon):hover .live-nav-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--orange-glow);
}

/* Messages badge */
.msg-badge {
  position: absolute;
  top: -4px;
  right: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 300;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.toast i {
  color: var(--green);
  font-size: 0.9rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Fade + slide up on page load */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card fade-in */
.fade-in {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

/* Pulsing dot (logo + live tag) */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Pulse ring (online badge) */
@keyframes pulseRing {
  0%   { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2); }
}

/* Spin (load more icon) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — DESKTOP FRIENDLY
   ============================================================ */
@media (min-width: 481px) {
  body {
    background: #0a0a0a;
    padding-top: 0;
  }

  /* Center the phone-frame on desktop */
  body {
    box-shadow: 0 0 80px rgba(0,0,0,0.8), 0 0 160px rgba(255,107,0,0.04);
    min-height: 100vh;
  }

  .bottom-nav {
    border-radius: 0 0 0 0;
  }
}

@media (max-width: 340px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
  }

  .hero-title {
    font-size: 1.4rem;
  }
}
