/**
 * trips-manager.css — Shared styles for Trips Dropdown, AI Settings, Floating AI Refinement Island, and Glass Modals
 */

/* Dropdown Wrap & Button */
.nav-trips-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.nav-trips-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
.nav-trips-trigger:focus,
.nav-trips-trigger:focus-visible,
.nav-pill-link:focus,
.nav-pill-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.dropdown-chevron {
  font-size: 11px;
  color: var(--slate-muted, #64748B);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.nav-trips-dropdown-wrap.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-trips-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  z-index: 99999;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.dropdown-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.add-trip-btn {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.add-trip-btn:hover { 
  background: #0F172A; 
  color: #FFFFFF;
}

.dropdown-trips-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.trip-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #0F172A;
  transition: all 0.15s ease;
}

.trip-dropdown-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.trip-dropdown-item.active {
  background: rgba(15, 23, 42, 0.08);
}

.trip-item-info {
  flex: 1;
  min-width: 0;
}

.trip-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-item-meta {
  font-size: 11.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.trip-item-active-dot {
  font-size: 10px;
  font-weight: 700;
  color: #0F172A;
}

.trip-item-arrow {
  font-size: 12px;
  color: #94A3B8;
  transition: transform 0.15s ease;
}
.trip-dropdown-item:hover .trip-item-arrow {
  color: #0F172A;
  transform: translateX(2px);
}

/* Floating AI Refinement Island */
.floating-ai-island {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  animation: floatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-refine-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-refine-trigger-btn:hover {
  background: #1E293B;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.45);
}

.ai-sparkle-icon {
  font-size: 16px;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
  50% { opacity: 0.7; transform: rotate(15deg) scale(1.15); }
}

/* Glass Modal Overlay & Card */
.glass-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glass-modal-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.glass-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.glass-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.glass-modal-subtitle {
  font-size: 12px;
  color: #64748B;
  margin: 2px 0 0 0;
}

.glass-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.glass-modal-close:hover { color: #0F172A; }

.glass-modal-body {
  padding: 20px 24px 24px 24px;
}

.modal-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.glass-modal-input,
.glass-modal-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0F172A;
  outline: none;
  transition: all 0.15s ease;
}

.glass-modal-input:focus,
.glass-modal-textarea:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
  background: #FFFFFF;
}

.modal-input-hint {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
  margin-top: 8px;
}

.refine-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.suggestion-chip {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.suggestion-chip:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0F172A;
}

.modal-btn-cancel {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding: 8px 16px;
  cursor: pointer;
}

.modal-btn-save {
  background: #0F172A;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-btn-save:hover { background: #1E293B; }

.glass-toast-notification {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
  z-index: 3100;
  animation: toastFade 0.25s ease-out;
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Ambient Lighting Background Orbs (Exact Itinerary Liquid Glass Mesh) */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: floatOrb 25s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #FFEAD4 0%, rgba(255, 234, 212, 0) 70%);
  top: -150px;
  left: 10%;
}

.ambient-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #E0ECF8 0%, rgba(224, 236, 248, 0) 70%);
  top: 35%;
  right: -100px;
  animation-delay: -7s;
}

.ambient-orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #E9F4EF 0%, rgba(233, 244, 239, 0) 70%);
  bottom: 10%;
  left: -50px;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

.nav-trips-trigger::after {
  display: none !important;
}
