/* css/custom.css */

/* 1. Ριζική διόρθωση Viewport για iOS Standalone PWA */
html, body {
  height: 100dvh !important;
  min-height: 100dvh !important;
  width: 100vw !important;
  overflow: hidden !important;
  background-color: #020617 !important; /* solid slate-950 χωρίς διαφάνειες */
  overscroll-behavior: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* 2. Top Header: Κατεβαίνει κάτω από το Notch & Dynamic Island χωρίς θόλωμα */
#top-header {
  background-color: #0f172a !important; /* Solid Slate-900 χωρίς backdrop-filter */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-top: max(env(safe-area-inset-top), 44px) !important;
}

/* 3. Bottom Nav: Κολλάει ΑΠΟΛΥΤΑ στη βάση της οθόνης */
#bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  background-color: #0f172a !important; /* Solid Slate-900 */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-bottom: max(env(safe-area-inset-bottom), 18px) !important;
  z-index: 50 !important;
}

/* 4. Modals / Popups: Προστασία από notch και home bar */
#modal-container {
  padding-top: max(calc(env(safe-area-inset-top) + 20px), 48px) !important;
  padding-bottom: max(env(safe-area-inset-bottom), 16px) !important;
}

#modal-container > div {
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px) !important;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
}

/* 5. Scrollbars & Wheel Pickers */
::-webkit-scrollbar {
  display: none;
}

.wheel-wrapper {
  position: relative;
  height: 120px;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  border: 1px solid #1e293b;
}

.wheel-container {
  height: 120px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
}

.wheel-container::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #475569;
  font-size: 0.875rem;
  transition: all 0.12s ease-out;
  user-select: none;
}

.wheel-item.active {
  color: #60a5fa;
  font-size: 1.25rem;
  font-weight: 800;
  transform: scale(1.08);
}

.wheel-highlight {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  border-top: 1px solid rgba(59, 130, 246, 0.4);
  border-bottom: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
  z-index: 5;
}