@charset "UTF-8";

/* =========================================================
   version 대시보드 Modern Dark & Git Timeline Styles
   ========================================================= */

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: #090d16;
  color: #f1f5f9;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

.font-arcade {
  font-family: 'Chakra Petch', sans-serif;
}

/* =========================================================
   배경 그리드
   ========================================================= */
.git-grid-bg {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* =========================================================
   커밋 타임라인 노드 & 라인 (수직 완벽 정렬 구조)
   ========================================================= */
.timeline-track {
  position: relative;
}

.timeline-spine {
  width: 2px;
  background: #38bdf8;
  background: linear-gradient(180deg, #10b981 0%, #38bdf8 50%, #6366f1 100%);
  border-radius: 9999px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.timeline-dot {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 14px currentColor;
  transition: transform 0.2s ease;
}

.timeline-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

/* 아코디언 상세 내역 펼침 트랜지션 */
.accordion-enter-active,
.accordion-leave-active {
  transition: all 0.25s ease;
  overflow: hidden;
}

.accordion-enter-from,
.accordion-leave-to {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
}

.accordion-enter-to,
.accordion-leave-from {
  opacity: 1;
  max-height: 800px;
  transform: translateY(0);
}

/* =========================================================
   Diff 뷰어 라인 스타일
   ========================================================= */
.diff-viewer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
}

.diff-line-add {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-left: 3px solid #10b981;
}

.diff-line-del {
  background-color: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border-left: 3px solid #f43f5e;
}

.diff-line-header {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-weight: 700;
}

/* =========================================================
   모달 애니메이션
   ========================================================= */
.modal-backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(9, 13, 22, 0.8);
}

.modal-pop {
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   스크롤바 스타일링
   ========================================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.8);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}
