/* ==========================================================
   Vishal Mobile Shop - Modern Cashify-Inspired Platform
   Theme: Crimson Red (#dc2626) & Amber Gold (#f59e0b)
   ========================================================== */

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fef2f2;
  --primary-border: #fecaca;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-tap-highlight-color: transparent;
}

/* Smooth fade-in transitions */
.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Swiggy / Uber Style Centered Map Pin & Shadow */
.map-pin-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.map-pin-container.pin-hopping {
  transform: translate(-50%, -125%);
}

.map-pin-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.45));
}

.map-pin-shadow {
  width: 14px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  margin-top: -2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.map-pin-container.pin-hopping .map-pin-shadow {
  transform: scale(0.65);
  opacity: 0.15;
}

/* Radar Pulse Button Effect */
.btn-locate-pulse {
  position: relative;
}

.btn-locate-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: radarPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Card Selection Glow */
.brand-card, .model-card, .service-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover, .model-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.1), 0 4px 6px -4px rgba(220, 38, 38, 0.05);
}

.service-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

/* Hide scrollbars everywhere needed */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* 3 Full Cards & 10% of 4th Card Visible (Cashify User Requirement) */
.service-slide-card {
  width: calc((100% - 24px) / 3.15);
  min-width: calc((100% - 24px) / 3.15);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .service-slide-card {
    width: calc((100% - 36px) / 4.25);
    min-width: calc((100% - 36px) / 4.25);
  }
}
@media (min-width: 768px) {
  .service-slide-card {
    width: calc((100% - 48px) / 6.2);
    min-width: calc((100% - 48px) / 6.2);
  }
}

/* Smooth Accordion FAQ Animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.75rem;
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-chevron,
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Smooth Full Screen Menu Overlay */
#full-screen-menu {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#full-screen-menu.closed {
  transform: translateX(100%);
  pointer-events: none;
  opacity: 0;
}

#full-screen-menu.opened {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}

/* Bottom Sheet Modal Transitions */
.bottom-sheet {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-backdrop {
  transition: opacity 0.25s ease;
}

/* Status Badges */
.badge-status-pending { background-color: #fef3c7; color: #b45309; }
.badge-status-confirmed { background-color: #e0f2fe; color: #0369a1; }
.badge-status-assigned { background-color: #f3e8ff; color: #7e22ce; }
.badge-status-ontheway { background-color: #ffedd5; color: #c2410c; }
.badge-status-inprogress { background-color: #e0e7ff; color: #4338ca; }
.badge-status-completed { background-color: #dcfce7; color: #15803d; }
.badge-status-cancelled { background-color: #fee2e2; color: #b91c1c; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Media Upload Cards */
.media-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.media-upload-dropzone:hover, .media-upload-dropzone.dragover {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.media-thumbnail-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.media-thumbnail-card:hover {
  transform: scale(1.02);
}
.media-thumbnail-card .btn-remove-media {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 9999px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.media-thumbnail-card .btn-remove-media:hover {
  background: #dc2626;
}
