/* =============================================
   차별화상회 블로그형 랜딩페이지 -- 스타일시트
   독립 블로그 스타일 (레퍼런스: todayfocus, dailywish)
   ============================================= */

/* --- CSS Variables --- */
:root {
  --bg-page: #fafaf7;
  --bg-blog: #ffffff;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-link: #1a6b3c;
  --accent-green: #1a6b3c;
  --accent-green-light: #e8f5ed;
  --accent-red: #d63031;
  --accent-red-bg: #fff2f0;
  --accent-yellow-bg: #fffbe6;
  --border-light: #ebebeb;
  --border-medium: #d5d5d5;
  --bg-blockquote: #f7f8f9;
  --bg-comment: #fafafa;
  --font-blog: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --max-width-post: 680px;
  --max-width-outer: 780px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-blog);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* --- Blog Outer Shell --- */
.blog-outer {
  max-width: var(--max-width-outer);
  margin: 0 auto;
  background: var(--bg-blog);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

/* --- Blog Header (독립 블로그 스타일) --- */
.blog-header {
  padding: 40px 30px 32px;
  border-bottom: 1px solid var(--border-light);
}

.blog-header__title {
  text-align: center;
}

.blog-header__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--accent-green-light);
}

.blog-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-header__title h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.blog-header__title .blog-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* 네이버 블로그 요소 -- 더 이상 사용 안 함 (하위 호환) */
.blog-header__top-nav,
.blog-header__tabs,
.blog-subheader {
  display: none;
}

/* --- Post Container --- */
.post {
  max-width: var(--max-width-post);
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* --- Post Category --- */
.post__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* --- Post Title --- */
.post__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* --- Post Meta --- */
.post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 36px;
}

.post__meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
  overflow: hidden;
}

.post__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.post__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

.post__meta-right {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.post__meta-right a {
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.post__meta-right a:hover {
  border-color: var(--border-medium);
}

/* --- Post Body --- */
.post__body {
  font-size: 16.5px;
  line-height: 2;
  color: var(--text-primary);
}

.post__body p {
  margin-bottom: 28px;
}

/* 빨간 강조 (레퍼런스 스타일) */
.post__body .emphasis {
  color: var(--accent-red);
  font-weight: 700;
}

/* 초록 강조 */
.post__body .subtle-emphasis {
  color: var(--accent-green);
  font-weight: 700;
}

/* 섹션 구분선 */
.post__body .section-divider {
  text-align: center;
  padding: 28px 0;
  color: var(--border-medium);
  font-size: 14px;
  letter-spacing: 8px;
}

/* 인용구 블록 */
.post__body blockquote {
  background: var(--bg-blockquote);
  border-left: 4px solid var(--accent-green);
  padding: 24px 28px;
  margin: 36px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  border-radius: 0 6px 6px 0;
}

.post__body blockquote .bq-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: block;
}

/* 하이라이트 박스 (노란색 배경) */
.post__body .highlight-box {
  background: var(--accent-yellow-bg);
  border: 1px solid #ecd97e;
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 6px;
  line-height: 1.9;
}

.post__body .highlight-box strong {
  color: var(--accent-red);
}

/* 빨간 강조 박스 (레퍼런스 패턴) */
.post__body .red-highlight-box {
  background: var(--accent-red-bg);
  border-left: 4px solid var(--accent-red);
  padding: 20px 24px;
  margin: 36px 0;
  font-weight: 700;
  color: var(--accent-red);
  font-size: 17px;
  line-height: 1.7;
  border-radius: 0 6px 6px 0;
}

/* 데이터 비교 박스 */
.post__body .data-comparison-box {
  background: #f8f9fa;
  border: 1px solid var(--border-light);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 6px;
}

.post__body .data-comparison-box .comparison-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* --- Post Images --- */
.post__hero-img {
  margin: 0 -24px 36px;
  overflow: hidden;
}

.post__hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.post__inline-img {
  margin: 0 0 36px;
}

.post__inline-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.post__inline-img figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* --- CTA Section --- */
.post__cta {
  margin: 48px 0;
  text-align: center;
  padding: 32px 24px;
  background: var(--accent-green-light);
  border-radius: 8px;
}

.post__cta-link {
  display: inline-block;
  background: var(--accent-green);
  color: #ffffff;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}

.post__cta-link:hover {
  background: #155a32;
  transform: translateY(-1px);
}

.post__cta-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* --- Tags --- */
.post__tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post__tags a {
  display: inline-block;
  background: var(--bg-blockquote);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.post__tags a:hover {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

/* --- Post Footer (공감, 공유) --- */
.post__footer {
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 36px;
}

.post__footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-blog);
  transition: color 0.15s;
}

.post__footer-btn:hover {
  color: var(--text-secondary);
}

.post__footer-btn .icon {
  font-size: 22px;
}

.post__footer-btn .count {
  font-weight: 700;
  color: var(--text-secondary);
}

/* --- Comments Section --- */
.comments {
  max-width: var(--max-width-post);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.comments__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--text-primary);
}

.comments__header h3 {
  font-size: 16px;
  font-weight: 700;
}

.comments__header .comment-count {
  color: var(--accent-green);
}

.comments__sort {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.comments__sort a {
  color: var(--text-muted);
  text-decoration: none;
}

.comments__sort a.active {
  color: var(--text-primary);
  font-weight: 700;
}

/* --- Comment Item --- */
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment--reply {
  padding-left: 44px;
  background: var(--bg-comment);
  margin-left: 0;
}

.comment__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.comment__author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.comment__author--op {
  color: var(--accent-green);
}

.comment__date {
  font-size: 11px;
  color: var(--text-muted);
}

.comment__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  padding-left: 40px;
}

.comment__actions {
  display: flex;
  gap: 12px;
  padding-left: 40px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.comment__actions a {
  color: var(--text-muted);
  text-decoration: none;
}

.comment__actions a:hover {
  color: var(--text-secondary);
}

/* --- Comment Input (fake) --- */
.comments__input {
  margin-top: 24px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-blog);
}

.comments__input-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

.comments__input-btn {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-blog);
}

/* --- Blog Footer --- */
.blog-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-outer {
    max-width: 100%;
    box-shadow: none;
  }

  .post {
    padding: 24px 16px 44px;
  }

  .post__title {
    font-size: 22px;
  }

  .post__body {
    font-size: 16px;
    line-height: 1.9;
  }

  .blog-header {
    padding: 28px 16px 24px;
  }

  .comments {
    padding: 0 16px 44px;
  }

  .post__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .post__hero-img {
    margin: 0 -16px 28px;
  }

  .post__hero-img img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .post__cta-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .post__footer-btn {
    min-height: 48px;
    min-width: 48px;
  }
}

@media (max-width: 480px) {
  .post__title {
    font-size: 20px;
  }

  .post__body {
    font-size: 16px;
    line-height: 1.9;
  }

  .post__footer {
    gap: 24px;
  }

  .post__cta {
    padding: 24px 16px;
  }

  .post__cta-link {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
  }
}

/* === TOP100 네이버 스타일 위젯 === */
.top100-widget {
  margin: 32px -4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f9f9f7;
  overflow: hidden;
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.top100-widget__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  flex-wrap: wrap;
}

.top100-badge {
  background: #d63031;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.top100-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.top100-sub {
  font-size: 12px;
  color: #888;
  padding-left: 4px;
}

.top100-live {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}

.top100-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 10px;
  background: #fff;
}

.top100-card {
  display: flex;
  flex-direction: column;
  padding: 0 6px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f0f0f0;
  cursor: pointer;
}

.top100-card:last-child {
  border-right: none;
}

.top100-card:hover .top100-card__title {
  text-decoration: underline;
}

.top100-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 8px;
}

.top100-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top100-rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  padding: 4px 0 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.top100-rank--1 { background: rgba(168, 132, 32, 0.88); }
.top100-rank--2 { background: rgba(80, 80, 80, 0.82); }
.top100-rank--3 { background: rgba(90, 90, 90, 0.78); }

.rank-num {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: Georgia, serif;
}

.rank-line {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  margin-top: 3px;
}

.top100-card__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top100-card__cat {
  font-size: 11px;
  color: #1ea460;
  font-weight: 500;
}

.top100-card__cat em {
  color: #bbb;
  font-style: normal;
  padding: 0 2px;
}

.top100-note {
  padding: 12px 14px;
  border-top: 1px solid #efefef;
  background: #fafaf8;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}

.top100-note p + p {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .top100-widget {
    margin: 24px -16px;
    border-radius: 0;
  }

  .top100-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
  }

  .top100-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid #efefef;
  }

  .top100-card:last-child {
    border-bottom: none;
  }

  .top100-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 75px;
    aspect-ratio: unset;
    margin-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
  }

  .top100-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .top100-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .top100-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
  }

  .top100-card__cat {
    font-size: 12px;
  }

  .top100-rank {
    width: 26px;
    padding: 2px 0 5px 3px;
  }

  .rank-num {
    font-size: 14px;
  }
}

/* === 추가 내용 박스 === */
.extra-content-box {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 20px;
  margin: 24px 0;
  text-align: center;
  line-height: 2;
}

.extra-content-box__header {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.extra-content-box p {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.extra-highlight {
  color: var(--accent-red);
  font-weight: 700;
  font-style: italic;
}

.extra-red {
  color: var(--accent-red);
  font-weight: 700;
}

.extra-content-box__cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.extra-content-box__cta:hover {
  background: #b52828;
}
