/* Tranyx Web — Global Styles
   Tailwind CDN handles utility classes.
   This file contains: animations, scrollbar hiding, custom component styles.
*/

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Base Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #09090b;
  /* zinc-950 */
  color: #fafafa;
}

/* ── Scrollbar Hiding ── */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ── Fade-up animation (0.5s cubic-bezier — React prototype parity) ── */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for list items */
.stagger-1 {
  animation-delay: 0.05s;
}

.stagger-2 {
  animation-delay: 0.10s;
}

.stagger-3 {
  animation-delay: 0.15s;
}

.stagger-4 {
  animation-delay: 0.20s;
}

/* ── Spin animation for Loader ── */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ── Pulse animation ── */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Logo Gradient ── */
.logo-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* ── Phantom brand gradient ── */
.phantom-gradient {
  background: linear-gradient(135deg, #9945FF 0%, #AB9FF2 100%);
}

/* ── Active nav gradient ── */
.nav-active-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
}

/* ── Card hover lift ── */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

/* ── Gradient border utility ── */
.gradient-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.gradient-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  z-index: -1;
}

/* ── Gig timer text ── */
.gig-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ── Range input styling ── */
input[type='range'] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #3f3f46;
  /* zinc-700 */
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ── Textarea override ── */
textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Leaflet Dark Mode Tiles ── */
.map-tiles-dark {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Fix Leaflet map tiles squished by Tailwind preflight reset */
.leaflet-container img {
  max-width: none !important;
}

/* ── MapLibre Popup Custom Styling ── */

/* Light mode popup styling */
.theme-light .maplibregl-popup-content {
  background-color: #ffffff !important;
  color: #09090b !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
}
.theme-light .maplibregl-popup-close-button {
  color: #71717a !important;
  padding: 4px;
}
.theme-light .maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
  border-bottom-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}
.theme-light .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}

/* Dark mode popup styling */
.theme-dark .maplibregl-popup-content {
  background-color: #18181b !important;
  color: #fafafa !important;
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
}
.theme-dark .maplibregl-popup-close-button {
  color: #a1a1aa !important;
  padding: 4px;
}
.theme-dark .maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
  border-bottom-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
  border-top-color: #18181b !important;
}
.theme-dark .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: #18181b !important;
}