/* ================================================================
   GOMA — Mobile UX Styles
   Inspired by the TikTok-style property video feed
   ================================================================ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --mobile-nav-h: 64px;
  --pour-toi-green: #1DB954;
  --feed-bg: #0a0a0a;
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION
   ================================================================ */
.mobile-bottom-nav {
  display: none; /* hidden by default; shown only on mobile/tablet below */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-nav-h);
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 1100;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

@media (max-width: 991.98px) {
  .mobile-bottom-nav { display: flex !important; }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  color: #9ca3af;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 600;
  padding: 6px 0;
  transition: color .2s;
}
.mobile-nav-item i {
  font-size: 1.15rem;
  transition: transform .2s;
}
.mobile-nav-item.active {
  color: #E8580A;
}
.mobile-nav-item.active i {
  transform: scale(1.15);
}

/* Centre FAB — "Pour toi" play button */
.mobile-nav-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8580A 0%, #c9410a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(232,88,10,.4);
  flex-shrink: 0;
  margin-bottom: 8px;
  transition: transform .2s, box-shadow .2s;
}
.mobile-nav-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(232,88,10,.5);
  color: #fff;
}

/* Push footer above bottom nav on mobile */
@media (max-width: 991.98px) {
  body {
    padding-bottom: var(--mobile-nav-h);
  }
  /* On for-you page: no padding (feed is full-screen) */
  body.page-for-you {
    padding-bottom: 0;
    overflow: hidden;
  }
  /* Hide desktop navbar on for-you page */
  body.page-for-you nav.navbar {
    display: none !important;
  }
}

/* ================================================================
   POUR TOI — TOP TAB BAR (mobile)
   ================================================================ */
.pour-toi-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 100%);
}

.pour-toi-tab {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  letter-spacing: .3px;
  transition: all .2s;
}
.pour-toi-tab.active {
  color: #fff;
  border-bottom-color: var(--pour-toi-green);
}

.pour-toi-search-btn {
  position: absolute;
  right: 16px;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
}

/* ================================================================
   POUR TOI — VERTICAL SNAP-SCROLL FEED
   ================================================================ */
.pour-toi-feed {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--mobile-nav-h);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: var(--feed-bg);
  /* Hide scrollbar */
  scrollbar-width: none;
}
.pour-toi-feed::-webkit-scrollbar { display: none; }

.pour-toi-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--mobile-nav-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--feed-bg);
}

/* ── Horizontal media track (replaces the bare <video> element) ── */
.pour-toi-media-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 0;
}
.pour-toi-media-track::-webkit-scrollbar { display: none; }

.pour-toi-media-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  position: relative;
}

/* Full-screen video inside media item */
.pour-toi-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image inside media item */
.pour-toi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* prevent long-press save on mobile */
}

/* Placeholder: vertically center the SVG */
.pour-toi-placeholder-img {
  object-fit: contain;
  background: #0e1d09;
}

/* ── Dots indicator — sits below the CTA button, centered on full screen width ── */
.pour-toi-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  /* Break out of .pour-toi-bottom's narrower width (right:80px + padding-left:16px)
     so the dots are centered across the full viewport */
  margin-left: -16px;
  width: 100vw;
  pointer-events: none;
}
.pour-toi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.pour-toi-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* Top gradient (for tab bar readability) */
.pour-toi-top-grad {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Bottom overlay — listing info */
.pour-toi-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 80px; /* leave space for actions panel */
  padding: 20px 16px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 70%, transparent 100%);
  z-index: 3;
}

.pour-toi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pour-toi-tag {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}
.pour-toi-tag-months {
  background: rgba(255, 107, 0, .75);
  border-color: rgba(255,140,0,.6);
}

.pour-toi-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.pour-toi-loc {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  margin-bottom: 4px;
}

.pour-toi-price {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* "DÉCOUVRIR L'OFFRE" button */
.pour-toi-cta {
  display: block;
  background: var(--pour-toi-green);
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(29,185,84,.35);
  transition: transform .15s, box-shadow .15s;
}
.pour-toi-cta:hover, .pour-toi-cta:active {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(29,185,84,.45);
  color: #fff;
}

/* Right actions panel */
.pour-toi-actions {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 4;
}

.pour-toi-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: visible;
  margin-bottom: 4px;
}
.pour-toi-avatar img,
.pour-toi-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.pour-toi-avatar-placeholder {
  background: linear-gradient(135deg, #E8580A, #c9410a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.pour-toi-verified {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pour-toi-green);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  border: 2px solid #000;
}

.pour-toi-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-size: .7rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  transition: transform .15s;
}
.pour-toi-action-btn i {
  font-size: 1.5rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.pour-toi-action-btn:hover { transform: scale(1.12); color: #fff; }

.pour-toi-action-count {
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.9);
}

/* ================================================================
   POUR TOI — DESKTOP VIDEO GRID
   ================================================================ */
.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
}
.video-card-media video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: #111;
}
.video-card-body {
  padding: 14px 16px 16px;
}
.pour-toi-price-desktop {
  font-size: 1rem;
  font-weight: 800;
  color: #E8580A;
}

/* ================================================================
   LISTING DETAIL — VIDEO SECTION
   ================================================================ */
.listing-video-section {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}
.listing-video-header {
  padding: 12px 16px;
  background: #1a1a1a;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.listing-video-wrap video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.pour-toi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

/* ================================================================
   GLOBAL MOBILE TWEAKS
   ================================================================ */
@media (max-width: 575.98px) {
  /* Larger tap targets */
  .btn, .btn-orange, .btn-outline-orange {
    min-height: 44px;
  }
  /* Bigger listing card text */
  .listing-card .listing-price {
    font-size: 1rem;
  }
  /* Hero search form stack on mobile */
  .hero-search-form {
    flex-direction: column;
  }
  /* Listing detail: full-width video */
  .listing-video-wrap video {
    max-height: 280px;
  }
  /* Hide long navbar brand text */
  .navbar .brand-dot { display: inline; }
}
