/**
 * Shuttle Call - Professional Premium Design
 * Ultra-modern interface with luxury aesthetics
 * Powered by Erkan ERDEM
 */

/* ==================== MOBILE NAVBAR - PREMIUM ==================== */
.mobile-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid rgba(26, 43, 74, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08),
              0 -1px 0 rgba(26, 43, 74, 0.05);
  z-index: 1000;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: none;
}

@media (max-width: 768px) {
  .mobile-navbar {
    display: block;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

.mobile-navbar-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  text-decoration: none;
  color: #6B7280;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  min-width: 64px;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, #1A2B4A, #D4AF37);
  border-radius: 0 0 3px 3px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav-item.active {
  color: #1A2B4A;
  background: rgba(26, 43, 74, 0.08);
}

.mobile-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-2px);
}

.mobile-nav-icon svg,
.mobile-nav-icon i {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.mobile-nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

.mobile-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #B71C1C, #8B0000);
  color: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(183, 28, 28, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ==================== PREMIUM ICONS ==================== */
.icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-primary {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.1), rgba(26, 43, 74, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A2B4A;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 43, 74, 0.2);
}

.icon-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(26, 43, 74, 0.25);
  background: linear-gradient(135deg, #1A2B4A, #2A3B5A);
  color: white;
}

.icon-secondary {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-secondary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, #D4AF37, #E4BF47);
  color: #1A2B4A;
}

.icon-lg {
  width: 64px;
  height: 64px;
  font-size: 32px;
  border-radius: 18px;
}

.icon-xl {
  width: 80px;
  height: 80px;
  font-size: 40px;
  border-radius: 20px;
}

/* Icon with glow effect */
.icon-glow {
  box-shadow: 0 0 30px rgba(26, 43, 74, 0.3);
  animation: icon-glow-pulse 3s ease-in-out infinite;
}

@keyframes icon-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(26, 43, 74, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(26, 43, 74, 0.6);
  }
}

/* ==================== DRIVER PANEL - LUXURY DESIGN ==================== */
.driver-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
  padding-bottom: 90px;
}

.driver-header {
  background: linear-gradient(135deg, #1A2B4A 0%, #0F1A2F 100%);
  border-radius: 24px;
  padding: 24px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(26, 43, 74, 0.3);
  position: relative;
  overflow: hidden;
}

.driver-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.driver-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.driver-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.driver-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.driver-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.driver-stat-item {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.driver-stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  display: block;
}

.driver-stat-label {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Driver Request Card - Premium */
.driver-request-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.driver-request-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #1A2B4A, #D4AF37);
}

.driver-request-card.new {
  animation: card-pop-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-color: #1A2B4A;
  box-shadow: 0 8px 32px rgba(26, 43, 74, 0.2);
}

@keyframes card-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.request-location-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.1), rgba(26, 43, 74, 0.05));
  border-radius: 14px;
  flex: 1;
}

.request-location-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1A2B4A, #2A3B5A);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.request-location-text {
  flex: 1;
}

.request-location-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.request-location-sub {
  font-size: 12px;
  color: #6B7280;
}

.request-time-badge {
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #D4AF37;
  white-space: nowrap;
}

.request-details {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.request-detail-item {
  flex: 1;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 12px;
  text-align: center;
}

.request-detail-label {
  font-size: 11px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.request-detail-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.request-actions {
  display: flex;
  gap: 10px;
}

.btn-accept {
  flex: 2;
  height: 50px;
  background: linear-gradient(135deg, #1A2B4A, #2A3B5A);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(26, 43, 74, 0.3);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 43, 74, 0.4);
}

.btn-accept:active {
  transform: translateY(0);
}

.btn-reject {
  flex: 1;
  height: 50px;
  background: white;
  color: #B71C1C;
  border: 2px solid #B71C1C;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reject:hover {
  background: #B71C1C;
  color: white;
}

/* ==================== GUEST SCREEN - PREMIUM ==================== */
.guest-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.guest-hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 32px;
}

.guest-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #1A2B4A, #D4AF37);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(26, 43, 74, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.guest-logo img {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
}

.guest-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #1A2B4A, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.guest-subtitle {
  font-size: 16px;
  color: #6B7280;
  font-weight: 500;
}

/* QR Scanner Card */
.qr-scanner-card {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  text-align: center;
}

.qr-scanner-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.1), rgba(212, 175, 55, 0.1));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(26, 43, 74, 0.3);
  animation: scanner-pulse 2s ease-in-out infinite;
}

@keyframes scanner-pulse {
  0%, 100% {
    border-color: rgba(26, 43, 74, 0.3);
    transform: scale(1);
  }
  50% {
    border-color: rgba(26, 43, 74, 0.6);
    transform: scale(1.05);
  }
}

.qr-scanner-icon i {
  font-size: 48px;
  background: linear-gradient(135deg, #1A2B4A, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qr-scanner-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.qr-scanner-description {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-scan-qr {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #1A2B4A, #D4AF37);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-scan-qr:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 43, 74, 0.4);
}

.btn-scan-qr:active {
  transform: translateY(-2px);
}

/* Request Status Card */
.request-status-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  position: relative;
}

.status-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A2B4A, #D4AF37);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  position: relative;
  z-index: 1;
}

.status-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.2), rgba(212, 175, 55, 0.2));
  border-radius: 50%;
  z-index: -1;
  animation: status-ring 2s ease-in-out infinite;
}

@keyframes status-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.status-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.status-message {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.status-timeline {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 45px;
  bottom: -12px;
  width: 2px;
  background: linear-gradient(180deg, #1BA5A8, transparent);
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 3px solid #E5E7EB;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
  background: linear-gradient(135deg, #1A2B4A, #2A3B5A);
  border-color: #1A2B4A;
  color: white;
}

.timeline-content {
  flex: 1;
  text-align: left;
}

.timeline-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.timeline-time {
  font-size: 12px;
  color: #9CA3AF;
}

/* ==================== LOADING STATES ==================== */
.shimmer {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-spinner-lg {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(26, 43, 74, 0.1);
  border-top-color: #1A2B4A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== MICRO-INTERACTIONS ==================== */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.ripple-effect:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth page transitions */
.page-fade-enter {
  opacity: 0;
}

.page-fade-enter-active {
  opacity: 1;
  transition: opacity 0.3s ease;
}
