/* MeetMe — ember theme: orange #FF5A00 / red #E11900 / near-black glass. */

:root {
  --mm-orange: #ff5a00;
  --mm-orange-hi: #ff8a3c;
  --mm-red: #e11900;
  --mm-ink: #07100e;
  --mm-text: #f5efe9;
  --mm-muted: #c9bdb2;
}

html { scroll-behavior: smooth; }

body {
  color: var(--mm-text);
  background-color: #080606;
  background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 90, 0, 0.16), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(225, 25, 0, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 122, 26, 0.10), transparent 65%),
    linear-gradient(165deg, #0b0908 0%, #120a06 45%, #0a0605 100%);
  background-attachment: fixed;
}

::selection { background: rgba(255, 90, 0, 0.55); color: #fff; }

/* The "NOW" artwork as a fixed, full-viewport backdrop.
   .mm-photo-bg      — light, uniform scrim: the photo stays visible edge to edge
                       (service page, admin panel).
   .mm-photo-bg-dim  — heavier scrim for pages where content should dominate
                       (service picker / owner home). */
body.mm-photo-bg {
  background:
    linear-gradient(rgba(8, 6, 5, 0.52), rgba(8, 6, 5, 0.52)),
    url("/static/bg-now.jpg") center / cover no-repeat fixed;
}
body.mm-photo-bg-dim {
  background:
    linear-gradient(rgba(8, 6, 5, 0.80), rgba(8, 6, 5, 0.88)),
    url("/static/bg-now.jpg") center / cover no-repeat fixed;
}

/* ---- Components ---------------------------------------------------------- */

.mm-glass {
  background: rgba(19, 15, 13, 0.62);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--mm-orange);
  border-radius: 1rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.mm-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.mm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 90, 0, 0.22);
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, var(--mm-orange) 45%, var(--mm-red));
  background-size: 180% 180%;
  box-shadow: 0 6px 22px rgba(255, 90, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, background-position 0.5s;
}
.mm-btn:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 10px 30px rgba(255, 90, 0, 0.55);
}
.mm-btn:active { transform: translateY(0); }

.mm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  color: var(--mm-orange-hi);
  background: rgba(255, 90, 0, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.4);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.mm-btn-ghost:hover {
  background: rgba(255, 90, 0, 0.18);
  border-color: var(--mm-orange);
  color: #fff;
}

.mm-chip {
  background: rgba(19, 15, 13, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--mm-text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mm-chip:hover {
  border-color: var(--mm-orange);
  background: rgba(255, 90, 0, 0.12);
  transform: translateY(-2px);
}
.mm-chip.mm-active {
  border-color: var(--mm-orange);
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.25), rgba(225, 25, 0, 0.25));
  box-shadow: 0 0 18px rgba(255, 90, 0, 0.4);
}

/* A day with no free slots: greyed out, not interactive. */
.mm-chip-off {
  opacity: 0.45;
  cursor: not-allowed;
  color: #8d8178;
}
.mm-chip-off:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(19, 15, 13, 0.55);
  transform: none;
}

/* ---- Day strip (horizontal scroller with arrow buttons) ------------------- */

.mm-days {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}
.mm-days::-webkit-scrollbar { display: none; }
.mm-days > * { scroll-snap-align: start; }

.mm-scrollbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--mm-orange-hi);
  background: rgba(19, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 122, 26, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.mm-scrollbtn:hover {
  background: rgba(255, 90, 0, 0.2);
  border-color: var(--mm-orange);
  color: #fff;
}
.mm-scrollbtn[disabled] {
  opacity: 0;
  pointer-events: none;
}
.mm-scrollbtn-left { left: -0.6rem; }
.mm-scrollbtn-right { right: -0.6rem; }

.mm-grad-text {
  background: linear-gradient(92deg, #fff 0%, #ffd2ad 30%, var(--mm-orange) 65%, var(--mm-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mm-underline {
  position: relative;
  padding-bottom: 0.35rem;
}
.mm-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 3.5rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--mm-orange), var(--mm-red));
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.7);
}

/* ---- Animations ----------------------------------------------------------- */

@keyframes mmFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.mm-fade { opacity: 0; animation: mmFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.mm-d1 { animation-delay: 0.08s; }
.mm-d2 { animation-delay: 0.18s; }
.mm-d3 { animation-delay: 0.28s; }
.mm-d4 { animation-delay: 0.38s; }

@keyframes mmGlow {
  0%, 100% { box-shadow: 0 6px 22px rgba(255, 90, 0, 0.35); }
  50% { box-shadow: 0 6px 34px rgba(255, 90, 0, 0.65); }
}
.mm-pulse { animation: mmGlow 2.6s ease-in-out infinite; }

@keyframes mmFlicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.mm-flicker { animation: mmFlicker 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .mm-fade { animation: none; opacity: 1; }
  .mm-pulse, .mm-flicker { animation: none; }
  .mm-card, .mm-btn, .mm-chip { transition: none; }
}

/* ---- Forms ---------------------------------------------------------------- */

input, textarea, select {
  background: rgba(10, 8, 7, 0.65) !important;
  color: var(--mm-text) !important;
  border-color: rgba(255, 122, 26, 0.28) !important;
  border-radius: 0.6rem;
}
input::placeholder, textarea::placeholder { color: #8d8178; }
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--mm-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.25);
}
input[type="checkbox"] { accent-color: var(--mm-orange); }

/* ---- Dark remap of legacy light utility classes ---------------------------
   Legal/admin templates still use light-theme Tailwind utilities; this layer
   remaps them onto the ember theme so every page matches without rewriting
   each template. Loaded after the Tailwind CDN, so it wins the cascade. */

.bg-white {
  background: rgba(19, 15, 13, 0.62) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bg-slate-50, .bg-slate-100 { background: transparent !important; }
.border-slate-200, .border-slate-300 { border-color: rgba(255, 122, 26, 0.22) !important; }
.text-slate-800, .text-slate-700, .text-slate-900 { color: var(--mm-text) !important; }
.text-slate-600, .text-slate-500 { color: var(--mm-muted) !important; }
.text-slate-400 { color: #97897d !important; }
.text-blue-600 { color: var(--mm-orange-hi) !important; }
.hover\:text-blue-600:hover { color: var(--mm-orange-hi) !important; }
.hover\:text-red-600:hover { color: #ff6a4d !important; }
.bg-blue-600 { background: linear-gradient(135deg, #ff8a00, var(--mm-orange) 45%, var(--mm-red)) !important; }
.hover\:bg-blue-700:hover { filter: brightness(1.15); }
.hover\:bg-blue-50:hover, .hover\:bg-red-50:hover { background: rgba(255, 90, 0, 0.12) !important; }
.hover\:border-blue-400:hover, .hover\:border-blue-500:hover { border-color: var(--mm-orange) !important; }
.border-blue-500 { border-color: var(--mm-orange) !important; }
.ring-blue-500 { --tw-ring-color: var(--mm-orange) !important; }
.bg-red-50 { background: rgba(225, 25, 0, 0.14) !important; }
.text-red-700, .text-red-600 { color: #ff7a5c !important; }
.border-red-200, .border-red-300 { border-color: rgba(255, 90, 0, 0.45) !important; }
.bg-green-50, .bg-green-100 { background: rgba(255, 138, 0, 0.16) !important; }
.text-green-800, .text-green-700 { color: #ffb480 !important; }
.border-green-200 { border-color: rgba(255, 138, 0, 0.4) !important; }
.bg-amber-100 { background: rgba(255, 170, 0, 0.16) !important; }
.text-amber-700 { color: #ffc266 !important; }
.bg-red-100 { background: rgba(225, 25, 0, 0.2) !important; }
.bg-slate-100.text-slate-700, .bg-slate-200 { background: rgba(255, 255, 255, 0.08) !important; }
.hover\:shadow-md:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 90, 0, 0.2) !important; }
.shadow-sm, .shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important; }
table { color: var(--mm-text); }
