/* ============================================
   SYNTRA - Custom Styles
   ============================================ */

/* Theme Custom Properties */
:root {
  --brand-violet: #6366F1;
  --brand-blue: #3B82F6;
  --brand-dark: #0A0A0A;
  --brand-card: #111111;
  --brand-navy: #16161D;
}

/* Dark mode overrides */
.dark {
  --bg-primary: #0A0A0A;
  --bg-card: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-bounce {
  animation: bounce 0.6s infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

.animate-ping-slow {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366F1;
}

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Grid background pattern */
.bg-grid-pattern {
  background-image: linear-gradient(to right, #111111 1px, transparent 1px),
                    linear-gradient(to bottom, #111111 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

/* Glass morphism effects */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typing indicator dots */
.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #71717A;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 0.6s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* Custom focus rings */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #6366F1;
  outline-offset: 2px;
}

/* Markdown content styling */
.markdown-content h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #18181B;
}

.dark .markdown-content h3 {
  color: #FFFFFF;
}

.markdown-content p {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: #3F3F46;
}

.dark .markdown-content p {
  color: #A1A1AA;
}

.markdown-content strong {
  font-weight: 600;
  color: #18181B;
}

.dark .markdown-content strong {
  color: #F4F4F5;
}

.markdown-content ul {
  list-style: none;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content li {
  border-left: 1px solid #27272A;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #52525B;
}

.dark .markdown-content li {
  color: #A1A1AA;
  border-left-color: #3F3F46;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Loading shimmer effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}