/* ═══════════════════════════════════════════
   일렉션맵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; }
}
.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; }

/* ── 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; }
.custom-marker {
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.custom-marker.red { background: #dc2626; }
.custom-marker.green { background: #059669; }
.custom-marker.orange { background: #ea580c; }
.custom-marker.purple { background: #7c3aed; }

/* ── 카드 호버 ── */
.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, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 모바일 메뉴 ── */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

/* ── 테이블 ── */
.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; }

/* ── 캘린더 ── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-cell { min-height: 80px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 6px; }
.calendar-cell:hover { background: #eff6ff; }
.calendar-cell.today { border-color: #2563eb; background: #eff6ff; }
.calendar-event { font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-top: 2px; }

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