/* Cyprus Premium Taxi - Custom Styles */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

/* Navbar active link */
.nav-link { position: relative; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1e40af;
  border-radius: 1px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Admin sidebar */
.admin-sidebar {
  width: 256px;
  min-height: 100vh;
  background: #111827;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.3s;
}
.admin-content {
  margin-left: 256px;
  min-height: 100vh;
  background: #f3f4f6;
}
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* Status badges */
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-contacted { background: #fef3c7; color: #b45309; }
.badge-confirmed { background: #d1fae5; color: #059669; }
.badge-completed { background: #e0e7ff; color: #4338ca; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }

/* Loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #1e40af;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tabs */
.tab-btn {
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: #111827; }
.tab-btn.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.data-table tbody tr:hover { background: #f9fafb; }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: ring 0.2s;
  font-size: 14px;
}
.form-input:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,.15);
}

/* Buttons */
.btn-primary {
  background: #1e40af;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  font-size: 14px;
  text-decoration: none;
}
.btn-primary:hover { background: #1e3a8a; color: white; }

.btn-danger {
  background: #dc2626;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  font-size: 14px;
}
.btn-danger:hover { background: #b91c1c; }

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #d1d5db;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  font-size: 14px;
  text-decoration: none;
}
.btn-secondary:hover { background: #e5e7eb; color: #374151; }

/* Alert messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* SEO Score Circle */
.seo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto;
}

/* ============================================
   MOBILE APP-LIKE UI (iletisim.php)
   Only activates on mobile (<= 768px)
   ============================================ */

/* Geolocation button (all screens) */
.geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.geo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}
.geo-btn:active {
  transform: scale(0.98);
}
.geo-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
.geo-btn .geo-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.geo-btn.loading .geo-spinner { display: inline-block; }
.geo-btn.loading .geo-icon { display: none; }

.geo-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 13px;
  color: #065f46;
  margin-top: 8px;
  animation: fadeIn 0.3s;
}
.geo-result i { color: #10b981; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile-only styles */
@media (max-width: 768px) {

  /* Hide desktop elements on the app page */
  body.mobile-app-page .top-bar-desktop,
  body.mobile-app-page .hero-gradient,
  body.mobile-app-page footer,
  body.mobile-app-page .whatsapp-float {
    display: none !important;
  }

  /* Hide contact info sidebar on mobile */
  body.mobile-app-page .contact-sidebar {
    display: none !important;
  }

  /* Make the form column full width */
  body.mobile-app-page .form-container {
    grid-column: 1 / -1 !important;
  }

  /* App header */
  .mobile-app-header {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }
  .mobile-app-header .app-logo {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-app-header .app-actions {
    display: flex;
    gap: 10px;
  }
  .mobile-app-header .app-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
  }
  .mobile-app-header .app-action-btn:hover {
    background: rgba(255,255,255,0.25);
  }

  /* Hide desktop navbar on app page */
  body.mobile-app-page nav {
    display: none !important;
  }

  /* App body */
  body.mobile-app-page {
    background: #f0f4ff;
    padding-bottom: 90px; /* space for bottom bar */
  }

  body.mobile-app-page > section:first-of-type {
    padding-top: 8px !important;
    padding-bottom: 0 !important;
  }

  /* Mobile form card */
  body.mobile-app-page .mobile-form-card {
    margin: 0 12px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px 16px !important;
  }

  /* Large touch-friendly inputs */
  body.mobile-app-page .form-input {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    min-height: 50px;
    border: 2px solid #e5e7eb;
  }
  body.mobile-app-page .form-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30,64,175,0.1);
  }

  body.mobile-app-page select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L.375 3.2l.85-.85L6 7.125 10.775 2.35l.85.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }

  /* Section labels */
  body.mobile-app-page .section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  body.mobile-app-page .section-label.pickup {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
  }
  body.mobile-app-page .section-label.dropoff {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
  }

  /* Bottom Action Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    gap: 10px;
  }
  .mobile-bottom-bar .bottom-submit {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(30,64,175,0.3);
  }
  .mobile-bottom-bar .bottom-submit:active {
    transform: scale(0.97);
  }
  .mobile-bottom-bar .bottom-wa {
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: all 0.2s;
  }
  .mobile-bottom-bar .bottom-wa:active {
    transform: scale(0.95);
  }

  /* Hide original submit button on mobile */
  body.mobile-app-page .desktop-submit {
    display: none !important;
  }

  /* Quick info strip */
  .mobile-info-strip {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-info-strip::-webkit-scrollbar { display: none; }
  .mobile-info-strip .info-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    white-space: nowrap;
  }
  .mobile-info-strip .info-chip i { font-size: 14px; }
  .mobile-info-strip .info-chip.green i { color: #10b981; }
  .mobile-info-strip .info-chip.blue i { color: #3b82f6; }
  .mobile-info-strip .info-chip.yellow i { color: #f59e0b; }

  /* Hide price calculator on mobile */
  body.mobile-app-page #priceCalc {
    display: none !important;
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
  .mobile-app-header,
  .mobile-bottom-bar,
  .mobile-info-strip,
  .mobile-only {
    display: none !important;
  }
}
