/* =============================================
   PASHI — style.css
   Bootstrap 5 위에 파시 커스텀 스타일
   ============================================= */

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

/* ---------- CSS 변수 ---------- */
:root {
  --ink:     #1a1a2e;
  --paper:   #f7f5f0;
  --accent:  #c84b31;
  --gold:    #e8a838;
  --muted:   #8a8578;
  --border:  #ddd9d0;
  --green:   #2d8a6e;
  --sidebar: #1a1a2e;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
}

/* ---------- 타이포그래피 ---------- */
.serif { font-family: 'Noto Serif KR', serif; }

/* ---------- NAV ---------- */
.pashi-nav {
  position: fixed;
  top: 0; width: 100%; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.pashi-nav .logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
}
.pashi-nav .logo span { color: var(--accent); }
.pashi-nav .nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.pashi-nav .nav-link:hover { color: var(--ink); }
.btn-login {
  border: 1px solid var(--ink);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.85rem;
  background: none;
  text-decoration: none;
}
.btn-login:hover { background: var(--ink); color: var(--paper); }
.btn-join {
  background: var(--accent);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  border: none;
  text-decoration: none;
}
.btn-join:hover { background: #b03e28; color: white; }

/* ---------- 페이지 여백 (nav 고정 때문에) ---------- */
.page-wrap { padding-top: 70px; }

/* ---------- 히어로 ---------- */
.hero {
  min-height: 33vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ---------- 수익 구조 카드 ---------- */
.revenue-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  min-width: 280px;
}
.revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.revenue-row:last-child { border-bottom: none; }
.revenue-row .pct {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

/* ---------- 북카드 ---------- */
.book-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.book-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  color: var(--ink);
}
.book-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.book-cover-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.book-info { padding: 1rem; }
.book-genre {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.book-title-text {
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.book-author { font-size: 0.8rem; color: var(--muted); }
.book-price {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ---------- 섹션 ---------- */
.section { padding: 5rem 0; }
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

/* ---------- 모달 ---------- */
.modal-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(200,75,49,0.15);
}
.btn-accent {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 2px;
  padding: 0.6rem 1.5rem;
}
.btn-accent:hover { background: #b03e28; color: white; }

/* ---------- 푸터 ---------- */
.pashi-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  font-size: 0.85rem;
  text-align: center;
}
.pashi-footer .logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: white;
  margin-bottom: 1rem;
  display: block;
}
.pashi-footer .logo span { color: var(--accent); }

/* ---------- 작가 대시보드 사이드바 ---------- */
.pashi-sidebar {
  width: 220px;
  background: var(--sidebar);
  color: white;
  position: fixed;
  height: 100vh;
  top: 0; left: 0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
}
.sidebar-logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  display: block;
}
.sidebar-logo span { color: var(--accent); }
.menu-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  padding: 0 1.5rem;
  margin: 1rem 0 0.3rem;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.menu-item:hover { color: white; background: rgba(255,255,255,0.05); }
.menu-item.active {
  color: white;
  border-left-color: var(--accent);
  background: rgba(200,75,49,0.1);
}
.sidebar-user {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: auto;
}
.sidebar-user strong { display: block; color: white; margin-bottom: 0.2rem; }

/* 사이드바 있는 페이지 레이아웃 */
.dashboard-wrap {
  margin-left: 220px;
  padding: 2rem;
  min-height: 100vh;
}

/* ---------- 통계 카드 ---------- */
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
}
.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }

/* ---------- 컬러 피커 (책 표지) ---------- */
.color-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.color-swatch {
  width: 36px; height: 36px;
  border-radius: 4px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s;
}
.color-swatch.selected { border-color: var(--ink); }

/* ---------- 탭 (마이페이지) ---------- */
.pashi-tabs { border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.pashi-tab {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.pashi-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- 진행도 바 ---------- */
.progress-bar-pashi {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

::placeholder {
  color: #bbb;
  opacity: 1;
}
