@charset "UTF-8";

/* =========================================================
   05 바이브코딩 학습장 (Vibe Coding Journal) Modern Styles
   가독성 최우선 & 심플 미니멀리즘 디자인
   주제별 세로 컬럼 가로 배치 & 시간순 연결선 타임라인
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Noto Sans KR', sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* =========================================================
   프롬프트 코드 박스 가독성 스타일링
   ========================================================= */
.prompt-box {
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* =========================================================
   주제별 가로 컬럼 (Kanban/Board Track) 스타일링
   ========================================================= */
.horizontal-track-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.topic-column {
  min-width: 320px;
  width: 360px;
  max-width: 420px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 640px) {
  .topic-column {
    min-width: 290px;
    width: 85vw;
  }
}

/* =========================================================
   시간순 연결선 (Timeline Flow) 스타일링
   ========================================================= */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

/* 세로 연결선 */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, #6366f1, #38bdf8);
  border-radius: 9999px;
  z-index: 0;
}

html.dark .timeline-container::before {
  background: linear-gradient(to bottom, #4f46e5, #0284c7);
}

/* 타임라인 노드/불릿 (Step 번호 원형 뱃지) */
.timeline-node {
  position: absolute;
  left: -2rem;
  top: 0.875rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: #6366f1;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 4px rgba(99, 102, 241, 0.3);
  z-index: 10;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

html.dark .timeline-node {
  box-shadow: 0 0 0 4px #0f172a, 0 2px 4px rgba(0, 0, 0, 0.4);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.15);
  background-color: #4f46e5;
}

/* =========================================================
   고대비 입력창 및 셀렉트 박스 스타일링
   ========================================================= */
html:not(.dark) input[type="text"],
html:not(.dark) input[type="password"],
html:not(.dark) input[type="date"],
html:not(.dark) input[type="search"],
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #94a3b8 !important;
}

html.dark input[type="text"],
html.dark input[type="password"],
html.dark input[type="date"],
html.dark input[type="search"],
html.dark textarea,
html.dark select {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

select option {
  background-color: #ffffff;
  color: #0f172a;
}

html.dark select option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* 포커스 링 */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* 달력 아이콘 다크모드 반전 */
html.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* =========================================================
   카드 호버 및 토글 애니메이션
   ========================================================= */
.prompt-simple-item {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-simple-item:hover {
  transform: translateY(-2px);
}

.toggle-detail-content {
  animation: fadeInDown 0.2s ease forwards;
}

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

/* =========================================================
   모달 애니메이션 & 백드롭
   ========================================================= */
.modal-backdrop {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(15, 23, 42, 0.65);
}

.modal-content {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* =========================================================
   토스트 알림 스타일
   ========================================================= */
.toast-slide {
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   미니 달력 위젯 (Mini Compact Calendar) 스타일링
   ========================================================= */
.mini-calendar-container {
  max-width: 330px;
  width: 100%;
  animation: calendarSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes calendarSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.mini-day-cell {
  position: relative;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.mini-day-cell:hover:not(.disabled) {
  transform: scale(1.08);
  z-index: 5;
}

.mini-prompt-badge {
  position: absolute;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  border-radius: 9999px;
  padding: 0.5px 3px;
}

/* =========================================================
   커스텀 스크롤바
   ========================================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

