/* Minimal layout styles */
body[data-controller*="theme"] {
  background-color: #EDF6F9 !important;
  min-height: 100vh;
}

html {
  background-color: #EDF6F9;
}

.font-cursive {
  font-family: 'Brush Script MT', cursive, 'Dancing Script', 'Pacifico', sans-serif;
}

/* Markdown content styling for AI chat responses */
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.prose ul ul,
.prose ol ul {
  list-style-type: circle;
}

.prose ul ul ul,
.prose ol ul ul {
  list-style-type: square;
}

.prose p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose a {
  color: oklch(55% 0.12 175);
}

.prose strong {
  font-weight: 600;
  color: #374151;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose h4 {
  margin-bottom: 0.75rem;
}

.prose h5 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose h5:first-of-type {
  margin-top: 0;
}

/* Chat streaming animations */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  animation: blink 1s infinite;
  margin-left: 2px;
  vertical-align: text-bottom;
}

@keyframes message-pulse {
  0%, 100% { background-color: white; }
  50% { background-color: rgb(249, 250, 251); }
}

.message-streaming {
  animation: message-pulse 2s ease-in-out infinite;
}

/* Google Places autocomplete dropdown */
.pac-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  margin-top: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  overflow: hidden;
}

.pac-container .pac-item {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #f3f4f6;
  cursor: pointer;
  line-height: 1.5;
}

.pac-container .pac-item:first-child {
  border-top: none;
}

.pac-container .pac-item:hover,
.pac-container .pac-item.pac-item-selected {
  background-color: #f9fafb;
}

.pac-container .pac-item .pac-item-query {
  font-size: 0.875rem;
  color: #111827;
}

.pac-container .pac-item .pac-matched {
  font-weight: 600;
}

.pac-container .pac-item span:last-child {
  color: #6b7280;
  font-size: 0.8125rem;
}

.pac-container .pac-icon {
  margin-top: 2px;
}

.pac-container::after {
  display: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .streaming-cursor,
  .message-streaming {
    animation: none;
  }
}
