@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Custom styles for markdown content in chat messages */
.chat-message .prose {
  color: inherit;
}

.chat-message .prose p {
  margin: 0;
  line-height: 1.5;
}

.chat-message .prose p + p {
  margin-top: 0.75rem;
}

.chat-message .prose ul,
.chat-message .prose ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.chat-message .prose li {
  margin: 0.25rem 0;
}

.chat-message .prose code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.chat-message .prose pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.chat-message .prose pre code {
  background-color: transparent;
  padding: 0;
}

.chat-message .prose blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  margin: 0.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.chat-message .prose a {
  color: #3b82f6;
  text-decoration: underline;
}

.chat-message .prose a:hover {
  color: #2563eb;
}

.chat-message .prose strong {
  font-weight: 600;
}

.chat-message .prose em {
  font-style: italic;
}

/* Blob animation for gradient background */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animation-delay-6000 {
  animation-delay: 6s;
}

/* Profile animation styles */
@keyframes profileFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
}

@keyframes profileFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes avatarBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Glass bubble animation */
@keyframes glassShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glassFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

.profile-fade-out {
  animation: profileFadeOut 0.2s ease-in-out forwards;
}

.profile-fade-in {
  animation: profileFadeIn 0.4s ease-out forwards;
}

.animated-profile {
  transition: all 0.3s ease-in-out;
}

.animated-profile .avatar-container {
  animation: avatarBounce 0.6s ease-in-out;
}

/* Hand-drawn avatar styles */
.hand-drawn-avatar {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.hand-drawn-avatar:hover {
  transform: scale(1.05);
}

/* Glassmorphism bubble styles */
.glass-bubble {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 16px 0 rgba(0, 0, 0, 0.1);
  color: #374151;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  animation: glassFloat 4s ease-in-out infinite;
}

.glass-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: glassShimmer 3s ease-in-out infinite;
  animation-delay: 1s;
}

.glass-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.glass-bubble:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

/* Mobile-specific styles for homepage */
@media (max-width: 768px) {
  /* Increase padding for main hero section on mobile */
  .headline-section {
    padding: 3rem;
  }
  
  /* Increase margin-top for text content on mobile */
  .space-y-8 {
    margin-top: 2rem;
  }
  
  /* Make CTA button full width on mobile */
  .space-y-8 .inline-block {
    display: block;
    width: 100%;
    text-align: center;
  }
}