/* AppFig Website Styles */

:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

/* Glass morphism effect */
.glass {
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(255,255,255,0.7);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(20,20,20,0.6);
  }
}

/* Logo sizing */
.logo-brain {
  height: 1.75rem;
  width: 1.75rem;
}

/* Gradient buttons */
.gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-purple:hover {
  background: linear-gradient(135deg, #7c8ef7 0%, #8558b5 100%);
}

/* Code highlighting */
.code-highlight {
  background: linear-gradient(90deg, rgba(249,115,22,0.1) 0%, transparent 100%);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Comparison cards */
.comparison-card {
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Details/Summary styling */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
}

details[open] > summary::after {
  content: '−';
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #667eea;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

.hamburger {
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
