/* Global styles for Vue app */
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
  background: #F7F9F7;
}

#app {
  min-height: 100vh;
  display: block;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.seo-fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  color: #0f172a;
}

.seo-fallback h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.seo-fallback p {
  max-width: 760px;
  color: #334155;
  font-size: 1.125rem;
  line-height: 1.7;
}

.seo-fallback nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.seo-fallback a {
  color: #166534;
  font-weight: 600;
}

/* Modal backdrop fix - scoped to specific modal patterns */
.fixed.inset-0.bg-black,
.fixed.inset-0.bg-opacity-50,
.fixed.inset-0[class*="bg-black"] {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

/* Modal content centering fix */
.fixed.inset-0.flex.items-center.justify-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  overflow-y: auto !important;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden !important;
}

/* Loading state */
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
