
/* Custom animations and transitions for Matat documentation */

/* Fade-in animation for on-page elements */
.animate-fade-in {
  opacity: 0.2;
  transform: translateY(20px);
}

/* Smooth max-height transition for collapsible content */
.transition-max-height {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

/* Custom code block styling */
code {
  font-family: 'Fira Code', 'Courier New', monospace;
}

/* Dark mode support for code blocks */
.dark code {
  background-color: #1a1a1a;
  color: #d1d5db;
}

/* Smooth scroll behavior for anchors */
a {
  scroll-behavior: smooth;
}

/* Custom button hover effect */
button:hover path,
a:hover path {
  transition: stroke 0.3s ease;
  stroke: #6366f1 !important;
}

/* Focus state for interactive elements */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Custom shadow for documentation pages */
.docs-card {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.docs-card:hover {
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1),
              0 8px 10px -5px rgba(0, 0, 0, 0.05);
}

/* Custom transition for collapsible content */
.collapsible-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

/* Custom select styling */
.select-wrapper {
  position: relative;
  background-color: white;
  border-radius: 0.375rem;
  overflow: hidden;
}

.select-wrapper select {
  appearance: none;
  background: none;
  border: none;
  width: 100%;
  padding: 0.75rem 1.75rem 0.75rem 1rem;
  font-size: 0.875rem;
}

.select-arrow {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  fill: #94a3b8;
  width: 1.5rem;
  height: 1.5rem;
}

/* Glassmorphism cards for documentation */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Custom tooltip styling */
.tooltip-base {
  max-width: 320px;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  z-index: 10;
  position: fixed;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-decoration-break: clone;
}
