/* ==========================================
   부산크리스천문학 웹진 메인 스타일
   magazine.bcwa.or.kr
   ========================================== */

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

:root {
  --color-bg: #fafaf7;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-primary: #2c4a7c;
  --color-primary-dark: #1a3060;
  --color-gold: #b8860b;
  --color-gold-light: #d4a017;
  --color-line: #e0ddd6;
  --color-card-bg: #ffffff;
  --color-section-bg: #f4f2ed;
  --font-serif: 'Noto Serif KR', 'Georgia', serif;
  --font-sans: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo .logo-ko {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.site-logo .logo-en {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.site-nav a.nav-highlight {
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
  padding: 8px 16px;
  margin-left: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.site-nav a.nav-highlight:hover {
  background: var(--color-primary-dark);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 2px solid var(--color-primary);
  padding: 16px 0;
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ==========================================
   MAIN LAYOUT (padded for header)
   ========================================== */
.page-body {
  padding-top: var(--header-height);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #3a5a8c 100%);
  padding: 80px 0 70px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: white;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-item .label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-meta-item .value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hero-meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-primary:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn-gold {
  background: var(--color-gold);
  color: white;
}

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.hero-cover {
  flex-shrink: 0;
  width: 220px;
}

.hero-cover .cover-placeholder {
  width: 220px;
  height: 310px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.cover-placeholder .cover-icon {
  font-size: 40px;
  opacity: 0.6;
}

.cover-placeholder .cover-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

.cover-placeholder .cover-num {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.section-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  text-decoration: underline;
}

/* ==========================================
   CURRENT ISSUE SECTION (main page)
   ========================================== */
.current-issue {
  padding: 72px 0;
  background: var(--color-white);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

.toc-section {
  padding: 24px 28px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.toc-section:nth-child(even) {
  border-right: none;
}

.toc-section:nth-last-child(-n+2) {
  border-bottom: none;
}

.toc-section-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 12px;
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.toc-item .author {
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  min-width: 60px;
}

.toc-item .work-title {
  color: var(--color-text-light);
  font-size: 13px;
}

.toc-item .dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-line);
  margin: 0 6px;
  position: relative;
  top: -3px;
}

.toc-view-full {
  text-align: center;
  margin-top: 28px;
}

/* ==========================================
   FLIP VIEWER SECTION
   ========================================== */
.flip-promo {
  padding: 72px 0;
  background: var(--color-section-bg);
}

.flip-promo-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.flip-promo-text {
  flex: 1;
}

.flip-promo-text h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text);
}

.flip-promo-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.flip-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.flip-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-light);
}

.flip-feature .icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
}

.flip-promo-preview {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.flip-mini-preview {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 140px;
  padding: 10px;
}

.flip-page-mini {
  flex: 1;
  background: #f8f6f0;
  border: 1px solid #ddd;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  gap: 5px;
  font-size: 6px;
  color: #999;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.flip-page-mini .page-line {
  height: 2px;
  background: #e0e0e0;
  border-radius: 1px;
}

.flip-page-mini .page-line.dark {
  background: #ccc;
  width: 70%;
}

.flip-page-mini .page-title {
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  width: 60%;
}

.flip-spine {
  width: 8px;
  background: var(--color-primary);
  border-radius: 1px;
  opacity: 0.5;
  align-self: stretch;
}

/* ==========================================
   ARCHIVE SECTION (main page preview)
   ========================================== */
.archive-preview {
  padding: 72px 0;
  background: var(--color-white);
}

.archive-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.archive-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.archive-card-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3a5a8c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  text-align: center;
  padding: 20px;
}

.archive-card-cover .card-cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.archive-card-cover .card-num {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

.archive-card-cover .card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.archive-card-cover .card-season {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.archive-card-body {
  padding: 20px;
}

.archive-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.archive-card-summary {
  font-size: 13.5px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-card-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 80px;
}

/* ==========================================
   PAGE HEADER (내부 페이지 공통)
   ========================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 56px 0 48px;
  color: white;
}

.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero .page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

/* ==========================================
   ISSUE DETAIL PAGE
   ========================================== */
.issue-page {
  padding: 60px 0 80px;
}

.issue-header {
  display: flex;
  gap: 48px;
  margin-bottom: 56px;
  align-items: flex-start;
}

.issue-cover-box {
  flex-shrink: 0;
  width: 200px;
}

.issue-cover-img {
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 4px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: var(--font-serif);
}

.issue-cover-img .cov-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.issue-cover-img .cov-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.issue-cover-img .cov-num {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.issue-info {
  flex: 1;
}

.issue-info h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.issue-info .issue-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.issue-info .issue-summary {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 500px;
}

.issue-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* TOC 전체 페이지 */
.toc-full {
  margin-top: 0;
}

.toc-chapter {
  margin-bottom: 40px;
}

.toc-chapter-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--color-primary);
  border-radius: 6px 6px 0 0;
  color: white;
}

.toc-chapter-header .chapter-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.toc-chapter-header .chapter-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.toc-chapter-body {
  border: 1px solid var(--color-line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.toc-entry {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-line);
  transition: background 0.15s;
}

.toc-entry:last-child {
  border-bottom: none;
}

.toc-entry:hover {
  background: #f5f3ee;
}

.toc-entry .author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  min-width: 80px;
}

.toc-entry .separator {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.toc-entry .work {
  font-size: 14px;
  color: var(--color-text-light);
  flex: 1;
}

.toc-entry .page-num {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ==========================================
   ARCHIVE PAGE
   ========================================== */
.archive-page {
  padding: 60px 0 80px;
}

.archive-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--color-line);
  border-radius: 20px;
  background: white;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.archive-year {
  margin-bottom: 48px;
}

.archive-year-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
}

.archive-year-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ==========================================
   FLIP VIEWER PAGE
   ========================================== */
.flip-viewer-page {
  padding: 40px 0 80px;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.viewer-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.viewer-issue-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-issue-select label {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 500;
}

.viewer-issue-select select {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: white;
  color: var(--color-text);
  cursor: pointer;
}

/* The actual flip book container */
.flipbook-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.flipbook-container {
  width: 100%;
  max-width: 900px;
  height: 600px;
  position: relative;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PDF canvas pages */
.flip-book {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.flip-pages {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  height: 100%;
  max-height: 560px;
  perspective: 2000px;
}

.flip-page {
  position: relative;
  background: white;
  box-shadow: 4px 0 12px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: right center;
  cursor: pointer;
  flex-shrink: 0;
}

.flip-page canvas {
  display: block;
  height: 100%;
  width: auto;
}

.flip-page.left-page {
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15), 4px 0 12px rgba(0,0,0,0.25);
}

.flip-page.right-page {
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15), -4px 0 12px rgba(0,0,0,0.25);
}

.flip-spine-bar {
  width: 6px;
  background: linear-gradient(to right, #888, #ccc, #888);
  align-self: stretch;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Flip Controls */
.flip-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.flip-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.flip-nav-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
}

.flip-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.flip-page-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  min-width: 120px;
  text-align: center;
}

.flip-extra-controls {
  display: flex;
  gap: 8px;
}

.flip-control-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1.5px solid var(--color-line);
  background: white;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flip-control-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* PDF loading / placeholder */
.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0; left: 0;
}

.pdf-loading .loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pdf-placeholder-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 32px;
}

.pdf-placeholder-msg .big-icon {
  font-size: 56px;
  opacity: 0.6;
}

.pdf-placeholder-msg h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(255,255,255,0.9);
}

.pdf-placeholder-msg p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

/* Demo pages */
.demo-spread {
  display: flex;
  height: 100%;
  max-height: 560px;
  align-items: stretch;
}

.demo-page {
  width: 360px;
  background: white;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: #444;
  overflow: hidden;
  position: relative;
}

.demo-page.left {
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  border-right: 1px solid #e0e0e0;
}

.demo-page.right {
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.demo-page .dp-header {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.demo-page .dp-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.demo-page .dp-author {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: -4px;
}

.demo-page .dp-body {
  font-size: 11.5px;
  color: #555;
  line-height: 1.9;
  flex: 1;
  overflow: hidden;
}

.demo-page .dp-poem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #444;
  line-height: 1.8;
}

.demo-page .dp-page-num {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: auto;
}

.demo-spine {
  width: 8px;
  background: linear-gradient(to right, #bbb, #ddd, #bbb);
  align-self: stretch;
  flex-shrink: 0;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-page {
  padding: 60px 0 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
}

.about-section p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stat-item {
  background: var(--color-section-bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.info-card {
  background: var(--color-section-bg);
  border-radius: 8px;
  padding: 24px;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .info-label {
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 70px;
}

.info-row .info-val {
  color: var(--color-text-light);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: #1a1e2e;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.footer-brand .brand-en {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================
   DEPLOY CHECKLIST PAGE
   ========================================== */
.checklist-page {
  padding: 60px 0 80px;
}

.checklist-intro {
  max-width: 680px;
  margin-bottom: 48px;
}

.checklist-intro p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 10px;
}

.progress-bar-wrap {
  height: 10px;
  background: var(--color-line);
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 5px;
  transition: width 0.4s;
  width: 0%;
}

.progress-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.checklist-step {
  margin-bottom: 36px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
}

.checklist-step-header {
  background: var(--color-primary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.step-num {
  background: rgba(255,255,255,0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
}

.step-badge {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 2px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
}

.checklist-items {
  padding: 8px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--color-line);
  cursor: pointer;
  transition: background 0.15s;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: var(--color-section-bg);
}

.checklist-item input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-item-text {
  flex: 1;
}

.checklist-item-text .item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}

.checklist-item-text .item-note {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.item-priority {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.item-priority.required {
  background: #fff0f0;
  color: #c0392b;
}

.item-priority.recommended {
  background: #fff8e1;
  color: #e67e00;
}

.item-priority.optional {
  background: #f0fff0;
  color: #27ae60;
}

.checklist-item.done .item-title {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-cover {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .archive-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-year-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .issue-header {
    flex-direction: column;
    gap: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .demo-page {
    width: 280px;
  }
  .flipbook-container {
    height: 480px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 30px;
  }
  .section-title {
    font-size: 22px;
  }
  .toc-grid {
    grid-template-columns: 1fr;
  }
  .toc-section {
    border-right: none;
  }
  .archive-cards {
    grid-template-columns: 1fr;
  }
  .archive-year-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .flip-promo-inner {
    flex-direction: column;
  }
  .flip-promo-preview {
    width: 100%;
    height: 160px;
  }
  .demo-page {
    width: 160px;
    padding: 16px 12px;
  }
  .demo-page .dp-title {
    font-size: 13px;
  }
  .demo-page .dp-body,
  .demo-page .dp-poem {
    font-size: 9.5px;
  }
  .flipbook-container {
    height: 380px;
  }
  .stat-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
