/**
 * AION DESIGN SYSTEM — VIDRO LÍQUIDO & REFLEXOS ÓPTICOS (2026)
 * AION Action — Imersão Prática ao Vivo
 */

/* Malha de Orbs Líquidos Ambientais */
.liquid-mesh-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-index-mesh);
  overflow: hidden;
  contain: strict;
  clip-path: inset(0);
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  mix-blend-mode: screen;
  will-change: transform;
}

.liquid-orb--1 {
  top: -15%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 67, 224, 0.45) 0%, rgba(0, 36, 115, 0.2) 60%, transparent 75%);
  animation: orbDrift1 26s infinite alternate ease-in-out;
}

.liquid-orb--2 {
  top: 40%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 80, 255, 0.28) 0%, rgba(0, 24, 77, 0.15) 60%, transparent 75%);
  animation: orbDrift2 32s infinite alternate ease-in-out;
}

.liquid-orb--3 {
  bottom: 5%;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 48, 153, 0.32) 0%, rgba(0, 16, 51, 0.1) 60%, transparent 75%);
  animation: orbDrift3 28s infinite alternate ease-in-out;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 120px) scale(1.15); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -60px) scale(1.1); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -90px) scale(1.2); }
}

@media (max-width: 768px) {
  .liquid-orb {
    filter: blur(50px);
    opacity: 0.25;
    animation: none !important; /* Preserva GPU e bateria em smartphones mantendo 60/120 FPS */
    will-change: auto;
  }
  .liquid-orb--1 { width: 340px; height: 340px; top: -10%; right: -5%; }
  .liquid-orb--2 { width: 280px; height: 280px; top: 45%; left: -15%; }
  .liquid-orb--3 { width: 340px; height: 340px; bottom: 0%; right: -10%; }
}

/* ==========================================================================
   CARDS DE VIDRO LÍQUIDO (LIQUID GLASS)
   ========================================================================== */
.liquid-glass-card {
  position: relative;
  background: var(--glass-surface-card);
  backdrop-filter: blur(var(--glass-blur-liquid)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur-liquid)) saturate(var(--glass-saturate));
  border: var(--glass-border-specular);
  border-radius: 20px;
  padding: var(--space-xl);
  box-shadow: var(--glass-shadow-ambient), var(--glass-shadow-inset);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

/* Borda com reflexo de luz superior chanfrado */
.liquid-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.45) 70%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

/* Especular Reativo ao Cursor do Mouse */
[data-mouse-specular]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.09), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

[data-mouse-specular]:hover::after {
  opacity: 1;
}

/* Variantes de Cards */
.liquid-glass-card--subtle {
  background: rgba(12, 18, 32, 0.55);
  border-color: rgba(255, 255, 255, 0.09);
}

.liquid-glass-card--blue {
  background: linear-gradient(135deg, rgba(0, 36, 115, 0.38) 0%, rgba(10, 16, 32, 0.7) 100%);
  border-color: rgba(0, 80, 255, 0.35);
  box-shadow: var(--glass-shadow-ambient), 0 0 35px rgba(0, 80, 255, 0.2);
}

.liquid-glass-card--featured {
  background: linear-gradient(145deg, rgba(0, 48, 153, 0.35) 0%, rgba(12, 17, 30, 0.85) 60%, rgba(0, 24, 77, 0.45) 100%);
  border: 1px solid rgba(0, 110, 255, 0.5);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 80, 255, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
}

.liquid-glass-card--featured:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 140, 255, 0.7);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 65px rgba(0, 80, 255, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.45);
}

/* Pílula Flutuante em Vidro Líquido */
.liquid-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: rgba(14, 22, 40, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  color: var(--aion-light-white);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.liquid-glass-pill--blue {
  background: rgba(0, 48, 153, 0.35);
  border-color: rgba(0, 100, 255, 0.4);
  color: #C0D6FF;
}

.liquid-glass-pill--warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}
