@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Inter:wght@400;500&display=swap');

/* Base styles */
body {
  min-height: 100vh;
  transition: all 0.5s ease;
}

.ai-only {
  display: none;
}

.form-check-label {
  color: inherit;
}

/* AI Mode styles */
body.ai-mode {
  background: #050508;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 0%, rgba(6, 182, 212, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 30%);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body.ai-mode .ai-only {
  display: block;
}

body.ai-mode .form-check-label {
  color: #94a3b8;
}

body.ai-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, transparent 0%, #050508 70%);
  pointer-events: none;
  z-index: -1;
}

body.ai-mode h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899, #8b5cf6, #06b6d4);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8)) 
          drop-shadow(0 0 60px rgba(6, 182, 212, 0.5))
          drop-shadow(0 0 90px rgba(236, 72, 153, 0.3));
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

body.ai-mode .lead {
  color: rgba(148, 163, 184, 0.9) !important;
  font-family: 'Inter', sans-serif;
}

body.ai-mode .form-control {
  background: rgba(30, 30, 45, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #e2e8f0;
}

body.ai-mode .form-control:focus {
  background: rgba(30, 30, 45, 0.9);
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  color: #e2e8f0;
}

body.ai-mode .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(139, 92, 246, 0.4),
    0 0 40px rgba(99, 102, 241, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

body.ai-mode .btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  50%, 100% { transform: translateX(100%) rotate(45deg); }
}

body.ai-mode .btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f472b6);
  box-shadow: 
    0 0 30px rgba(139, 92, 246, 0.6),
    0 0 60px rgba(236, 72, 153, 0.4),
    0 0 90px rgba(99, 102, 241, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
}

body.ai-mode .list-group {
  background: transparent;
}

body.ai-mode .list-group-item {
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.8), rgba(30, 20, 50, 0.6));
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2)) 1;
  color: #e2e8f0;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 
    0 0 15px rgba(99, 102, 241, 0.1),
    inset 0 0 30px rgba(139, 92, 246, 0.05);
}

body.ai-mode .list-group-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #06b6d4, #8b5cf6, #ec4899);
  opacity: 0.7;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

body.ai-mode .list-group-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border-image: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.4)) 1;
  box-shadow: 
    0 0 25px rgba(139, 92, 246, 0.3),
    0 0 50px rgba(99, 102, 241, 0.15),
    inset 0 0 40px rgba(139, 92, 246, 0.1);
  transform: translateX(8px) scale(1.01);
}

body.ai-mode .list-group-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(6, 182, 212, 0.5);
}

body.ai-mode .card-glow {
  position: relative;
}

body.ai-mode .card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  border-radius: 0.5rem;
  z-index: -1;
  opacity: 0.5;
  filter: blur(15px);
}

body.ai-mode header {
  animation: float 6s ease-in-out infinite;
}

body.ai-mode header p:first-child {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

body.ai-mode .form-control {
  box-shadow: 
    0 0 15px rgba(139, 92, 246, 0.2),
    inset 0 0 10px rgba(99, 102, 241, 0.1);
}

body.ai-mode .container::before {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

body.ai-mode .container::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: -50px;
  right: -50px;
  animation: pulse-glow 5s ease-in-out infinite reverse;
  pointer-events: none;
}
