/* ==========================================================================
   2박 3일 경주 여행 홈페이지 - 스타일시트 (style.css)
   한국적인 감성과 모던 인터랙션의 조화
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

:root {
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-serif: 'Gowun Batang', serif;
  
  /* 테마 컬러 팔레트 */
  --bg-main: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1f293d;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --gold-primary: #f59e0b;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;
  
  --jade-primary: #10b981;
  --sky-primary: #38bdf8;
  --rose-primary: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* 폰트 유틸리티 */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* 백드롭 블러 글래스모피즘 */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.glass-header {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 히어로 섹션 배경 오버레이 및 텍스처 */
.hero-bg {
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.45) 0%, rgba(9, 13, 22, 0.85) 70%, var(--bg-main) 100%),
              url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
  min-height: 92vh;
}

/* 한국 전통 문양 패턴 배경 */
.korean-pattern {
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* 애니메이션 */
@keyframes routeDash {
  to {
    stroke-dashoffset: -40;
  }
}

.route-dash-anim {
  animation: routeDash 1.4s linear infinite;
}

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

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.08);
  }
}

.pulse-gold {
  animation: pulseGold 3s ease-in-out infinite;
}

/* 탭 활성화 효과 */
.tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

/* 타임라인 커스텀 스타일 */
.timeline-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.8) 0%, rgba(16, 185, 129, 0.8) 50%, rgba(56, 189, 248, 0.8) 100%);
}

@media (min-width: 768px) {
  .timeline-stem {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 카드 호버 트랜지션 */
.itinerary-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

/* 모달 애니메이션 */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-hidden .modal-content {
  transform: scale(0.95) translateY(20px);
}

/* 토스트 알림 */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  color: #f8fafc;
  border-left: 4px solid #f59e0b;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.35s ease forwards;
  max-width: 380px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 체크리스트 완료 스타일 */
.checklist-item.completed span {
  text-decoration: line-through;
  color: #64748b;
}

/* 인쇄 모드 최적화 (PDF/Print Styles) */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt;
  }

  header, footer, #toast-container, .no-print, .map-wrapper, #budget-calculator, #photo-gallery {
    display: none !important;
  }

  .itinerary-card {
    break-inside: avoid;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    margin-bottom: 12px;
  }

  .text-white {
    color: #111827 !important;
  }

  .text-slate-300, .text-slate-400 {
    color: #4b5563 !important;
  }

  .glass-panel {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
  }

  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #111827;
  }
}
