/*
Theme Name:        GeneratePress Child - 라이프&여행
Theme URI:         https://lifetrip.local
Description:       메뉴 없는 미니멀 에디토리얼(브런치/Medium 스타일) 감성 매거진 차일드 테마
Author:            Min
Author URI:        https://lifetrip.local
Template:          generatepress
Version:           1.0.0
Text Domain:       generatepress-child
*/

/* --------------------------------------------------------------------------
   0. 웹폰트 (Pretendard) 로드 & 글로벌 타이포그래피
   -------------------------------------------------------------------------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --gp-font-primary: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Noto Sans KR", sans-serif;
  --gp-color-bg: #fafbfc;
  --gp-color-surface: #ffffff;
  --gp-color-text-main: #111827;
  --gp-color-text-body: #374151;
  --gp-color-text-muted: #64748b;
  --gp-color-primary: #0284c7;
  --gp-color-primary-light: #f0f9ff;
  --gp-color-border: #e9ecef;
  --gp-radius-card: 14px;
  --gp-radius-sm: 8px;
}

body {
  font-family: var(--gp-font-primary) !important;
  background-color: var(--gp-color-bg) !important;
  color: var(--gp-color-text-body);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   1. 상단 메뉴(GNB) 및 모바일 햄버거 토글 완전 숨김
   -------------------------------------------------------------------------- */
.main-navigation,
#mobile-header,
.mobile-menu-control-wrapper {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. 상단 헤더 & 브랜딩 (미니멀 매거진 스타일)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--gp-color-surface) !important;
  border-bottom: 1px solid #f1f3f5;
  padding: 42px 20px 32px !important;
  text-align: center;
}

.site-header .inside-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.site-branding .main-title {
  font-family: var(--gp-font-primary) !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  margin: 0 !important;
  line-height: 1.2;
}

.site-branding .main-title a {
  color: var(--gp-color-text-main) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-branding .main-title a:hover {
  color: var(--gp-color-primary) !important;
}

.site-branding .site-description {
  font-size: 0.92rem;
  color: var(--gp-color-text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. 메인 레이아웃 & 컨테이너
   -------------------------------------------------------------------------- */
#page {
  max-width: 1140px;
  margin: 40px auto !important;
}

/* --------------------------------------------------------------------------
   4. 메인 피드 글 카드 (Magazine Post Cards)
   -------------------------------------------------------------------------- */
.blog .inside-article,
.archive .inside-article {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: var(--gp-radius-card) !important;
  padding: 30px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.blog .inside-article:hover,
.archive .inside-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* 썸네일 이미지 라운딩 및 부드러운 줌(Zoom) */
.post-image {
  margin-bottom: 22px !important;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f3f5;
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.inside-article:hover .post-image img {
  transform: scale(1.025);
}

/* 카드 제목 */
.entry-title {
  font-family: var(--gp-font-primary) !important;
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.025em;
  margin: 10px 0 14px !important;
  word-break: keep-all;
}

.entry-title a {
  color: var(--gp-color-text-main) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: var(--gp-color-primary) !important;
}

/* 카테고리 알약(Pill) 배지 */
.entry-meta .cat-links a {
  display: inline-block;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--gp-color-primary) !important;
  background: var(--gp-color-primary-light);
  padding: 3px 11px;
  border-radius: 9999px;
  text-decoration: none;
  margin-right: 6px;
  transition: background 0.2s ease;
}

.entry-meta .cat-links a:hover {
  background: #e0f2fe;
}

.entry-meta .icon-categories,
.entry-meta .screen-reader-text {
  display: none !important;
}

/* 메타 정보 (날짜 등) */
.entry-meta {
  font-size: 0.85rem;
  color: var(--gp-color-text-muted);
}

.entry-meta a {
  color: var(--gp-color-text-muted);
  text-decoration: none;
}

/* 피드 요약문 (Excerpt / Summary) */
.entry-summary p {
  color: var(--gp-color-text-muted) !important;
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px !important;
  word-break: keep-all;
}

.entry-summary a.read-more {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gp-color-primary) !important;
  text-decoration: none;
  border-bottom: 1px dashed var(--gp-color-primary);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.entry-summary a.read-more:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   5. 싱글 포스트 본문 가독성 & 헤더
   -------------------------------------------------------------------------- */
/* 개별 글 본문 상단 대표이미지 중복 노출 방지 */
.single .page-header-image-single,
.single .featured-image {
  display: none !important;
}

.single .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gp-color-text-body);
  word-break: keep-all;
}

/* 이전 글 / 다음 글 (SEO 내부 링크 & 내비게이션) */
.post-navigation {
  margin-top: 50px !important;
  padding: 24px 0;
  border-top: 1px solid var(--gp-color-border);
  border-bottom: 1px solid var(--gp-color-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-navigation a:hover {
  color: var(--gp-color-primary);
}

/* --------------------------------------------------------------------------
   6. 사이드바 & 위젯 정돈
   -------------------------------------------------------------------------- */
.sidebar .widget {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: 12px;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar .widget-title,
.sidebar .widget h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--gp-color-text-main) !important;
  border-bottom: 2px solid var(--gp-color-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* 사이드바 검색 위젯 정돈 */
.wp-block-search__inside-wrapper {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.wp-block-search__input {
  border: none !important;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
  outline: none !important;
}

.wp-block-search__button {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.wp-block-search__button:hover {
  background: #0369a1 !important;
}

/* 사이드바 최신 글 (썸네일 + 제목 매거진 레이아웃) */
.wp-block-latest-posts__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-latest-posts__list li {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.wp-block-latest-posts__list li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* 썸네일 박스 (좌측 64x64) */
.wp-block-latest-posts__featured-image,
.lt-widget-thumb {
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #f1f5f9 !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
}

.wp-block-latest-posts__featured-image img,
.lt-widget-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.wp-block-latest-posts__list li:hover .lt-widget-thumb img,
.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
  transform: scale(1.08) !important;
}

.lt-widget-thumb-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  background: #f8fafc !important;
}

/* 제목 래퍼 및 링크 */
.lt-widget-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.wp-block-latest-posts__post-title,
.lt-widget-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  word-break: keep-all !important;
}

.wp-block-latest-posts__post-title:hover,
.lt-widget-title:hover {
  color: #0284c7 !important;
}

.wp-block-latest-posts__post-date {
  display: block !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

/* --------------------------------------------------------------------------
   7. 심플 푸터
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gp-color-surface) !important;
  border-top: 1px solid #f1f3f5;
  padding: 32px 20px !important;
  font-size: 0.85rem;
  color: var(--gp-color-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. 아티클 매거진 서식 (기존 콘텐츠 호환 유지)
   -------------------------------------------------------------------------- */
.mg-post, .wp-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gp-color-text-body);
  line-height: 1.85;
}

.mg-badge, .wp-cat-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gp-color-primary);
  background-color: var(--gp-color-primary-light);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.mg-lead, .wp-lead {
  font-size: 1.12rem;
  color: var(--gp-color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mg-takeaways, .wp-takeaways {
  background-color: #f8fafc;
  border-left: 4px solid var(--gp-color-primary);
  border-radius: 0 var(--gp-radius-sm) var(--gp-radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mg-card, .wp-card {
  background-color: #f9fafb;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius-sm);
  padding: 22px;
  margin-bottom: 20px;
}


/* 20261008 - 신규 css 추가 */
/* 헤더 높이 조절 */
.site-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* 전체 여백 */
.container.grid-container {
	padding: 0 16px;
	min-width: 360px;
}
@media (max-width: 768px) {
    #page {
        margin-top: 0px !important;
    }
	.site-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
	}
}

.em-wrap {
  max-width: 720px;
  margin: 0 auto;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.95;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

/* 상단 메타 바 (밑줄 없는 미니멀 에디토리얼 플랫 라벨) */
.em-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-bottom: 22px;
}
.em-category {
  color: #171717;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: none; /* 밑줄 완전 제거 */
}

/* 감성적인 대제목 */
.em-title {
  font-size: clamp(2.1rem, 4.5vw, 2.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  color: #0a0a0a !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 20px 0 !important;
}

/* 리드 단락 */
.em-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #525252;
  font-weight: 400;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eaeaea;
}

/* 매거진 인용구 & 핵심 서머리 */
.em-quote-box {
  margin: 36px 0;
  padding: 26px 30px;
  background-color: #fbfbfb;
  border-radius: 4px;
  border-left: 2px solid #171717;
}

.em-quote-text {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.7;
  color: #171717;
  margin-bottom: 14px;
}

.em-key-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-key-points li {
  font-size: 0.94rem;
  color: #525252;
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.em-key-points li:last-child {
  margin-bottom: 0;
}

.em-key-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #a3a3a3;
}

/* 소제목 (h2) - 세리프 넘버링과 조화 */
.em-wrap h2 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #0a0a0a !important;
  margin: 54px 0 20px !important;
  letter-spacing: -0.025em !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  border: none !important;
}

.em-num {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #8c8c8c;
  margin-right: 8px;
  font-weight: 400;
}

/* 본문 단락 */
.em-wrap p {
  margin-bottom: 26px;
  color: #383838;
  font-size: 1.05rem;
  line-height: 1.95;
}

/* 이미지 및 캡션 */
.em-figure {
  margin: 44px 0;
}

.em-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.em-figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #737373;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
  padding: 0 4px;
}

.em-license {
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* 매거진 룰 리스트 (박스 대신 섬세한 라인 디자인) */
.em-rule-list {
  margin: 36px 0;
  border-top: 1px solid #eaeaea;
}

.em-rule-item {
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
}

.em-rule-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.em-rule-index {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #171717;
  font-weight: 600;
}

.em-rule-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #171717;
}

.em-rule-desc {
  font-size: 0.96rem;
  color: #525252;
  line-height: 1.75;
  margin: 0;
  padding-left: 28px;
}

/* 하단 에디토리얼 클로징 */
.em-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
  font-size: 0.82rem;
  color: #8c8c8c;
  line-height: 1.7;
}

