@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at bottom right, #05091e 0%, #0b112b 75%);
  color: #ecf0f3;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Glow button */
.glow-button {
  background: linear-gradient(135deg, #00f6b9 0%, #37ffe1 100%);
  border-radius: 9999px;
  padding: 0.5rem 1.75rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 0 8px #00f6b9, 0 0 16px #37ffe1;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.glow-button:hover {
  box-shadow: 0 0 16px #00f6b9, 0 0 40px #37ffe1;
}

/* Glass card */
.glass-card {
  background: rgba(12, 19, 37, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.5);
  box-shadow: 0 8px 32px rgba(0, 255, 173, 0.12);
}

/* Globe container */
#globe-container {
  width: 400px;
  height: 400px;
  margin: 1rem auto;
  position: relative;
  filter: drop-shadow(0 0 12px #0ff);
}

/* Fixed background globe */
#bg-globe {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#bg-globe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Foreground content should float above bg globe */
.content-layer {
  position: relative;
  z-index: 1;
}

/* Labels */
.globe-label {
  position: absolute;
  color: #00ffcccc;
  font-size: 0.75rem;
  text-shadow: 0 0 6px #00ffccbb;
  font-weight: 600;
}

/* AI card */
.ai-enhancement {
  background: white;
  color: #0f172a;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(7, 16, 39, 0.5);
  padding: 1.5rem;
  max-width: 320px;
}
.ai-enhancement h3 {
  font-weight: 700;
  font-size: 1.25rem;
}
.ai-enhancement p {
  color: #475569;
  font-size: 0.875rem;
}

/* Enhancer controls */
.enhancer-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1rem;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0ea5e9;
  color: #fff;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}
.upload-btn input {
  display: none;
}
.secondary-btn {
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.secondary-btn:hover { filter: brightness(0.95); }

/* Split view (before/after) */
.split-view {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #0b1225;
  border-radius: 0.75rem;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
#beforeCanvas, #afterCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.split-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  background: #00ffd9;
  box-shadow: 0 0 8px #00ffd9;
  pointer-events: none;
}

/* Shadow glow effect */
.shadow-glow {
  box-shadow: 0 0 8px currentColor;
}
.split-legend {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}
.enhancer-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
.sample-thumb {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* Teaser link wrapper */
.teaser-link { text-decoration: none; color: inherit; display: block; }
.teaser-row { margin-top: 6px; display: flex; justify-content: space-between; color: #64748b; font-size: 0.8rem; }

/* Image container */
.ai-image-container {
  display: flex;
  gap: 0.75rem;
}
.ai-image-container div {
  flex: 1;
  border-radius: 0.75rem;
  overflow: hidden;
}
.before-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 9999px;
}

/* Slider */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.slider {
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #11ffb4, #61ffdf, #a0fff6);
}
.slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
}

/* Locator */
.locator {
  background: #121f3e;
  border-radius: 1rem;
  padding: 1rem;
  max-width: 320px;
  color: white;
}
.search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 9999px;
  background: #e0f2fe;
}
.map-container {
  margin-top: 12px;
  border-radius: 1rem;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 160px;
}

/* Map div (Google Maps) */
#map {
  width: 100%;
  height: 160px;
}

/* Stats card */
.stats-card {
  background: rgba(31, 41, 55, 0.6);
  border-radius: 16px;
  padding: 1rem;
}
.stats-card h4 {
  color: #a5f9d5;
}
.stats-label {
  display: flex;
  gap: 0.5rem;
  color: #64ffdadd;
}
.green-dot {
  background: #00ffd9;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

/* Clock card removed */

/* Top right button */
.top-right-circle-btn {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  border: 2px solid #37ffe1aa;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  color: #0ff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer star */
.footer-star {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: radial-gradient(circle, #00ffd9, transparent 60%);
  clip-path: polygon(
    50% 0%, 60% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 40% 35%
  );
}

/* Top navigation */
.topnav { display: flex; gap: 14px; align-items: center; }
.topnav a { color: #e2e8f0; opacity: 0.9; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topnav a:hover { opacity: 1; color: #a7f3d0; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1; /* above bg globe */
  margin-top: 40px;
  padding: 24px 16px;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,0.55) 100%);
}
.site-footer .inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.site-footer a { color: #a7f3d0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

#bg-globe {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#bg-globe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
