/* ── 시니어 타이거 블로그 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tiger: #E07B00;        /* 타이거 오렌지 */
  --tiger-dark: #B85E00;
  --tiger-light: #FFF3E0;
  --navy: #1a2a3a;
  --text: #222;
  --text-light: #666;
  --bg: #FAFAFA;
  --white: #ffffff;
  --border: #e8e0d8;
  --shadow: 0 3px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Apple SD Gothic Neo', '맑은 고딕', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 17px; /* 시니어 가독성 — 약간 큰 폰트 */
}

a { color: var(--tiger-dark); text-decoration: none; }
a:hover { color: var(--tiger); }

/* ── 상단 바 ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  padding: 7px 5%;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.65); }
.top-bar a:hover { color: #fff; }

/* ── 헤더 ── */
#site-header {
  background: var(--white);
  border-bottom: 3px solid var(--tiger);
  padding: 22px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.header-brand { display: flex; align-items: center; gap: 18px; }
.tiger-logo {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tiger), var(--tiger-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 16px rgba(224,123,0,0.35);
  flex-shrink: 0;
}
.brand-text {}
.brand-name {
  font-size: 1.55rem; font-weight: 900; color: var(--navy);
  letter-spacing: -0.5px; line-height: 1.2;
}
.brand-name span { color: var(--tiger); }
.brand-tagline {
  font-size: 0.82rem; color: var(--text-light);
  margin-top: 3px; line-height: 1.4;
}

/* ── 네비 ── */
#navbar {
  background: var(--navy);
  padding: 0 5%;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
#navbar a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem; font-weight: 600;
  padding: 13px 16px; display: block;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}
#navbar a:hover, #navbar a.active {
  color: var(--tiger);
  border-bottom-color: var(--tiger);
  background: rgba(255,255,255,0.04);
}

/* ── 히어로 ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f55 50%, #1a2a3a 100%);
  padding: 68px 5% 56px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '🐯';
  position: absolute; right: 6%; bottom: -10px;
  font-size: 9rem; opacity: 0.07;
  transform: scaleX(-1);
}
.hero-inner { max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(224,123,0,0.2);
  border: 1px solid rgba(224,123,0,0.5);
  color: var(--tiger); border-radius: 30px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 16px; margin-bottom: 20px;
}
.hero h1 {
  color: #fff; font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  font-weight: 900; line-height: 1.38; margin-bottom: 16px;
}
.hero h1 em { color: var(--tiger); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,0.72); font-size: 1rem;
  line-height: 1.8; margin-bottom: 28px; max-width: 580px;
}
.hero-author {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border-radius: 12px;
  padding: 14px 18px; border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
}
.author-emoji { font-size: 2rem; }
.author-info {}
.author-info strong { color: #fff; font-size: 0.95rem; display: block; }
.author-info span { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* ── 키워드 태그 스트립 ── */
.keyword-strip {
  background: var(--tiger-light);
  border-top: 1px solid rgba(224,123,0,0.15);
  border-bottom: 1px solid rgba(224,123,0,0.15);
  padding: 12px 5%;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.keyword-strip-label {
  font-size: 0.78rem; color: var(--tiger-dark); font-weight: 700;
  margin-right: 4px; white-space: nowrap;
}
.kw-tag {
  background: var(--white); border: 1px solid rgba(224,123,0,0.3);
  color: var(--tiger-dark); font-size: 0.78rem; font-weight: 600;
  padding: 4px 13px; border-radius: 20px; white-space: nowrap;
  transition: all 0.2s;
}
.kw-tag:hover { background: var(--tiger); color: #fff; border-color: var(--tiger); }

/* ── 메인 레이아웃 ── */
.main-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1120px; margin: 0 auto;
  padding: 48px 5%;
}

/* ── 섹션 제목 ── */
.section-title {
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--tiger); border-radius: 2px;
  display: block;
}

/* ── 포스트 카드 ── */
.post-list { display: flex; flex-direction: column; gap: 24px; }

.post-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.post-thumb {
  background: linear-gradient(135deg, var(--tiger-light), #ffe0b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; min-height: 170px;
}
.post-content { padding: 20px 22px; }
.post-meta {
  display: flex; gap: 8px; align-items: center; margin-bottom: 9px; flex-wrap: wrap;
}
.cat-tag {
  background: var(--tiger); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 3px; letter-spacing: 0.3px;
}
.cat-tag.blue { background: #2563eb; }
.cat-tag.green { background: #16a34a; }
.post-date { color: var(--text-light); font-size: 0.78rem; }
.post-title {
  font-size: 1.05rem; font-weight: 800; color: var(--navy);
  line-height: 1.45; margin-bottom: 9px; display: block;
}
.post-title:hover { color: var(--tiger); }
.post-excerpt { color: var(--text-light); font-size: 0.88rem; line-height: 1.75; }
.post-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
}
.read-more {
  color: var(--tiger); font-size: 0.82rem; font-weight: 700;
}
.read-more::after { content: ' →'; }
.read-time { color: #aaa; font-size: 0.75rem; }

/* ── 사이드바 ── */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px; box-shadow: var(--shadow);
}
.widget-title {
  font-size: 0.88rem; font-weight: 800; color: var(--navy);
  padding-bottom: 10px; border-bottom: 2px solid var(--tiger);
  margin-bottom: 14px;
}

/* 저자 위젯 */
.author-widget { text-align: center; }
.aw-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tiger), var(--tiger-dark));
  color: #fff; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(224,123,0,0.3);
}
.aw-name { font-weight: 900; font-size: 1.05rem; color: var(--navy); }
.aw-sub { color: var(--tiger); font-size: 0.78rem; font-weight: 700; margin-top: 2px; }
.aw-bio {
  font-size: 0.83rem; color: var(--text-light);
  line-height: 1.7; margin-top: 10px; text-align: left;
}
.aw-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
}
.aw-stat {
  background: var(--tiger-light); border-radius: 8px; padding: 10px 6px;
  text-align: center;
}
.aw-stat-num { font-size: 1.2rem; font-weight: 900; color: var(--tiger); }
.aw-stat-label { font-size: 0.7rem; color: var(--text-light); margin-top: 1px; }

/* 위젯 리스트 */
.widget-list { list-style: none; }
.widget-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; line-height: 1.5;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--text); }
.widget-list a:hover { color: var(--tiger); }
.widget-list .num {
  display: inline-block; width: 20px; height: 20px;
  background: var(--tiger-light); color: var(--tiger);
  border-radius: 50%; font-size: 0.7rem; font-weight: 800;
  text-align: center; line-height: 20px; margin-right: 6px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  background: var(--tiger-light); color: var(--tiger-dark);
  font-size: 0.78rem; padding: 5px 13px; border-radius: 20px;
  font-weight: 600; border: 1px solid rgba(224,123,0,0.2);
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--tiger); color: #fff; }

/* 구독 위젯 */
.subscribe-box { background: linear-gradient(135deg, var(--tiger), var(--tiger-dark)); border-radius: 12px; padding: 22px; text-align: center; }
.subscribe-box h3 { color: #fff; font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; }
.subscribe-box p { color: rgba(255,255,255,0.8); font-size: 0.8rem; line-height: 1.6; margin-bottom: 14px; }
.subscribe-box input {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: none;
  font-size: 0.85rem; margin-bottom: 8px; outline: none;
}
.subscribe-box button {
  width: 100%; padding: 10px; border-radius: 6px; border: none;
  background: var(--navy); color: #fff; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
}

/* ── 포스트 상세 ── */
.post-hero { background: var(--navy); padding: 52px 5% 40px; }
.post-hero .cat-tag { margin-bottom: 14px; display: inline-block; }
.post-hero h1 {
  color: #fff; font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; line-height: 1.4; margin-bottom: 14px;
}
.post-hero-meta { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.post-hero-meta span { margin-right: 14px; }

.post-body { max-width: 760px; margin: 0 auto; padding: 48px 5%; }
.post-body h2 {
  font-size: 1.35rem; font-weight: 900; color: var(--navy);
  margin: 40px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--tiger);
}
.post-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin: 28px 0 10px; }
.post-body p { margin-bottom: 20px; font-size: 1rem; line-height: 1.9; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 8px; font-size: 1rem; line-height: 1.8; }
.post-body strong { color: var(--tiger-dark); }
.post-body .tip-box {
  background: var(--tiger-light);
  border-left: 4px solid var(--tiger);
  padding: 16px 20px; border-radius: 0 10px 10px 0;
  margin: 28px 0; font-size: 0.95rem;
}
.post-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem;
}
.post-body th { background: var(--navy); color: #fff; padding: 11px 14px; text-align: left; }
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-body tr:nth-child(even) td { background: var(--tiger-light); }

/* ── 푸터 ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 44px 5% 28px; margin-top: 60px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 32px;
}
.footer-brand .tiger-logo-sm {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tiger), var(--tiger-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 12px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.88rem; margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.footer-col a:hover { color: var(--tiger); }
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; text-align: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .main-wrap { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { min-height: 140px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero::after { display: none; }
}
