/* ============================================================
   KahwinHub Video — Shopee / TikTok Vertical Video Feed CSS
   ============================================================ */

:root {
  --bg-dark: #000000;
  --teal-mid: #14B8A6;
  --teal-deep: #0D9488;
  --sidebar-bg: #042F2E;
  --gold: #F59E0B;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ─── TOP BAR ─── */
.vf-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.vf-tabs {
  display: flex;
  gap: 16px;
  margin: 0 auto;
}

.vf-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 4px;
  position: relative;
  transition: all .2s;
}

.vf-tab-btn.active {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
}

.vf-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2.5px;
  background: #14B8A6;
  border-radius: 4px;
}

.vf-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* ─── REELS CONTAINER (SNAP SCROLL & PC CENTERED) ─── */
.vf-reels-container {
  height: calc(100vh - 60px);
  width: 100vw;
  max-width: 480px; /* Centered Luxury Mobile Frame on PC */
  margin: 0 auto;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  position: relative;
}

.vf-reels-container::-webkit-scrollbar {
  display: none;
}

/* ─── REEL CARD / ITEM ─── */
.vf-reel-item {
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.vf-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  background-color: #042F2E;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* OVERLAYS & GRADIENTS */
.vf-overlay-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

/* PLAY/PAUSE BIG ICON OVERLAY */
.vf-play-state-icon {
  position: absolute;
  font-size: 60px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  transition: all .2s ease;
  z-index: 10;
}

.vf-play-state-icon.show {
  opacity: 1;
  transform: scale(1);
}

/* ─── RIGHT SIDE ACTION BUTTONS (TIKTOK STYLE) ─── */
.vf-right-actions {
  position: absolute;
  right: 12px;
  bottom: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 20;
}

.vf-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

.vab-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform .2s;
}

.vf-action-btn:active .vab-icon-circle {
  transform: scale(0.85);
}

.vf-action-btn.liked .vab-icon-circle {
  color: #EF4444;
  border-color: #EF4444;
}

.vab-label {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ROTATING DISC */
.vf-music-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #333);
  border: 4px solid #14B8A6;
  display: grid;
  place-items: center;
  font-size: 14px;
  animation: spinDisc 4s linear infinite;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── BOTTOM DETAILS & SHOPEE YELLOW BAG CARD ─── */
.vf-bottom-details {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 70px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 🏛️ COMPACT SLEEK VENUE PRODUCT CARD */
.vf-product-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #042F2E;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #14B8A6;
  transition: all .2s ease;
  cursor: pointer;
}

.vf-product-card:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(20, 184, 166, 0.4);
}

.vpc-main-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.vpc-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vpc-mini-badge {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.vpc-venue-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #042F2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpc-promo-chip {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.vpc-bottom-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.vpc-price-tag {
  font-size: 12px;
  font-weight: 800;
  color: #0D9488;
  flex-shrink: 0;
}

.vpc-pax-tag {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
  flex-shrink: 0;
}

.vpc-voucher-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpc-cta-btn {
  background: linear-gradient(135deg, #10B981 0%, #042F2E 100%);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

/* CREATOR & TITLE INFO */
.vf-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf-creator-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.vf-verified-tag {
  background: rgba(20, 184, 166, 0.85);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.vf-video-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vf-audio-track {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* ─── BOTTOM NAVIGATION BAR (FIXED) ─── */
.customer-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(4, 47, 46, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
}

.cbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: all .2s;
}

.cbn-item.active {
  color: #34D399;
  font-weight: 800;
}

.cbn-icon {
  font-size: 19px;
}

/* TOAST */
#vfToast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(4, 47, 46, 0.9);
  color: #E0FAFA;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 184, 166, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}

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

.vf-loading-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.vf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #14B8A6;
  border-radius: 50%;
  animation: spinDisc .8s linear infinite;
}
