/**
 * BESTELLEN.CITY - CENTRAL REUSABLE COMPONENTS
 * Path: /var/www/vhosts/bestellen.city/httpdocs/bc_styles/components.css
 */

/* ==========================================================================
   1. TOP NAVIGATION (Uber Eats Style Header)
   ========================================================================== */
.ue-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bc-color-white);
  border-bottom: 1px solid var(--bc-color-gray-200);
  height: var(--bc-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.ue-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.ue-logo {
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: var(--bc-color-black);
  letter-spacing: -0.5px;
}

.ue-logo span {
  font-weight: 400;
  color: var(--bc-color-gray-500);
}

/* Dining Mode Pill Switcher (Lieferung / Abholen) */
.ue-mode-switch {
  display: inline-flex;
  background: var(--bc-color-gray-100);
  border-radius: var(--bc-radius-pill);
  padding: 4px;
}

.ue-mode-btn {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--bc-radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--bc-color-black);
  transition: all var(--bc-transition-fast);
}

.ue-mode-btn.active {
  background: var(--bc-color-black);
  color: var(--bc-color-white);
}

/* Address & Timing Capsule Pill */
.ue-location-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--bc-radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-color-black);
  transition: background var(--bc-transition-fast);
}

.ue-location-capsule:hover {
  background: var(--bc-color-gray-100);
}

.ue-location-capsule .ue-capsule-secondary {
  color: var(--bc-color-gray-500);
  font-weight: 500;
}

/* Global Search Input */
.ue-search-wrap {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.ue-search-input {
  width: 100%;
  height: 48px;
  background: var(--bc-color-gray-100);
  border: 1px solid transparent;
  border-radius: var(--bc-radius-pill);
  padding: 0 20px 0 46px;
  font-size: 15px;
  color: var(--bc-color-black);
  outline: none;
  transition: all var(--bc-transition-fast);
}

.ue-search-input:focus {
  background: var(--bc-color-white);
  border-color: var(--bc-color-black);
}

.ue-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bc-color-gray-500);
  pointer-events: none;
}

/* Header Right Actions */
.ue-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ue-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bc-color-black);
  color: var(--bc-color-white);
  padding: 10px 18px;
  border-radius: var(--bc-radius-pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: opacity var(--bc-transition-fast);
}

.ue-cart-btn:hover {
  opacity: 0.88;
}

/* ==========================================================================
   2. FILTER CHIPS & PILLS
   ========================================================================== */
.ue-filters-bar {
  padding: 16px 24px 8px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bc-color-white);
  border: 1px solid var(--bc-color-gray-200);
  border-radius: var(--bc-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-color-black);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--bc-transition-fast), background-color var(--bc-transition-fast);
}

.ue-chip:hover {
  border-color: var(--bc-color-black);
}

.ue-chip.active {
  background: var(--bc-color-black);
  color: var(--bc-color-white);
  border-color: var(--bc-color-black);
}

/* ==========================================================================
   3. BADGES & STATUS INDICATORS (Clean, No Emojis)
   ========================================================================== */
.ue-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bc-color-black);
  color: var(--bc-color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--bc-radius-pill);
  letter-spacing: 0.2px;
  z-index: 2;
}

.ue-badge--express {
  background: var(--bc-color-danger);
}

.ue-badge--deal {
  background: var(--bc-color-black);
}

/* ==========================================================================
   4. MODALS (Location Picker & Dialogs)
   ========================================================================== */
.loc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.loc-modal-card {
  background: var(--bc-color-white);
  border-radius: var(--bc-radius-card);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--bc-shadow-modal);
}

.loc-modal-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
}

.loc-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--bc-color-gray-200);
  border-radius: var(--bc-radius-inner);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--bc-transition-fast);
}

.loc-input:focus {
  border-color: var(--bc-color-black);
}

.loc-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  max-height: 180px;
  overflow-y: auto;
}

.loc-suggestions-list li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bc-color-gray-100);
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}

.loc-suggestions-list li:hover {
  background: var(--bc-color-gray-100);
}
