/* ============================================================
   BRIGHTFLOWER STUDIOS — Heliochroic Gradient System
   Animated iridescent backgrounds, spectrum bar, shimmer effects
   Based on the Rashatan Code color references
   ============================================================ */


/* === HELIOCHROIC ANIMATED BACKGROUND ===
   Used on: hero section, section accent bands, mega menu backdrop
   Recreates the pearlescent / holographic foil look from the reference image.
   Layered radial gradients with slow position animation. */

.heliochroic-bg {
  background:
    radial-gradient(ellipse at 20% 50%, var(--helo-violet) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--helo-rose) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--helo-ice) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 10%, var(--helo-pearl) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, var(--helo-lavender) 0%, transparent 45%),
    var(--crystalline);
  background-size: 200% 200%;
  animation: helio-shift 20s ease-in-out infinite alternate;
}

@keyframes helio-shift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%, 100% 100%; }
  50%  { background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%; }
  100% { background-position: 100% 100%, 0% 100%, 50% 0%, 100% 100%, 0% 0%; }
}


/* === HELIOCHROIC TEXT GRADIENT ===
   Used sparingly on accent headings. Animated rainbow text fill. */

.heliochroic-text {
  background: linear-gradient(135deg, var(--helo-violet), var(--helo-rose), var(--aquatone), var(--helo-lavender));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: helio-text 8s ease-in-out infinite alternate;
}

@keyframes helio-text {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


/* === 12-DIMENSION SPECTRUM BAR ===
   Thin animated rainbow strip representing the 12 dimensional frequency bands.
   Used at top of page, as card accents, progress bars. */

.spectrum-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    #FF6B6B, /* D-1  Red */
    #FF9F43, /* D-2  Orange */
    #FECA57, /* D-3  Yellow */
    #48DBFB, /* D-4  Green-blue */
    #0ABDE3, /* D-5  Blue */
    #5F27CD, /* D-6  Indigo */
    #A29BFE, /* D-7  Violet */
    #FD79A8, /* D-8  Rose */
    #55EFC4, /* D-9  Aqua */
    #FDCB6E, /* D-10 Gold */
    #E8D5F5, /* D-11 Pale violet */
    #FFFFFF  /* D-12 White/Source */
  );
  background-size: 200% 100%;
  animation: spectrum-flow 6s linear infinite;
}

@keyframes spectrum-flow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}


/* === IRIDESCENT BORDER EFFECT ===
   Creates a gradient border using the mask-composite trick.
   Used on: newsletter card, featured cards. */

.iridescent-border {
  position: relative;
}
.iridescent-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--helo-violet), var(--helo-rose), var(--helo-ice), var(--helo-lavender));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* === GLASS MORPHISM ===
   Frosted translucent background with heliochroic bleed-through.
   Used on: mega menu panels. */

.glass {
  background: rgba(248, 250, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
}
