/* Skyline Air — custom component and runtime styles for Modulify replica */

/* ---------------------------------------------------------------- Flight Cards (.flight) */
#flight-list .flight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(11, 23, 47, 0.12);
  border-radius: 1rem;
  box-shadow: 0 2px 6px -1px rgba(11, 23, 47, 0.04);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: var(--color-skyline-ink, #0b172f);
}

#flight-list .flight:hover {
  border-color: rgba(36, 95, 212, 0.45);
  box-shadow: 0 8px 24px -4px rgba(11, 23, 47, 0.08);
  transform: translateY(-1px);
}

#flight-list .flight:focus-visible {
  outline: 2px solid var(--color-skyline-blue, #245fd4);
  outline-offset: 2px;
}

#flight-list .flight[aria-pressed="true"] {
  border-color: var(--color-skyline-blue, #245fd4);
  background-color: #f0f6ff;
  box-shadow: 0 0 0 2px var(--color-skyline-blue, #245fd4), 0 8px 24px -4px rgba(36, 95, 212, 0.18);
}

#flight-list .flight .day {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-skyline-blue, #245fd4);
  background: var(--color-skyline-blue-soft, #deedff);
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

#flight-list .flight[aria-pressed="true"] .day {
  background: var(--color-skyline-blue, #245fd4);
  color: #ffffff;
}

#flight-list .flight .time {
  font-family: var(--font-app-heading, 'Sora', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-skyline-ink, #0b172f);
  margin-inline: 1rem;
  letter-spacing: -0.02em;
}

#flight-list .flight .meta {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(11, 23, 47, 0.7);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#flight-list .flight[aria-pressed="true"] .meta {
  color: var(--color-skyline-ink, #0b172f);
  font-weight: 600;
}

@media (max-width: 640px) {
  #flight-list .flight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem;
  }
  #flight-list .flight .time {
    margin-inline: 0;
  }
  #flight-list .flight .meta {
    margin-left: 0;
  }
}

/* ---------------------------------------------------------------- Receipts (.receipt) */
#bookings .receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a4f4cf;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 500;
}

#bookings .receipt strong {
  font-family: var(--font-app-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #a4f4cf;
  color: #047857;
}

/* ---------------------------------------------------------------- Trip selection status */
#selection {
  padding: 0.75rem 1rem;
  background: #f2f7fd;
  border-radius: 0.75rem;
  border: 1px dashed rgba(36, 95, 212, 0.35);
  font-size: 0.875rem;
  color: var(--color-skyline-ink, #0b172f);
}

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

/* ---------------------------------------------------------------- Assistant Slide-over Drawer */
#concierge-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 47, 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(11, 23, 47, 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(11, 23, 47, 0.1);
}

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

.relay-dock button {
  box-shadow: 0 16px 36px -8px rgba(11, 23, 47, 0.4), 0 4px 12px rgba(11, 23, 47, 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(11, 23, 47, 0.5), 0 6px 16px rgba(11, 23, 47, 0.15);
}

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

dialog.assistant-review::backdrop {
  background: rgba(11, 23, 47, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

dialog.assistant-review h2 {
  font-family: var(--font-app-heading, 'Sora', sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

dialog.assistant-review p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(11, 23, 47, 0.75);
  margin-bottom: 1.25rem;
}

dialog.assistant-review dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem;
  background: #f2f7fd;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

dialog.assistant-review dt {
  font-weight: 600;
  color: rgba(11, 23, 47, 0.6);
}

dialog.assistant-review dd {
  font-weight: 500;
  color: var(--color-skyline-ink, #0b172f);
}

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

dialog.assistant-review details summary {
  cursor: pointer;
  color: var(--color-skyline-blue, #245fd4);
  font-weight: 500;
}

dialog.assistant-review pre {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #0b172f;
  color: #ffffff;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-app-mono, monospace);
  font-size: 0.8rem;
}

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-skyline-blue, #245fd4);
  color: #ffffff;
  border: none;
}

dialog.assistant-review button:not(.assistant-decline):hover {
  background: var(--color-skyline-navy, #132750);
}

dialog.assistant-review button.assistant-decline {
  background: transparent;
  color: var(--color-skyline-ink, #0b172f);
  border: 1px solid rgba(11, 23, 47, 0.2);
}

dialog.assistant-review button.assistant-decline:hover {
  background: #f2f7fd;
}

/* ---------------------------------------------------------------- Privacy receipt (drawer) */
.receipt-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(11, 23, 47, 0.65);
  background: #f3f7fc;
  border: 1px solid rgba(11, 23, 47, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.receipt-count.blocked {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.3);
  background: #fdf1ef;
}
#privacy-receipt .receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.6rem;
}
#privacy-receipt .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 23, 47, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: 600 0.78rem/1.2 var(--font-app-sans, ui-sans-serif, system-ui, sans-serif);
  color: #0b172f;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
#privacy-receipt .button:hover {
  background: #f3f7fc;
  border-color: rgba(36, 95, 212, 0.4);
}
#privacy-receipt .button:focus-visible {
  outline: 2px solid #245fd4;
  outline-offset: 2px;
}
#privacy-receipt .receipt-status {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  color: rgba(11, 23, 47, 0.65);
}
#privacy-receipt .receipt-status.ok { color: #0f7b4f; font-weight: 700; }
#privacy-receipt .receipt-status.bad { color: #b42318; font-weight: 700; }
#privacy-receipt .receipt-events {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
#privacy-receipt .receipt-events li {
  display: grid;
  grid-template-columns: 4.8rem 9rem 1fr;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(11, 23, 47, 0.1);
  font-size: 0.76rem;
}
#privacy-receipt .receipt-events time {
  color: rgba(11, 23, 47, 0.55);
  font-variant-numeric: tabular-nums;
}
#privacy-receipt .receipt-events strong { font-weight: 700; }
#privacy-receipt .receipt-events span {
  color: rgba(11, 23, 47, 0.65);
  overflow-wrap: anywhere;
}
#privacy-receipt .receipt-events li.block strong { color: #b42318; }
@media (max-width: 520px) {
  #privacy-receipt .receipt-events li { grid-template-columns: 4.2rem 1fr; }
  #privacy-receipt .receipt-events li span { grid-column: 2; }
}
