/* ==========================================================================
   RR1 GRM Gold – Luxury Theme & Golden Ambient Background Enhancements
   ========================================================================== */

:root {
  --gold-glow-primary: rgba(218, 165, 32, 0.2);
  --gold-glow-bright: rgba(255, 215, 0, 0.28);
  --gold-accent-rich: #d4af37;
  --gold-border-glow: rgba(212, 175, 55, 0.35);
}

html {
  scroll-behavior: smooth;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #110f0d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #aa771c 0%, #d4af37 50%, #8c5e14 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4af37 0%, #f3e5ab 50%, #d4af37 100%);
}

/* Body & Background Foundation */
body {
  position: relative;
  background-color: #12100e !important;
  color: #ece8df;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Translucent layer to let golden blobs illuminate the application */
.bg-background {
  background-color: transparent !important;
}

/* ==========================================================================
   Ambient Golden Blobs Background
   ========================================================================== */

.ambient-gold-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Individual Glowing Golden Blobs */
.gold-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  will-change: transform, opacity;
  pointer-events: none;
}

/* Blob 1: Top-Left Regal Sunburst */
.gold-blob-1 {
  top: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.38) 0%, rgba(184, 134, 11, 0.2) 45%, transparent 70%);
  animation: gold-drift-1 18s ease-in-out infinite alternate;
}

/* Blob 2: Right-Center Shimmer */
.gold-blob-2 {
  top: 30%;
  right: -12%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(212, 175, 55, 0.16) 45%, transparent 70%);
  animation: gold-drift-2 22s ease-in-out infinite alternate;
}

/* Blob 3: Bottom-Left Warm Aura */
.gold-blob-3 {
  bottom: -15%;
  left: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(205, 133, 63, 0.32) 0%, rgba(218, 165, 32, 0.18) 50%, transparent 70%);
  animation: gold-drift-3 20s ease-in-out infinite alternate;
}

/* Blob 4: Center-Left Subtle Shimmer */
.gold-blob-4 {
  top: 60%;
  left: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.26) 0%, rgba(180, 130, 20, 0.12) 50%, transparent 70%);
  animation: gold-drift-4 24s ease-in-out infinite alternate;
}

/* Blob 5: Top-Right Secondary Glow */
.gold-blob-5 {
  top: 8%;
  right: 20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.24) 0%, rgba(160, 110, 15, 0.1) 50%, transparent 70%);
  animation: gold-drift-1 16s ease-in-out infinite alternate-reverse;
}

/* Luxury gold stardust dot grid for texture depth */
.ambient-gold-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
  pointer-events: none;
}

/* Fluid Keyframe Animations for Golden Blobs */
@keyframes gold-drift-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(70px, 45px, 0) scale(1.15);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-35px, 75px, 0) scale(0.95);
    opacity: 0.52;
  }
}

@keyframes gold-drift-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-80px, -55px, 0) scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-45px, 45px, 0) scale(1.18);
    opacity: 0.68;
  }
}

@keyframes gold-drift-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(85px, -65px, 0) scale(1.12);
    opacity: 0.68;
  }
  100% {
    transform: translate3d(35px, -35px, 0) scale(1);
    opacity: 0.5;
  }
}

@keyframes gold-drift-4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(55px, -45px, 0) scale(1.18);
    opacity: 0.62;
  }
  100% {
    transform: translate3d(-25px, -65px, 0) scale(0.96);
    opacity: 0.45;
  }
}

/* Ensure #root sits cleanly above background canvas */
#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ==========================================================================
   UI / UX Polish & Glassmorphism
   ========================================================================== */

/* Enhanced Product & Content Cards */
.bg-card {
  background-color: hsl(20 12% 12% / 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid hsl(30 15% 22% / 0.75);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-card:hover {
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 16px 36px -10px rgba(212, 175, 55, 0.2),
              0 0 24px 0 rgba(212, 175, 55, 0.1);
  transform: translateY(-4px);
}

/* Translucent Frosted Secondary Sections */
.bg-secondary {
  background-color: hsl(20 15% 15% / 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Header Luxury Frosted Glass */
header {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

/* Luxury Gold Buttons with Subtle Gleam */
button.bg-primary,
a.bg-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px 0 rgba(212, 175, 55, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button.bg-primary:hover,
a.bg-primary:hover {
  box-shadow: 0 6px 24px 0 rgba(212, 175, 55, 0.48);
  transform: translateY(-1.5px);
  filter: brightness(1.06);
}

/* Enhanced Section Divider Lines */
.section-divider::before,
.section-divider::after {
  background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent) !important;
  height: 1.5px !important;
}

/* Image Hover Zoom Polish */
.group:hover img {
  filter: brightness(1.05);
}
