/* Tilas Lounge & Bar — Sunset Tide design system shared styles
   Used across all pages. Tailwind CDN handles utility classes;
   this file holds tokens, custom components, and motion. */

:root {
  --color-bg: #0B1F2A;          /* Midnight Ocean */
  --color-surface: #143042;     /* Deep Surf */
  --color-surface-2: #091E29;
  --color-coral: #FF6B3D;       /* Sunset Coral */
  --color-amber: #FFC75A;       /* Golden Hour Amber */
  --color-teal: #27D9C7;        /* Lagoon Teal */
  --color-sand: #F6F3E9;        /* Sand Mist */
  --color-sand-dim: #C6BFB0;
  --color-on-surface-variant: #A2B4C0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-sand);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.syne { font-family: 'Syne', sans-serif; letter-spacing: -0.02em; }
.label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Glass card — used everywhere */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
  background: rgba(20, 48, 66, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Coral primary button */
.btn-coral {
  background: var(--color-coral);
  color: #fff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-coral:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 107, 61, 0.45);
}

/* Teal ghost button */
.btn-teal-ghost {
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  padding: 12px 26px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}
.btn-teal-ghost:hover { background: rgba(39, 217, 199, 0.1); }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(39, 217, 199, 0.12);
  color: var(--color-teal);
}

.chip-amber { background: rgba(255, 199, 90, 0.14); color: var(--color-amber); }
.chip-coral { background: rgba(255, 107, 61, 0.16); color: var(--color-coral); }

/* Now Open pulsing dot */
.live-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-coral);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--color-coral);
  opacity: 0.6;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero text shadow for legibility on photos */
.hero-text-shadow { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(11, 31, 42, 0.97);
  backdrop-filter: blur(24px);
  z-index: 40;
  flex-direction: column;
  padding: 32px 24px;
  gap: 24px;
}
.mobile-menu.open { display: flex; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 217, 199, 0.3), transparent);
}

/* Form inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-sand);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(246, 243, 233, 0.4); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-teal);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(39, 217, 199, 0.15);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-sand-dim);
  margin-bottom: 8px;
}

/* Equalizer bars (decorative) */
.eq-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq-bars span {
  display: block;
  width: 3px;
  background: var(--color-teal);
  border-radius: 2px;
  animation: eq-bounce 1.2s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { height: 95%; animation-delay: 0.45s; }
.eq-bars span:nth-child(5) { height: 60%; animation-delay: 0.6s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

/* Image fallback */
img { max-width: 100%; height: auto; }

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
