/* Verbi — custom styles on top of Tailwind CDN */

:root {
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-warm:    linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-cool:    linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
}

html { scroll-behavior: smooth; }

body {
  font-feature-settings: 'cv11','ss01';
  text-rendering: optimizeLegibility;
}

/* Animated gradient text */
.text-gradient {
  background: var(--grad-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s ease infinite;
}

/* Soft glass card */
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.4);
}
.dark .glass {
  background: rgba(30,27,75,.55);
  border: 1px solid rgba(255,255,255,.08);
}

/* Lesson card hover */
.lesson-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(99,102,241,.35);
}

/* Floating animation */
.float-slow { animation: float 7s ease-in-out infinite; }
.float-fast { animation: float 4s ease-in-out infinite; }

/* Pulse for active mic */
.mic-pulse::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(244,63,94,.4);
  animation: ripple 1.2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Chat bubbles */
.bubble-user {
  background: var(--grad-primary);
  color: white;
  border-radius: 20px 20px 4px 20px;
}
.bubble-tutor {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 20px 20px 20px 4px;
  white-space: pre-wrap;
}
.dark .bubble-tutor {
  background: #1e1b4b;
  color: #e0e7ff;
}

/* Typing dots */
.typing span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 2px;
  opacity: .4;
  animation: typing 1.2s infinite;
}
.typing span:nth-child(2){ animation-delay: .2s; }
.typing span:nth-child(3){ animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Progress pulse ring */
.pulse-ring {
  background: conic-gradient(from 0deg, #6366f1 var(--p,0%), rgba(99,102,241,.15) var(--p,0%));
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(99,102,241,.55);
  transition: transform .15s ease, box-shadow .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(99,102,241,.7); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(99,102,241,.25);
  color: #4338ca;
  transition: background .2s ease;
}
.dark .btn-ghost { color: #c7d2fe; border-color: rgba(199,210,254,.2); }
.btn-ghost:hover { background: rgba(99,102,241,.07); }

/* RTL */
html[lang="ur"] { direction: rtl; }
html[lang="ur"] body { font-family: 'Inter','Noto Naskh Arabic', sans-serif; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
