/* ===============================
   💀 FEATURED — FINAL PREMIUM BUILD
=============================== */

.featured-container {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  transition: transform 0.35s ease;
}

.featured-container.zooming {
  transform: scale(1.05);
}

/* ===============================
   CARD
=============================== */

.featured-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 240px;
  height: 280px;

  display: flex;
  flex-direction: column;

  border-radius: 20px;
  overflow: hidden;

  background: linear-gradient(145deg, #0f172a, #111827);
  border: 1px solid rgba(255,255,255,0.05);

  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s;

  will-change: transform;
}

/* ===============================
   IMAGE (SOFT HEAD FIX)
=============================== */

.featured-card img {
  width: calc(100% - 16px);
  height: 48%;
  margin: 8px;
  border-radius: 14px;

  object-fit: cover;

  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ===============================
   CONTENT
=============================== */

.featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 10px 14px 14px;
  text-align: center;
}

/* TITLE */
.featured-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* META */
.featured-meta {
  font-size: 12px;
  color: #00ffc8;
  opacity: 0.85;
  margin-top: -2px;
}

/* PRICE */
.featured-price {
  font-size: 13px;
}

.featured-price .old {
  text-decoration: line-through;
  opacity: 0.4;
  margin-right: 6px;
}

.featured-price .new {
  color: #00ffc8;
  font-weight: 600;
}

/* ===============================
   💎 BUTTON (FIXED FOR REAL)
=============================== */

.featured-buy {
  margin-top: 8px;

  height: 38px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;

  color: #02110f;

  background: linear-gradient(135deg, #00ffd0, #00bfff);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow:
    0 6px 18px rgba(0,255,200,0.25),
    inset 0 -2px 5px rgba(0,0,0,0.25);
}

/* hover */
.featured-buy:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0,255,200,0.4),
    inset 0 -2px 5px rgba(0,0,0,0.2);
}

/* click */
.featured-buy:active {
  transform: scale(0.96);
}

/* active card boost */
.featured-card.active .featured-buy {
  box-shadow:
    0 14px 35px rgba(0,255,200,0.5),
    inset 0 -2px 5px rgba(0,0,0,0.2);
}

/* ===============================
   DEPTH
=============================== */

.featured-card.active {
  z-index: 20;
  filter: brightness(1.1);
}

.featured-card.left-2,
.featured-card.right-2 {
  opacity: 0.5;
  filter: blur(2px);
}

.featured-card.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===============================
   LIGHT EFFECT
=============================== */

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;

  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.15),
    transparent 60%
  );

  pointer-events: none;
}

/* ===============================
   MOBILE
=============================== */

@media (max-width: 768px) {
  .featured-container {
    height: 260px;
  }

  .featured-card {
    width: 180px;
    height: 230px;
  }
}
/* ===============================
   🔒 LOCK HORIZONTAL DRAG (MOBILE FIX)
=============================== */

html, body {
  overflow-x: hidden;
  touch-action: pan-y; /* 🔥 allow vertical only */
}

/* prevent sideways swipe bounce */
.featured-container {
  max-width: 100vw;
  overflow: hidden;
}

/* ===============================
   📱 MOBILE CENTER FIX
=============================== */

@media (max-width: 768px) {

  .featured-container {
    height: 240px;
  }

  .featured-card {
    width: 170px;
    height: 220px;
  }

  /* 🔥 force true center alignment */
  .featured-card {
    left: 50% !important;
    transform-origin: center !important;
  }

}
/* ===============================
   📱 MOBILE BUY BUTTON FIX (FINAL)
=============================== */

@media (max-width: 768px) {

  /* 🔥 give card proper height */
  .featured-card {
    height: 240px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 🔥 shrink image so content fits */
  .featured-card img {
    height: 45% !important;
    margin: 6px !important;
    width: calc(100% - 12px) !important;
    border-radius: 12px !important;
  }

  /* 🔥 content layout fix */
  .featured-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 8px 10px 10px !important;
  }

  /* 🔥 tighten text spacing */
  .featured-title {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }

  .featured-meta {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .featured-price {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* 🔥 FORCE BUTTON VISIBLE */
  .featured-buy {
    display: block !important;
    width: 100% !important;
    height: 34px !important;

    margin-top: auto !important;
    border-radius: 10px !important;

    font-size: 13px !important;
  }

  /* 🔥 prevent clipping */
  .featured-card {
    overflow: visible !important;
  }
}
/* ===============================
   🔴 SOFT REAL LIGHT (NO HARD EDGES)
=============================== */

.featured-container::after {
  content: "";
  position: absolute;

  bottom: 38%;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  height: 70px;

  pointer-events: none;

  /* 🔥 layered light (center strong, edges fade FAST) */
  background:

    /* core glow (tight center) */
    radial-gradient(
      ellipse at center,
      rgba(255, 0, 80, 0.45) 0%,
      rgba(255, 0, 80, 0.25) 15%,
      rgba(255, 0, 80, 0.08) 30%,
      transparent 45%
    ),

    /* horizontal spread (very soft) */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 0, 80, 0.25) 35%,
      rgba(255, 0, 80, 0.25) 65%,
      transparent 100%
    );

  /* 🔥 THIS is the key → thin out edges hard */
  mask-image: radial-gradient(
    ellipse at center,
    black 0%,
    black 35%,
    rgba(0,0,0,0.4) 55%,
    transparent 75%
  );

  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 0%,
    black 35%,
    rgba(0,0,0,0.4) 55%,
    transparent 75%
  );

  filter: blur(22px); /* softer = less sharp */
  opacity: 0.65;
}
/* ===============================
🎧 FEATURED PLAY BUTTON (SAFE)
=============================== */

.play-overlay {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 52px;
  height: 52px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;

  opacity: 0;
  transition: 0.25s ease;
}

.featured-card:hover .play-overlay {
  opacity: 1;
}
/* ===============================
🔥 FEATURED FIX (SAFE OVERRIDE)
Place at END of featured.css
=============================== */

/* CARD FIX */
.featured-card {
  height: auto !important;
  min-height: 300px;

  display: flex;
  flex-direction: column;

  overflow: visible !important;
}

/* IMAGE FIX (NO SQUEEZE) */
.featured-card img {
  width: calc(100% - 16px);
  height: auto !important;
  max-height: 130px;

  margin: 8px;
  border-radius: 14px;

  object-fit: cover;
}

/* CONTENT LAYOUT FIX */
.featured-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 10px 14px 14px;
}

/* TEXT SPACING */
.featured-title {
  margin-bottom: 4px;
}

.featured-meta {
  margin-bottom: 6px;
}

/* PRICE SPACING */
.featured-price {
  margin-bottom: 8px;
}

/* BUY BUTTON ALWAYS VISIBLE */
.featured-buy {
  margin-top: auto !important;

  height: 36px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 PLAY BUTTON POSITION FIX */
.play-overlay {
  top: 50% !important; /* keeps it centered on image */
  z-index: 20;
}
/* ===============================
📱 MOBILE CONTENT VISIBILITY FIX
=============================== */
@media (max-width: 768px) {

  /* 🔥 give card breathing space */
  .featured-card {
    height: auto !important;
    min-height: 260px;
    padding-bottom: 8px;
  }

  /* 🔥 image balanced */
  .featured-card img {
    height: 100px !important;
    margin: 6px !important;
  }

  /* 🔥 content spacing */
  .featured-content {
    padding: 8px 10px !important;
    gap: 4px;
  }

  /* 🔥 title readable */
  .featured-title {
    font-size: 13px;
    line-height: 1.2;
  }

  /* 🔥 meta readable */
  .featured-meta {
    font-size: 11px;
    opacity: 0.9;
  }

  /* 🔥 price spacing FIX */
  .featured-price {
    font-size: 12px;
    margin: 4px 0 6px;
  }

  .featured-price .old {
    opacity: 0.5;
    font-size: 11px;
  }

  .featured-price .new {
    font-size: 13px;
  }

  /* 🔥 BUTTON FIX (MAIN ISSUE) */
  .featured-buy {
    height: 32px;
    font-size: 12px;

    margin-top: 6px !important;
    position: relative;
    z-index: 5; /* ensures it’s not hidden */

    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* 🔥 prevent overlay blocking button */
  .featured-card::before {
    pointer-events: none;
  }

  /* 🔥 play button not covering text */
  .play-overlay {
    top: 40% !important;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
/* ===============================
📱 MOBILE HEIGHT FIX (NO CLIPPING)
=============================== */
@media (max-width: 768px) {

  /* 🔥 give container real space */
  .featured-container {
    height: auto !important;
    min-height: 320px; /* was too small before */

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 0; /* adds breathing space */
  }

  /* 🔥 ensure cards stay centered properly */
  .featured-card {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
  }

}
