/* ─────────────────────────────────────────────────────────────────────
   UdyogahConnect — pre-Vue shell CSS
   Loaded synchronously in index.html <head> so the static SEO fallback
   inside <div id="app"> renders correctly for non-JS crawlers AND
   for JS-enabled users during the ~200ms before Vue mounts.

   Vue takes over #app on mount (see src-vue/main.ts) — everything below
   only affects the shell + fallback content. Do NOT put component
   styles here; use scoped styles in .vue files or the Tailwind pipeline.
   ─────────────────────────────────────────────────────────────────── */

/* Global shell */
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
  background: #1e293b;
}

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

/* Modal backdrop fix — scoped to specific modal patterns to avoid
   affecting non-modal fixed-position elements. */
.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;
}

.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;
}

body.modal-open {
  overflow: hidden !important;
}

/* Loading spinner (legacy pre-Vue placeholder, kept for any code path
   that still renders .app-loading before mount). */
.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); }
}

/* ─────────────────────────────────────────────────────────────────────
   Static SEO fallback styles
   Applies to the semantic markup inside <div id="app"> that renders
   for non-JS crawlers and briefly during Vue mount. Kept minimal so
   the flash isn't jarring; Vue overwrites everything on mount.

   Hide-during-flash: index.html inlines a <script> that adds
   `.js-loading` to <html> before first paint. main.ts removes the
   class after Vue mounts. Real users therefore never see the
   fallback (it renders off-screen). Non-JS crawlers never get the
   class added, so they still see the fallback content in the raw
   HTML output — SEO value preserved. position:absolute + off-screen
   is used instead of display:none because Googlebot and similar
   sometimes downweight display:none content.
   ─────────────────────────────────────────────────────────────────── */
.js-loading .uc-fallback {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.uc-fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: #e2e8f0;
  line-height: 1.6;
}
.uc-fallback__nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.uc-fallback__nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.uc-fallback__nav a:hover { color: #ffffff; }

.uc-fallback h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.uc-fallback__tagline {
  font-size: 1.05rem;
  color: #94a3b8;
  margin: 0 0 2.5rem;
}
.uc-fallback h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.uc-fallback ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
}
.uc-fallback ul li {
  padding: 0.35rem 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.uc-fallback ul li::before {
  content: "›";
  color: #64748b;
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 600;
}
.uc-fallback__countries {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-size: 0.9rem;
}
