/* VieNeu-TTS custom styles — Design System */

/* ===== Glassmorphism Utilities ===== */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-sm {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-hover {
  transition: background 0.2s ease, border-color 0.2s ease;
}
.glass-hover:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 58, 237, 0.3);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #A78BFA 0%, #F43F5E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glow Effects ===== */
.glow-primary {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35), 0 0 60px rgba(124, 58, 237, 0.15);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1);
}

/* ===== Card Shadow ===== */
.card-shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* ===== Neon Border ===== */
.border-neon {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.05);
}

/* ===== Primary Button ===== */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

/* ===== Subtle Grid Background ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== Fade-in Animation ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

/* ===== Light Theme Overrides for Glass ===== */
.light-theme .glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.light-theme .glass-sm {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.light-theme .gradient-text {
  background: linear-gradient(135deg, #7C3AED 0%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.light-theme .glass-hover:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(124, 58, 237, 0.25);
}
.light-theme .card-shadow {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.light-theme .glow-primary {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.18), 0 0 40px rgba(124, 58, 237, 0.08);
}
.light-theme .glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.18), 0 0 40px rgba(6, 182, 212, 0.08);
}
.light-theme .grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.light-theme .border-neon {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.03);
}
