/* =====================================================================
   Mawarslot Store — Cyber-Dark Luxury Boutique
   Custom styling layered on top of Tailwind CDN.
   Author / Technical Architect: Belinda Caroline
   ===================================================================== */

:root {
  --obsidian: #050507;
  --gold: #d4af37;
  --gold-soft: #e8cf7e;
  --silver: #c9ccd1;
  --glow: rgba(212, 175, 55, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--obsidian);
  overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   Ambient background — obsidian void with a soft gold aura + faint grid
   --------------------------------------------------------------------- */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(45% 45% at 85% 80%, rgba(201, 204, 209, 0.05), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}

/* Keep all real content above the ambient layers */
header, section, footer, .wa-fab {
  position: relative;
  z-index: 10;
}

/* ---------------------------------------------------------------------
   Navbar scroll state
   --------------------------------------------------------------------- */
#navbar.is-scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------------------------------------------------------------------
   Gold shimmer headline
   --------------------------------------------------------------------- */
.text-shimmer {
  background: linear-gradient(
    100deg,
    var(--gold) 0%,
    var(--gold-soft) 25%,
    #fff7dd 50%,
    var(--gold-soft) 75%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ---------------------------------------------------------------------
   Product cards — neon glow on hover + smooth image zoom
   --------------------------------------------------------------------- */
.product-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.25),
    0 22px 60px -20px rgba(212, 175, 55, 0.45),
    0 0 50px -10px rgba(212, 175, 55, 0.30);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1);
}

/* Neon sweep overlay on hover */
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(212, 175, 55, 0.18) 50%, transparent 60%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s ease;
}
.product-card:hover .product-media::after {
  opacity: 1;
  animation: sweep 0.9s ease forwards;
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.product-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(5, 5, 7, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.product-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}
.product-card:hover .product-name {
  color: var(--gold-soft);
}

.product-desc {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #8a8d93;
  line-height: 1.5;
}

.product-foot {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.product-card:hover .product-cta {
  color: var(--obsidian);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------------------------------------------------------------------
   Scroll-reveal (driven by script.js)
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------
   WhatsApp Floating Action Button — sticky + pulsing glow
   --------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #03130a;
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.wa-fab:hover {
  transform: scale(1.06);
  background: #2be673;
  animation-play-state: paused;
}

.wa-fab-label {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.4s ease;
}
.wa-fab:hover .wa-fab-label {
  max-width: 160px;
  opacity: 1;
  margin-left: 10px;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  }
}

/* ---------------------------------------------------------------------
   Accessibility — honour reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Visible focus rings for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
