/* Harbor Hotel — custom component, palette, and dialog styles for Modulify replica */

:root {
  --color-harbor-sand: #f9f3e6;
  --color-harbor-shell: #f0e5d2;
  --color-harbor-foam: #ddf0ea;
  --color-harbor-sea: #18524c;
  --color-harbor-sea-dark: #0f3531;
  --color-harbor-ink: #0d2721;
  --color-harbor-brass: #c69449;
  --color-harbor-brass-deep: #845922;

  --font-app-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-app-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-app-heading: 'Fraunces', 'Sora', Georgia, serif;
  --font-app-serif: 'Fraunces', Georgia, serif;
}

/* ---------------------------------------------------------------- Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ---------------------------------------------------------------- Receipts (.receipt) */
#requests .receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-harbor-foam);
  border: 1px solid #a8dad0;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: #0f3531;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(13, 39, 33, 0.05);
  animation: receipt-fade-in 0.25s ease-out;
}

#requests .receipt strong {
  font-family: var(--font-app-mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #a8dad0;
  color: var(--color-harbor-sea);
  white-space: nowrap;
}

@keyframes receipt-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------- Quick Prompt Chips */
.prompt-chip {
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.prompt-chip:hover {
  background-color: var(--color-harbor-shell);
  border-color: var(--color-harbor-sea);
  color: var(--color-harbor-sea);
  transform: translateY(-1px);
}

.prompt-chip:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- Concierge Slide-over Drawer */
#concierge-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 39, 33, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#concierge-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#concierge-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(13, 39, 33, 0.2);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(13, 39, 33, 0.1);
}

#concierge-drawer.is-open {
  transform: translateX(0);
}

/* ---------------------------------------------------------------- Dialogs (.assistant-review) */
dialog.assistant-review {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(13, 39, 33, 0.15);
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(13, 39, 33, 0.25);
  max-width: 32rem;
  width: calc(100% - 2rem);
  z-index: 100;
  font-family: var(--font-app-sans);
  color: var(--color-harbor-ink);
}

dialog.assistant-review::backdrop {
  background: rgba(13, 39, 33, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

dialog.assistant-review h2 {
  font-family: var(--font-app-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-harbor-ink);
  letter-spacing: -0.01em;
}

dialog.assistant-review p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(13, 39, 33, 0.75);
  margin-bottom: 1.25rem;
}

dialog.assistant-review dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem;
  background: var(--color-harbor-sand);
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(13, 39, 33, 0.08);
}

dialog.assistant-review dt {
  font-weight: 600;
  color: rgba(13, 39, 33, 0.6);
}

dialog.assistant-review dd {
  font-weight: 500;
  color: var(--color-harbor-ink);
}

dialog.assistant-review details {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

dialog.assistant-review details summary {
  cursor: pointer;
  color: var(--color-harbor-sea);
  font-weight: 600;
}

dialog.assistant-review pre {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--color-harbor-ink);
  color: var(--color-harbor-sand);
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-app-mono);
  font-size: 0.8rem;
  line-height: 1.4;
}

dialog.assistant-review button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 0.5rem;
}

dialog.assistant-review button:not(.assistant-decline) {
  background: var(--color-harbor-sea);
  color: var(--color-harbor-sand);
  border: none;
}

dialog.assistant-review button:not(.assistant-decline):hover {
  background: var(--color-harbor-sea-dark);
}

dialog.assistant-review button.assistant-decline {
  background: transparent;
  color: var(--color-harbor-ink);
  border: 1px solid rgba(13, 39, 33, 0.25);
}

dialog.assistant-review button.assistant-decline:hover {
  background: var(--color-harbor-shell);
}

/* ---------------------------------------------------------------- Floating Concierge Button */
.relay-dock {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
}

.relay-dock button {
  box-shadow: 0 16px 36px -8px rgba(13, 39, 33, 0.4), 0 4px 12px rgba(13, 39, 33, 0.1);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.relay-dock button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px -8px rgba(13, 39, 33, 0.5), 0 6px 16px rgba(13, 39, 33, 0.15);
}

/* ---------------------------------------------------------------- Media Query adjustments */
@media (max-width: 640px) {
  dialog.assistant-review dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
