/* ═══════════════════════════════════════════
   택시빈차내비AI — custom.css
   Tailwind CSS 보완 커스텀 스타일
   ═══════════════════════════════════════════ */

html { scroll-behavior: smooth; }
body { font-family: 'Pretendard Variable', 'Pretendard', system-ui, sans-serif; }

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── 애니메이션 ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-left { animation: slideInLeft 0.5s ease-out; }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* ── Leaflet 지도 오버라이드 ── */
.leaflet-container { font-family: 'Pretendard Variable', sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.leaflet-popup-content { margin: 12px 16px; line-height: 1.5; }

/* ── 카드 호버 ── */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

/* ── 점수 바 ── */
.score-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease-out; }

/* ── 그래디언트 텍스트 ── */
.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 택시 테마 마커 ── */
.taxi-marker {
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hotspot-marker {
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ── 테이블 ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #f8fafc; font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px solid #e2e8f0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.data-table tr:hover td { background: #f8fafc; }

/* ── 수요 레벨 뱃지 ── */
.demand-high { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.demand-medium { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.demand-low { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── 시간대 바 ── */
.time-bar { display: flex; height: 32px; border-radius: 6px; overflow: hidden; }
.time-bar-segment { transition: all 0.3s ease; cursor: pointer; position: relative; }
.time-bar-segment:hover { filter: brightness(1.1); }

/* ── 패널 스타일 ── */
.panel-left {
  width: 360px; min-width: 360px;
  transition: width 0.3s ease;
}
.panel-left::-webkit-scrollbar { width: 5px; }
.panel-left::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── 인쇄 스타일 ── */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: white !important; color: black !important; }
}

/* ── 수요 히트맵 범례 ── */
.heatmap-legend {
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 12px;
}
.heatmap-legend-bar {
  width: 120px; height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #22c55e, #eab308, #f97316, #ef4444);
}

/* ── 스피너 ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 24px; height: 24px;
  border: 3px solid #fde68a;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
