/* ==========================================================================
   AURASENSO — Mobile Client Panel V2
   IA redesign: personalized home with swipeable points wallet + quick
   actions, FAB-style Concierge tab, room control merged inline via a
   segmented control, promoted Wallet, grouped "More" overflow menu.
   Inherits bottom sheets / compact rows / chat card from the V1 mobile
   stylesheet and extends them with the components below.
   ========================================================================== */

html, body { overflow-x: hidden; }
body.sheet-open { overflow: hidden; }

.app-shell { display: block; }

/* Desktop-only chrome not used on mobile */
.aura-sidebar, .sidebar-backdrop, .sidebar-divider, #sidebarToggle { display: none !important; }

#mainContent {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1rem calc(100px + env(safe-area-inset-bottom)) !important;
}

.mobile-navbar { padding: 0.75rem 1rem; }

/* ---- Per-section page title ------------------------------------------- */

.mobile-page-title { margin-bottom: 1.1rem; }
.mobile-page-title h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}
.mobile-page-title .subtitle {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---- Bottom navigation -------------------------------------------------- */

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--aura-border);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-link {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--text-faint) !important;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent !important;
  border-radius: var(--radius-sm);
  border-left: none !important;
  margin-bottom: 0 !important;
  transition: color .2s ease;
}
.bottom-nav-link i { font-size: 1.3rem; }
.bottom-nav-link.active,
.bottom-nav-link:active { color: var(--aura-gold-light) !important; }

/* Center Concierge slot — raised FAB, the AI hallmark feature gets its own visual weight */
.bottom-nav-link.nav-fab-link {
  overflow: visible;
}
.bottom-nav-link.nav-fab-link .nav-fab {
  position: absolute;
  top: -26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--aura-gold-light), var(--aura-gold) 60%, var(--aura-copper) 100%);
  box-shadow: 0 8px 22px -4px var(--aura-gold-glow), 0 0 0 5px var(--nav-bg);
  transition: transform .2s ease;
}
.bottom-nav-link.nav-fab-link .nav-fab i {
  font-size: 1.4rem;
  color: var(--aura-black);
}
.bottom-nav-link.nav-fab-link span { margin-top: 30px; }
.bottom-nav-link.nav-fab-link.active .nav-fab,
.bottom-nav-link.nav-fab-link:active .nav-fab { transform: scale(0.94); }
.bottom-nav-link.nav-fab-link.active,
.bottom-nav-link.nav-fab-link:active { color: var(--aura-gold-light) !important; }

.bottom-nav-link .nav-dot {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aura-copper);
}

/* ---- Sheet backdrop ----------------------------------------------------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: var(--backdrop-scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.sheet-backdrop.show { opacity: 1; visibility: visible; }

/* ---- Bottom sheet -------------------------------------------------------- */

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  max-height: 85vh;
  background: var(--aura-charcoal);
  border: 1px solid var(--aura-border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.bottom-sheet.show { transform: translateY(0); visibility: visible; }

.bottom-sheet-handle {
  width: 38px;
  height: 4px;
  background: var(--aura-border);
  border-radius: 999px;
  margin: 10px auto 2px;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 6px 1.25rem 1rem;
  border-bottom: 1px solid var(--aura-border);
  flex-shrink: 0;
}
.bottom-sheet-header .aura-card-title { margin: 0; }

.bottom-sheet-body {
  padding: 1.1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Compact tap-rows (trips / rewards / referrals / history) ----------- */

.mobile-row-list { display: flex; flex-direction: column; }

.mobile-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--aura-border);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  color: inherit;
}
.mobile-row-list > .mobile-row:last-child { border-bottom: none; }
.mobile-row:active { background: var(--overlay-soft); }

.mobile-row-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.mobile-row-text .fw-medium,
.mobile-row-text .text-muted {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-row-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--surface-deep-2);
  border: 1px solid var(--aura-border);
  color: var(--aura-gold-light);
}

/* W jasnym motywie var(--surface-deep-2) jest kremowe, więc białe loga hoteli (i część ikon)
   stają się na nim praktycznie niewidoczne — na sztywno ciemne tło, tak jak .hotel-logo-avatar. */
:root[data-theme="light"] .mobile-row-icon {
  background: #201a15;
}

.mobile-row-chevron { color: var(--text-faint); font-size: 0.9rem; flex-shrink: 0; }

/* ---- Summary / detail trigger buttons ----------------------------------- */

.mobile-detail-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--overlay-soft-2);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  text-align: left;
}
.mobile-detail-btn:active { background: var(--overlay-soft); }
.mobile-detail-btn .trigger-icon { color: var(--aura-copper-2); font-size: 1.2rem; flex-shrink: 0; }
.mobile-detail-btn .mobile-detail-label { font-size: 0.88rem; font-weight: 500; }
.mobile-detail-btn .mobile-detail-sub { font-size: 0.74rem; color: var(--text-faint); margin-top: 2px; }
.mobile-detail-btn .mobile-detail-chevron { color: var(--text-faint); font-size: 0.95rem; flex-shrink: 0; }

/* ---- Concierge: chat-first layout --------------------------------------- */

.mobile-chat-card { display: flex; flex-direction: column; }
.mobile-chat-card .chat-window { flex-grow: 1; min-height: 46vh; }

/* ---- More menu sheet ----------------------------------------------------- */

.more-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--aura-border);
  color: var(--text-light);
}
.more-menu-link:last-child { border-bottom: none; }
.more-menu-link:active { color: var(--aura-gold-light); }
.more-menu-link i { font-size: 1.15rem; width: 26px; color: var(--aura-copper-2); }
.more-menu-link.logout-action i { color: var(--text-faint); }

.more-menu-group { margin-bottom: 0.4rem; }
.more-menu-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.9rem 0.2rem 0.3rem;
}
.more-menu-group:first-child .more-menu-group-title { padding-top: 0.2rem; }

/* ==========================================================================
   V2 — Home: personalized greeting header
   ========================================================================== */

.mobile-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.mobile-greeting h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}
.mobile-greeting .subtitle {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-greeting .subtitle i { color: var(--aura-gold); font-size: 0.85rem; }

/* ==========================================================================
   V2 — Home: dismissible proximity banner (promoted from the Geo section
   so time-sensitive value surfaces immediately, not three taps deep)
   ========================================================================== */

.proximity-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(120deg, var(--aura-gold-soft), var(--overlay-soft-2) 75%);
  border: 1px solid var(--aura-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}
.proximity-banner .notification-icon { flex-shrink: 0; }
.proximity-banner .proximity-text { flex: 1 1 auto; min-width: 0; }
.proximity-banner .proximity-title { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.proximity-banner .proximity-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }
.proximity-banner .proximity-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
}
.proximity-banner.dismissed { display: none; }

/* ==========================================================================
   V2 — Home: swipeable points wallet (replaces 3 stacked point cards)
   ========================================================================== */

.points-carousel .slick-slide > div {
  height: 100%;
}
.points-carousel .aura-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.points-carousel .aura-card > *:last-child {
  margin-top: auto;
}

.points-carousel .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: 6px;
  margin: 0.6rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.points-carousel .slick-dots li {
  width: 6px;
  height: 6px;
  margin: 0;
}
.points-carousel .slick-dots li button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: var(--aura-border);
  transition: background .2s ease, transform .2s ease;
}
.points-carousel .slick-dots li button:before {
  content: none;
}
.points-carousel .slick-dots li.slick-active button {
  background: var(--aura-gold);
  transform: scale(1.25);
}

/* ==========================================================================
   V2 — Home: quick actions row (one-tap shortcuts to the highest-frequency
   jobs — opening the room, redeeming points, bidding, inviting)
   ========================================================================== */

.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.quick-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0.2rem 0;
}
.quick-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--surface-deep-2);
  border: 1px solid var(--aura-border);
  color: var(--aura-gold-light);
  transition: transform .2s ease, border-color .2s ease;
}
.quick-action:active .quick-action-icon {
  transform: scale(0.94);
  border-color: var(--aura-gold);
}
.quick-action-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.quick-action-badge {
  position: absolute;
  top: -2px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--aura-copper);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   V2 — Home: upcoming-trip teaser (Journey moved out of the primary tab
   bar; this keeps its most useful signal one glance away)
   ========================================================================== */

.trip-teaser-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.trip-teaser-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--aura-gold-soft);
  color: var(--aura-gold-light);
}
.trip-teaser-body { flex: 1 1 auto; min-width: 0; }
.trip-teaser-eyebrow { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.trip-teaser-title { font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-top: 1px; }
.trip-teaser-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }
.trip-teaser-chevron { color: var(--text-faint); font-size: 0.95rem; flex-shrink: 0; }

/* ==========================================================================
   V2 — Concierge: segmented control (Czat AI / Sterowanie Pokojem) — the
   Smart Room sheet is merged inline so the room key is one tap, not two
   ========================================================================== */

.segmented-control {
  display: flex;
  background: var(--overlay-soft-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 1rem;
}
.segmented-btn {
  flex: 1;
  display: block;
  text-align: center;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s ease;
}
.segmented-btn.active {
  background: var(--aura-gold);
  color: var(--aura-black);
}

.concierge-pane { display: none; }
.concierge-pane.active-pane { display: block; }

/* ==========================================================================
   V2 — Rewards: category filter chips
   ========================================================================== */

.rewards-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1rem 1rem;
  padding: 0 1rem 0.2rem;
  scrollbar-width: none;
}
.rewards-filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  background: var(--overlay-soft-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .2s ease;
}
.filter-chip.active {
  background: var(--aura-gold-soft);
  border-color: var(--aura-gold);
  color: var(--aura-gold-light);
}

@media (min-width: 576px) {
  #mainContent { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}
