/* =====================================================
   블로그 스타일 가이드 CSS
   테마: 브라운 & 골드 (Brown & Gold Theme)
   ===================================================== */

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

/* === 기본 컨테이너 === */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #000000;
  line-height: 1.6;
}

/* === 제목 스타일 === */
.blog-h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.8em;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-h2 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #5D4037 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.8em !important;
  line-height: 1.2 !important;
  border-left: 5px solid #F6B92A !important;
  padding-left: 0.8em !important;
  font-family: 'Noto Sans KR', sans-serif !important;
}

.blog-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5D4037;
  background-color: #F8F7F4;
  padding: 0.5em 1em;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.2;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.2;
  font-family: 'Noto Sans KR', sans-serif;
}

/* === 텍스트 스타일 === */
.blog-p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-p--hook {
  font-size: 1.2rem;
  color: #2E7D32;
  font-weight: 500;
  margin-bottom: 1em;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-p--greeting {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 1em;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-p--emphasis {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
  color: #2E7D32;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-strong {
  font-weight: 700;
  color: #2E7D32;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-mark {
  background-color: #F8F7F4;
  color: #000000;
  padding: 0 3px;
  border-radius: 2px;
  font-family: 'Noto Sans KR', sans-serif;
}

/* === 목차 === */
.blog-toc {
  background: #F8F7F4;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.08);
  font-family: 'Noto Sans KR', sans-serif;
  border-left: 4px solid #F6B92A;
}

.blog-toc__title {
  font-weight: 700;
  color: #5D4037;
  font-size: 18px;
  margin: 0 0 15px 0;
}

.blog-toc__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-toc__link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.blog-toc__link:hover {
  color: #5D4037;
}

/* === 목록 스타일 === */
.blog-ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.8;
  font-size: 1rem;
}

.blog-ol li {
  margin-bottom: 0.5em;
  position: relative;
}

.blog-ol li strong {
  color: #2E7D32;
  font-weight: 700;
}

.blog-ul {
  margin-bottom: 1.2em;
  padding-left: 2em;
  list-style-type: none;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-ul li {
  margin-bottom: 0.5em;
  position: relative;
}

.blog-ul li strong {
  color: #2E7D32;
  font-weight: 700;
}

/* 불릿 포인트 */
.blog-ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F6B92A;
  margin-right: 10px;
  position: absolute;
  left: -20px;
  top: 8px;
}

/* 체크리스트 */
.blog-checklist {
  margin-bottom: 1.2em;
  padding-left: 0.5em;
  list-style-type: none;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-checklist li {
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 2em;
}

.blog-checklist input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0.3em;
  accent-color: #2E7D32;
}

.blog-checklist label {
  cursor: pointer;
}

/* === 인용구 === */
.blog-blockquote {
  border-left: 4px solid #F6B92A;
  padding: 0.5em 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #000000;
  background-color: #F8F7F4;
  font-family: 'Noto Sans KR', sans-serif;
}

/* === 글상자 / 컨테이너 === */
.blog-box {
  border: 1px solid #5D4037;
  padding: 1em;
  border-radius: 4px;
  margin: 1.5em 0;
  background-color: #F8F7F4;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-box p {
  margin: 0;
  line-height: 1.6;
  color: #000000;
}

/* 경고/주의 상자 */
.blog-box--warning {
  border-left: 4px solid #F6B92A;
  padding: 1em;
  border-radius: 4px;
  margin: 1.5em 0;
  background-color: #F8F7F4;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-box--warning__title {
  font-weight: 700;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}

.blog-box--warning p {
  margin: 0;
  line-height: 1.6;
}

/* 메모/노트 박스 (warning과 동일 구조) */
.blog-box--note {
  border-left: 4px solid #F6B92A;
  padding: 1em;
  border-radius: 4px;
  margin: 1.5em 0;
  background-color: #F8F7F4;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-box--note__title {
  font-weight: 700;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}

.blog-box--note p {
  margin: 0;
  line-height: 1.6;
}

/* 강조 박스 */
.blog-box--highlight {
  background-color: #2E7D32;
  color: white;
  padding: 1em;
  border-radius: 4px;
  margin: 1.5em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-box--highlight p {
  margin: 0;
  line-height: 1.6;
  font-weight: 600;
}

/* === 코드 스타일 === */
.blog-pre {
  background-color: #F8F7F4;
  border-radius: 4px;
  padding: 1em;
  overflow: auto;
  margin: 1.5em 0;
  border-left: 4px solid #F6B92A;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  color: #000000;
}

.blog-code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #000000;
}

.blog-code--inline {
  background-color: #F8F7F4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #000000;
}

.blog-kbd {
  background-color: #F8F7F4;
  border: 1px solid #F6B92A;
  border-radius: 3px;
  padding: 2px 5px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #000000;
}

/* === 구분선 === */
.blog-hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(93, 64, 55, 0),
    rgba(93, 64, 55, 0.75),
    rgba(93, 64, 55, 0)
  );
  margin: 2em 0;
}

/* === 테이블 === */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-table th {
  border: 1px solid #5D4037;
  padding: 0.5em;
  text-align: center;
  background-color: #F8F7F4;
  color: #000000;
  font-weight: 700;
}

.blog-table td {
  border: 1px solid #5D4037;
  padding: 0.5em;
  text-align: left;
  color: #000000;
}

/* === Q&A 스타일 === */
.blog-qa {
  margin: 1.5em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-qa__question {
  font-weight: 700;
  color: #5D4037;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}

.blog-qa__answer {
  margin-left: 32px;
  margin-bottom: 1em;
}

.blog-qa__answer p {
  margin: 0;
  line-height: 1.6;
  color: #000000;
}

/* === 링크 === */
.blog-link {
  font-size: 1.0rem;
  color: #000000;
  margin-bottom: 1em;
  font-family: 'Noto Sans KR', sans-serif;
}

/* === 정의 스타일 === */
.blog-dl {
  margin: 1.5em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-dl dt {
  font-weight: 700;
  color: #5D4037;
  margin-bottom: 0.3em;
}

.blog-dl dd {
  margin-left: 2em;
  margin-bottom: 1em;
  color: #000000;
}

/* === 각주 === */
.blog-footnote-ref {
  color: #2E7D32;
  font-weight: 600;
  font-size: 0.8em;
  text-decoration: none;
}

.blog-footnotes {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #5D4037;
  font-size: 0.9em;
  color: #000000;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-footnotes p {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.blog-footnotes a {
  text-decoration: none;
  color: #2E7D32;
  font-weight: 600;
}

/* === 아코디언 (접기/펼치기) === */
.blog-details {
  border: 1px solid #5D4037;
  border-radius: 4px;
  margin: 1.5em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-details summary {
  padding: 0.5em 1em;
  background-color: #F8F7F4;
  font-weight: 600;
  color: #5D4037;
  cursor: pointer;
}

.blog-details__content {
  padding: 1em;
  background-color: #F8F7F4;
}

.blog-details__content p {
  margin: 0;
  line-height: 1.6;
  color: #000000;
}

/* === 마무리 섹션 === */
.blog-closing {
  margin: 2em 0;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-closing__box {
  background-color: #F8F7F4;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
}

.blog-closing__title {
  font-size: 1.5rem;
  color: #5D4037;
  margin-top: 0;
  margin-bottom: 1em;
  border-bottom: 2px solid #2E7D32;
  padding-bottom: 0.5em;
}

.blog-closing__text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
  color: #000000;
}

/* === 태그 섹션 === */
.blog-tags {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #5D4037;
  font-family: 'Noto Sans KR', sans-serif;
}

.blog-tags p {
  color: #000000;
  font-size: 0.9em;
}
