/**
 * VYRO - Spatial Primitives & Decoration System
 */

/* ==========================================================================
   Spatial Orbs
   ========================================================================== */
.vyro-spatial-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.vyro-spatial-orb--sm { width: 200px; height: 200px; filter: blur(40px); }
.vyro-spatial-orb--md { width: 340px; height: 340px; filter: blur(60px); }
.vyro-spatial-orb--lg { width: 500px; height: 500px; filter: blur(100px); }
.vyro-spatial-orb--xl { width: 700px; height: 700px; filter: blur(140px); }

.vyro-spatial-orb--violet { background: rgba(168, 85, 247, 0.4); }
.vyro-spatial-orb--rose { background: rgba(236, 72, 153, 0.4); }
.vyro-spatial-orb--indigo { background: rgba(99, 102, 241, 0.4); }

/* ==========================================================================
   Spatial Rings
   ========================================================================== */
.vyro-spatial-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transform-origin: center center;
}

.vyro-spatial-ring--outer {
  width: 400px;
  height: 400px;
  animation: vyroRingRotate 30s linear infinite;
}

.vyro-spatial-ring--inner {
  width: 280px;
  height: 280px;
  animation: vyroRingRotate 20s linear infinite reverse;
}

.vyro-spatial-ring--glow {
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.2);
}

@media (min-width: 1024px) {
  .vyro-spatial-ring--outer { width: 600px; height: 600px; }
  .vyro-spatial-ring--inner { width: 420px; height: 420px; }
}

/* ==========================================================================
   Spatial Cards
   ========================================================================== */
.vyro-spatial-card {
  background: rgba(13, 13, 23, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.vyro-spatial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
}

.vyro-spatial-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vyro-spatial-card__metric {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.vyro-spatial-card__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.vyro-spatial-card__badge {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Spatial Scene & 3D Elements
   ========================================================================== */
.vyro-spatial-scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.vyro-spatial-product {
  position: relative;
  z-index: 10;
  animation: vyroSpatialFloat 6s ease-in-out infinite;
  max-width: 80%;
  max-height: 80%;
}

.vyro-spatial-podium {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: vyroPodiumPulse 4s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .vyro-spatial-podium {
    width: 400px;
    height: 80px;
  }
}

/* ==========================================================================
   Textures & Typography Utilities
   ========================================================================== */
.vyro-noise-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vyro-gradient-text {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.vyro-gradient-border {
  position: relative;
  background: clip-padding-box;
  border: solid 2px transparent;
  border-radius: inherit;
}

.vyro-gradient-border::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* ==========================================================================
   Grid & Section System
   ========================================================================== */
.vyro-section {
  padding: 4rem 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .vyro-section {
    padding: 6rem 2rem;
  }
}

.vyro-section--dark {
  background-color: #0d0d17;
  color: #fff;
}

.vyro-section--light {
  background-color: #ffffff;
  color: #0f172a;
}

.vyro-section--hero {
  padding: 0;
  overflow: hidden;
}
