/* ==============================================================================
   TAKSICO - Müşteri Arayüzü Stilleri (customer.css)
   Derin Lacivert Karanlık Tema (#0B0E17, #121829), Mor Vurgu (#5B50E5, #6366F1),
   FontAwesome Solid Taxi İkonlu, Bembeyaz Yollar & Ultra Okunabilir Etiketler
   ============================================================================== */

.customer-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  position: relative;
  overflow-x: hidden;
}

/* ==============================================================================
   Üst Başlık & Navigasyon
   ============================================================================== */
.customer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11, 14, 23, 0.94) 0%, rgba(11, 14, 23, 0.65) 75%, rgba(11, 14, 23, 0) 100%);
  backdrop-filter: blur(10px);
}

.btn-menu-drawer {
  width: 38px;
  height: 38px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-menu-drawer:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-icon-box {
  width: 34px;
  height: 34px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(91, 80, 229, 0.45);
}

.brand-logo span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==============================================================================
   Sol Yan Menü (Drawer Menu) - Mockup ile Birebir
   ============================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.customer-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  max-width: 82vw;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
  padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom));
}
.customer-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(91, 80, 229, 0.4);
  flex-shrink: 0;
}

.drawer-user-meta {
  display: flex;
  flex-direction: column;
}

.drawer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.drawer-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.drawer-link:hover {
  background-color: rgba(91, 80, 229, 0.12);
  color: #FFFFFF;
}
.drawer-link.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(91, 80, 229, 0.35);
}

.drawer-icon {
  flex-shrink: 0;
}

.drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #EF4444;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem;
  text-decoration: none;
}

/* ==============================================================================
   Harita Alanı & Dual-Layer Stili
   ============================================================================== */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 48vh;
  height: 48dvh;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  background-color: #0B0E17;
}

/* Akıcı, Donanım Hızlandırmalı Yüksek Performanslı Harita Katmanı (60 FPS) */
.map-tiles-smooth {
  filter: contrast(1.22) brightness(1.2);
  will-change: transform;
  transform: translateZ(0);
}

/* Harita Sabit Merkez İğnesi (Mor Degrade & Dairesel Radar Efekti) */
.map-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 400;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-bubble {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--primary);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(91, 80, 229, 0.4);
  margin-bottom: 6px;
}

.pin-marker-beacon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-pulse {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(91, 80, 229, 0.35);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.beacon-dot {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(91, 80, 229, 0.6));
}

.locate-btn {
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 400;
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}
.locate-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

/* ==============================================================================
   Alt Aksiyon Paneli (Bottom Sheet)
   ============================================================================== */
.action-panel {
  flex: 1;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom));
  margin-top: -20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.65);
}

.trip-locations-group {
  margin-bottom: 0.85rem;
}

.location-item {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.location-item:hover {
  border-color: var(--primary);
}

.loc-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.loc-bullet.loc-pickup {
  background-color: var(--primary);
  box-shadow: 0 0 8px rgba(91, 80, 229, 0.8);
}

.pickup-details {
  flex: 1;
  overflow: hidden;
}

.pickup-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.pickup-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-action-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}


.main-call-btn {
  height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(91, 80, 229, 0.45);
}

.quick-call-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==============================================================================
   Çağrı Durum Ekranı & İstatistik Halkaları (Stat Rings)
   ============================================================================== */
.call-status-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  margin-top: 60px;
  padding: 1.5rem 1rem calc(2rem + var(--safe-bottom));
  width: 100%;
  position: relative;
}

.call-status-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease-out;
}

.status-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.radar-spinner {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(91, 80, 229, 0.25) 0%, rgba(91, 80, 229, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 25px rgba(91, 80, 229, 0.35);
  animation: pulseRadarPurple 2.2s infinite ease-out;
}

@keyframes pulseRadarPurple {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(91, 80, 229, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 24px rgba(91, 80, 229, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(91, 80, 229, 0); }
}

.call-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Dinamik İpuçları Kutusu */
.call-tips-container {
  background: rgba(91, 80, 229, 0.08);
  border: 1px solid rgba(91, 80, 229, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tip-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tip-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}

/* Sürücü Kartı & ETA */
.driver-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.driver-eta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.eta-stat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eta-stat-item .stat-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.eta-stat-info {
  display: flex;
  flex-direction: column;
}

.eta-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.eta-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.driver-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.driver-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 2px solid var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(91, 80, 229, 0.4);
}
.driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-badge-purple {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(91, 80, 229, 0.18);
  border: 1px solid rgba(91, 80, 229, 0.4);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #A5B4FC;
}

.plate-pill {
  display: inline-block;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

/* İstatistik Halkaları (Mockup ile Birebir) */
.driver-stat-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  margin: 0.75rem 0 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.ring-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  border: 3px solid var(--primary);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(91, 80, 229, 0.3);
}

.ring-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.ring-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Çift İletişim Butonları (Ara & WhatsApp) */
.driver-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.call-action-btn {
  height: 46px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
}

/* Yıldız Değerlendirmesi */
.star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-dim);
  fill: none;
}
.star-btn.active svg {
  stroke: var(--primary);
  fill: var(--primary);
}

/* ==============================================================================
   Telefon Girişi & Sanal Klavye (Mockup Tasarımı)
   ============================================================================== */
.auth-sheet-modal {
  max-width: 420px;
}

.phone-input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.5rem;
}
.phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.country-badge {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--border-subtle);
}

.phone-main-field {
  flex: 1;
  background: none;
  border: none;
  padding: 0.65rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  outline: none;
}

.otp-boxes-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.otp-box {
  width: 52px;
  height: 58px;
  background-color: var(--bg-input);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  transition: var(--transition);
}
.otp-box.filled {
  border-color: var(--primary);
  background: rgba(91, 80, 229, 0.15);
  box-shadow: 0 0 12px rgba(91, 80, 229, 0.4);
}

.virtual-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

.keypad-key {
  height: 52px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.keypad-key:active {
  background-color: var(--primary);
  transform: scale(0.95);
}
.keypad-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .map-wrapper {
    height: 58vh;
  }
  .action-panel {
    max-width: 480px;
    margin: -24px auto 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
  }
}
