/* ==========================================================================
   글꼴 및 스타일 설정 파일 (styles.scss)
   ========================================================================== */

/* 1. 웹폰트: Pretendard */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 2. 전체 본문 기본 스타일 */
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", sans-serif;
  color: #212529;              /* 텍스트 색상 */
  background-color: #ffffff;
  font-size: 1.02rem;          /* 본문 글자 크기 */
  line-height: 1.75;           /* 줄 간격 */
  letter-spacing: -0.01em;
  word-break: keep-all;
}

/* 상단바 숨김 */
.navbar, header#quarto-header {
  display: none !important;
}

/* 페이지 전체 가로폭 */
#quarto-content {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  max-width: 1250px !important;
  margin: 0 auto;
}

/* 좌우 2단 레이아웃 */
@media (min-width: 768px) {
  div.quarto-about-trestles {
    display: flex !important;
    flex-direction: row !important;
  }

  div.quarto-about-trestles .about-entity {
    flex: 0 0 220px !important;
    max-width: 220px !important;
    padding-right: 2rem !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  div.quarto-about-trestles .about-contents {
    flex: 1 1 0 !important;
    max-width: calc(100% - 240px) !important;
    padding-left: 2.5rem !important;
    border-left: 1px solid #eeeeee !important;
  }
}

/* 좌측 내 이름 크기 */
.about-entity .about-title, h1.title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #1a202c;
  text-align: left !important;
}

/* ==========================================================================
   3. 버튼 스타일 (.about-link, .pub-btn, .btn-badge)
   ========================================================================== */
.about-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.5rem !important;
  justify-content: flex-start !important;
}

/* 기본 미니 도형 버튼 (.pub-btn, .about-link) */
.about-link, .pub-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  padding: 0.22rem 0.55rem !important;
  border-radius: 6px !important;
  color: #495057 !important;
  background-color: #f8f9fa !important;
  border: 1px solid #e2e8f0 !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  line-height: 1.3 !important;
  margin-top: 0.35rem !important;
}

.about-link i, .pub-btn i {
  font-size: 0.82rem !important;
  color: #6c757d;
  transition: color 0.15s ease-in-out;
}

.about-link:hover, .pub-btn:hover {
  color: #0d6efd !important;
  background-color: #eef5ff !important;
  border-color: #bcd7ff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.about-link:hover i, .pub-btn:hover i {
  color: #0d6efd !important;
}

/* 색상별 액션 뱃지 버튼 (.btn-badge) */
.btn-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.2rem 0.5rem !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  line-height: 1.3 !important;
  margin-top: 0.35rem !important;
}

.badge-doi {
  background-color: #ebf8ff !important;
  color: #2b6cb0 !important;
  border: 1px solid #bee3f8 !important;
}
.badge-doi:hover {
  background-color: #2b6cb0 !important;
  color: #ffffff !important;
}

.badge-pdf {
  background-color: #fff5f5 !important;
  color: #c53030 !important;
  border: 1px solid #fed7d7 !important;
}
.badge-pdf:hover {
  background-color: #c53030 !important;
  color: #ffffff !important;
}

.badge-code {
  background-color: #f0fff4 !important;
  color: #276749 !important;
  border: 1px solid #c6f6d5 !important;
}
.badge-code:hover {
  background-color: #276749 !important;
  color: #ffffff !important;
}

.badge-bibtex {
  background-color: #faf5ff !important;
  color: #6b46c1 !important;
  border: 1px solid #e9d8fd !important;
}
.badge-bibtex:hover {
  background-color: #6b46c1 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   4. 본문 텍스트 및 서식 클래스 (.my-name, .pub-abstract, .pub-item)
   ========================================================================== */

/* 저자 중 내 이름 하이라이트 */
.my-name {
  font-weight: 700 !important;
  color: #1a202c !important;
  text-decoration: underline !important;
  text-decoration-color: #90cdf4 !important;
  text-underline-offset: 3px !important;
}

/* 초록 / 요약 설명 박스 */
.pub-abstract {
  font-size: 0.88rem !important;
  color: #4a5568 !important;
  background-color: #f8fafc !important;
  border-left: 3px solid #cbd5e0 !important;
  padding: 0.6rem 0.9rem !important;
  border-radius: 0 6px 6px 0 !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.6 !important;
}

/* 카드형 묶음 박스 (필요 시 논문 1건 전체를 카드로 감쌀 때) */
.pub-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 1.2rem 1.4rem !important;
  margin-bottom: 1rem !important;
  transition: all 0.2s ease-in-out !important;
}

.pub-item:hover {
  border-color: #cbd5e0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* 일반 링크 스타일 */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 우측 섹션 제목 */
h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #eeeeee;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

/* 리스트 항목 */
ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 1rem;
  line-height: 1.7;
}
