/* ---------------------------------- Home Tab Background Animation ---------------------------------- */
#home {
    position: relative;
    overflow: hidden;
}

.home-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-background-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url('../assets/background/feral-frenzy-background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.75;
    filter: blur(1px);
    animation: subtleMove 30s ease-in-out infinite;
}

.home-background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(5, 5, 7, 0.3) 0%, 
        rgba(5, 5, 7, 0.5) 50%, 
        rgba(5, 5, 7, 0.85) 100%);
    pointer-events: none;
}

#home .pageContent {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

#home .page-text {
    background: rgba(5, 5, 7, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

#partnership {
  flex-direction: row;
  justify-content: center;
}

@keyframes subtleMove {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.homeLogo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* Recent Poster Container */
.posterImageContainer {
  margin: 1rem;
  position: relative;
}

/* Gallery Image */
.posterImage {
  max-height: 360px;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 16px;
}

.posterImage:hover {
  transform: scale(1.05);
}

.posterFooter {
  text-align: center;
}

.posterOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent black */
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.posterOverlay:hover {
  opacity: 1;
}

/* Recent Uploads */
.recentImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* always show the middle of the image */
  cursor: pointer;
  transition: transform 0.4s ease;
  border-radius: 14px; /* slightly inset from container's 16px so border shows cleanly */
  display: block;
}

.recentImage:hover {
  transform: scale(1.05);
}

.recentImageContainer {
  position: relative;
  width: 100%; /* fill the wrapper regardless of intrinsic image dimensions */
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 3px solid transparent;
  transition: border-color 0.3s ease,
              box-shadow   0.3s ease;
}

/* ── Tier border colours (fade in on hover) ──────────────────────────────────
   Standard  → Bronze   (#b87333)
   Premium   → Silver   (#c0c0c0)
   VIP       → Gold     (#ffd700)
   Diamond   → Sky blue (#89cff0)                                            */

.recentImageContainer.tier-standard:hover {
  border-color: #b87333;
  box-shadow: 0 0 10px rgba(184, 115,  51, 0.35);
}

.recentImageContainer.tier-premium:hover {
  border-color: #c0c0c0;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.35);
}

.recentImageContainer.tier-vip:hover {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215,   0, 0.35);
}

.recentImageContainer.tier-diamond:hover {
  border-color: #89cff0;
  box-shadow: 0 0 10px rgba(137, 207, 240, 0.35);
}

/* ── Tier label — slides down from the top on hover ─────────────────────────
   overflow:hidden on the container clips the label while it's above the edge,
   so it appears to emerge from the top border on hover.                      */

.recentTierLabel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.45rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.recentImageContainer:hover .recentTierLabel {
  opacity: 1;
}

/* Label background + text colour matches each tier's palette */
.tier-standard .recentTierLabel { background: rgba(184, 115,  51, 0.88); color: #fff; }
.tier-premium  .recentTierLabel { background: rgba(192, 192, 192, 0.88); color: #111; }
.tier-vip      .recentTierLabel { background: rgba(255, 215,   0, 0.88); color: #111; }
.tier-diamond  .recentTierLabel { background: rgba(137, 207, 240, 0.88); color: #111; }

#recentThumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  align-items: start; /* thumbnails align to top so rows don't stretch unevenly */
}

/* Wrapper — one grid cell: image on top, caption below */
.recentItemWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Caption text below each thumbnail */
.recentCaption {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  margin: 0;
  padding: 0 0.25rem;
}

@media (max-width: 960px) {
  #partnership {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
    .homeLogo {
        max-width: 400px;
    }

    .home-background-animation::before {
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .homeLogo {
        max-width: 300px;
    }

    .posterImageContainer {
      max-height: 360px;
      margin: 3px;
      position: relative;
    }

    .posterFooter {
      font-size: 12px;
    }
}

/* Poster Slider */

.ps-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ps-wrapper[data-visible="3"] {
    max-width: 900px;
    margin: 0 auto;
}

.ps-wrapper[data-visible="3"] .ps-slide {
    display: flex;
    justify-content: center;
}

.ps-wrapper .ps-arrow--l {
    left: 10px;
}

.ps-wrapper .ps-arrow--r {
    right: 10px;
}

.ps-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-track.no-anim { transition: none; }

/* Each slide = full width so inner flex-row layouts no collapse */
.ps-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 1rem;
}

.ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
}
.ps-arrow:hover {
    background: rgba(74, 109, 237, 0.2);
    border-color: rgba(74, 109, 237, 0.45);
    color: #fff;
    box-shadow: 0 0 12px rgba(74, 109, 237, 0.15);
}
.ps-arrow--l { left: 0; }
.ps-arrow--r { right: 0; }
.ps-arrow svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.ps-progress-wrap {
    width: 60%;
    max-width: 300px;
    height: 2px;
    margin: 1rem auto 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.ps-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4A6DED, #FF6B35);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.ps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.6rem;
    height: 10px;
}
.ps-dot {
    width: 7px; height: 7px; border-radius: 50%;
    border: none; padding: 0;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer; transition: all 0.3s ease;
}
.ps-dot.active {
    background: #4A6DED;
    box-shadow: 0 0 6px rgba(74, 109, 237, 0.4);
    transform: scale(1.25);
}
.ps-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.25); }


/* I would recommend to add this generic Name instead of Lovesenvideo , lovesenPartner, etc but its works still if you use loveseLogo */

.partnerLogo {
  max-width: 400px;
  width: 80%;
}

.partnerVideoContainer {
  width: 100%;
  max-width: 800px;
}

.partnerVideo {
  max-width: 800px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 16px;
}

.partnerVideo:hover {
  transform: scale(1.05);
}