/*
Theme Name: DoStory Premium
Author: Do Story
Description: Premium emotional philosophy theme with logo and hero design.
Version: 1.0
*/

/* ==============================
   0. 기본 설정 & 타이포그래피
   ============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F5F3EE;
  color: #0F1626;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.8;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  color: #0F1626;
}

/* 공통 컨테이너 */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 본문(포스트, 페이지) 타이포 */
.entry-content,
.post-content,
.single-post .content-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0;
}

.entry-content h1, .entry-content h2, .entry-content h3,
.post-content h1, .post-content h2, .post-content h3 {
  font-weight: 600;
  margin: 32px 0 16px;
  letter-spacing: -0.3px;
  color: #0F1626;
}

.entry-content p,
.post-content p {
  margin-bottom: 20px;
  color: #333;
}

.entry-content strong,
.post-content strong {
  font-weight: 600;
  color: #0F1626;
}

.entry-content ul li,
.post-content ul li {
  margin-bottom: 10px;
}

.entry-content a,
.post-content a {
  color: #0F4C81;
  text-decoration: underline;
}

.entry-content a:hover,
.post-content a:hover {
  color: #09345A;
}

.entry-content blockquote,
.post-content blockquote {
  border-left: 4px solid #D4C7A3;
  margin: 20px 0;
  padding: 12px 16px;
  color: #3A3A3A;
  background: #F7F7F7;
  font-style: italic;
}

/* 모바일 기본 타이포 */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }

  .entry-content,
  .post-content {
    padding: 16px;
  }
}

/* ==============================
   1. 헤더 & 네비게이션
   ============================== */

header {
  padding: 30px 0;
  border-bottom: 1px solid #E6E6E6;
  background: #F5F3EE;
}

.logo {
  height: 48px;
}

/* 워드프레스 기본 .nav-menu 사용 */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #0F1626;
  opacity: 0.8;
}

.nav-menu a:hover {
  opacity: 1;
}

/* ------------------------------
   1-1. 드롭다운 메뉴 (카테고리)
   ------------------------------ */

/* 서브메뉴 기본 숨김 */
.menu li ul,
#menu-header-menu li ul,
.nav-menu li ul {
  display: none;
  position: absolute;
  background: #ffffff;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 9999;
}

/* 드롭다운 항목 */
.menu li ul li,
#menu-header-menu li ul li,
.nav-menu li ul li {
  width: 180px;
  padding: 8px 16px;
  white-space: nowrap;
}

.menu li ul li a,
#menu-header-menu li ul li a,
.nav-menu li ul li a {
  color: #2D3748;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

/* 호버 시 서브메뉴 표시 */
.menu li:hover > ul,
#menu-header-menu li:hover > ul,
.nav-menu li:hover > ul {
  display: block;
}

/* 상위 메뉴 li 포지션 기준 */
.menu > li,
#menu-header-menu > li,
.nav-menu > li {
  position: relative;
}

/* ==============================
   2. 카테고리 히어로
   ============================== */

.category-hero {
  max-width: 760px;
  margin: 32px auto 24px;
  padding: 18px 22px 16px;
  background: #F7FAFC;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.category-hero-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A0AEC0;
  margin-bottom: 6px;
}

.category-hero-title {
  font-size: 20px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 6px;
}

.category-hero-desc {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* ==============================
   3. Insight 히어로
   ============================== */

.insight-hero {
  max-width: 860px;
  margin: 36px auto 24px;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  padding: 28px 28px;
  border-radius: 18px;
  text-align: left;
}

.insight-title {
  font-size: 26px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 10px;
}

.insight-desc {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.8;
}

/* (예전 insight-header / insight-list / pagination 스타일은 삭제) */

/* ==============================
   4. 프리미엄 카드형 글 리스트
   ============================== */

.post-list-premium {
  max-width: 880px;
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 카드 */
.post-card-premium {
  position: relative;
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

/* 왼쪽 골드 라인 */
.post-card-premium-accent {
  width: 4px;
  background: linear-gradient(180deg, #D4C7A3, #B89F72);
}

/* 카드 본문 */
.post-card-premium-body {
  padding: 18px 22px 18px 20px;
  flex: 1;
}

/* hover 효과 */
.post-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
  background: #FDFDFC;
}

/* 메타 영역 */
.post-card-premium-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #A0AEC0;
  margin-bottom: 8px;
}

/* 카테고리 뱃지 */
.post-card-premium-cat {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 11px;
  color: #718096;
  background: #F7FAFC;
}

.post-card-premium-dot {
  margin: 0 6px;
  font-size: 11px;
}

/* 날짜 */
.post-card-premium-date {
  font-size: 12px;
}

/* 제목 */
.post-card-premium-title {
  font-size: 20px;
  font-weight: 600;
  color: #1A202C;
  margin: 4px 0 10px;
}

.post-card-premium-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-premium-title a:hover {
  text-decoration: underline;
}

/* 요약 */
.post-card-premium-excerpt {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* 읽기 링크 */
.post-card-premium-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #2D3748;
  text-decoration: none;
}

.post-card-premium-read:hover .post-card-premium-arrow {
  transform: translateX(2px);
}

.post-card-premium-arrow {
  display: inline-block;
  transition: transform .18s ease;
}

/* 카드 모바일 대응 */
@media (max-width: 768px) {
  .post-list-premium {
    margin: 16px 14px 32px;
  }

  .post-card-premium-body {
    padding: 16px 16px 16px 14px;
  }

  .post-card-premium-title {
    font-size: 18px;
  }

  .post-card-premium-excerpt {
    font-size: 13px;
  }
}

/* ==============================
   5. 페이지(About, Contact 등)
   ============================== */

.page-content {
  max-width: 760px;
  margin: 36px auto 60px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 16px;
}

/* ==============================
   6. 푸터 (새 footer.php용)
   ============================== */

.site-footer {
  background: #F7FAFC;
  border-top: 1px solid #E2E8F0;
  margin-top: 40px;
  padding: 26px 20px 18px;
  font-size: 13px;
  color: #4A5568;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #718096;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #A0AEC0;
  margin-bottom: 6px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav a {
  color: #4A5568;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-nav-legal a {
  font-size: 12px;
}

.footer-bottom {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 6px;
  border-top: 1px solid #E2E8F0;
  text-align: left;
  font-size: 12px;
  color: #A0AEC0;
}

/* ==============================
   7. 반응형 레이아웃
   ============================== */

@media (max-width: 768px) {
  .category-hero,
  .insight-hero,
  .page-content {
    margin-left: 16px;
    margin-right: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
