/* ========================================
   Mimilog Blog - Flat + Deco Style
   (랜딩페이지와 일관성 유지)
   ======================================== */

/* Fonts - HTML <head>에서 preload로 로드 */

:root {
  /* 랜딩페이지 색상 시스템 */
  --bg-cream: #F8F5E6;
  --bg-white: #FFF;
  --card-bg: #FDFBF7;
  --border-dark: #333;
  --border-light: #ddd;

  --text-primary: #222;
  --text-secondary: #666;
  --text-muted: #888;

  /* Deco Colors */
  --tape-yellow: #fff3b0;
  --tape-pink: #ffd6e0;
  --tape-mint: #c8f7dc;
  --tape-blue: #d0e8ff;
  --sticker-coral: #ff8a80;
  --sticker-yellow: #ffe082;
  --highlight-yellow: #fff59d;
  --highlight-pink: #f8bbd9;

  /* Mimilog Brand */
  --brand-coral: #ff6b6b;
  --brand-warm: #ff8a65;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nanum Myeongjo', 'Noto Serif', serif;
  background: linear-gradient(135deg, #F8F5E6 0%, #FFF 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========================================
   Container - 크림색 배경 + 라인노트
   ======================================== */
.notebook {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  /* 라인노트 효과 - 전체 영역 */
  line-height: 2;
  background-image: repeating-linear-gradient(transparent,
      transparent calc(2em - 1px),
      #ddd calc(2em - 1px),
      #ddd 2em);
  background-size: 100% 2em;
  background-position: 0 0.5em;
  position: relative;
}

.notebook-content {
  padding: 40px 20px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.blog-header {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-dark);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #F8F5E6 0%, #FFF 100%);
}

.blog-logo {
  font-family: 'Playwrite ZA', cursive;
  font-size: 1.6rem;
  font-weight: 100;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-logo:hover {
  color: var(--brand-coral);
}

.blog-nav {
  display: flex;
  gap: var(--space-md);
}

.blog-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.blog-nav a:hover {
  background: var(--tape-yellow);
  color: var(--text-primary);
}

/* Active state - 현재 페이지 표시 */
.blog-nav a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--tape-yellow);
}

/* Pressed state - 클릭 시 */
.blog-nav a:active {
  transform: scale(0.95);
  background: #e8e0a8;
}

/* ========================================
   Decorative Elements (Deco/다꾸)
   ======================================== */

/* Masking Tape */
.tape {
  position: absolute;
  height: 24px;
  opacity: 0.85;
}

.tape-yellow {
  background: var(--tape-yellow);
}

.tape-pink {
  background: var(--tape-pink);
}

.tape-mint {
  background: var(--tape-mint);
}

.tape-blue {
  background: var(--tape-blue);
}

.tape-top-left {
  top: -8px;
  left: 16px;
  width: 70px;
  transform: rotate(-12deg);
}

.tape-top-right {
  top: -8px;
  right: 16px;
  width: 50px;
  transform: rotate(10deg);
}

/* Sticky Notes / Post-it */
.sticky-note {
  background: var(--sticker-yellow);
  padding: var(--space-md);
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(1deg);
  position: relative;
}

.sticky-note.pink {
  background: var(--tape-pink);
}

.sticky-note.mint {
  background: var(--tape-mint);
}

.sticky-note.blue {
  background: var(--tape-blue);
}

/* Sticker */
.sticker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  font-size: 0.85rem;
}

.sticker-coral {
  background: var(--sticker-coral);
  color: white;
}

.sticker-yellow {
  background: var(--sticker-yellow);
  color: var(--text-primary);
}

/* Highlight marker effect */
.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--highlight-yellow) 60%);
  padding: 0 4px;
}

.highlight-pink {
  background: linear-gradient(180deg, transparent 60%, var(--highlight-pink) 60%);
}

/* Handwritten underline */
.underline-hand {
  position: relative;
}

.underline-hand::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5' stroke='%23ff6b6b' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
  background-size: 100px 10px;
}

/* Photo frame - flat style */
.photo-frame {
  background: white;
  padding: 10px 10px 30px 10px;
  border: 1.5px solid var(--border-dark);
  margin: var(--space-lg) 0;
}

.photo-frame img {
  width: 100%;
  display: block;
}

.photo-frame .caption {
  font-family: 'Gaegu', cursive;
  font-size: 1.3rem;
  text-align: center;
  margin-top: 10px;
  color: var(--text-secondary);
}

/* Sketch Wrapper - Transparent background */
.sketch-wrapper {
  text-align: center;
  margin: var(--space-lg) 0;
  padding: 10px;
}

.sketch-wrapper img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: inline-block;
  opacity: 0.9;
  /* 약간 자연스럽게 */
  mix-blend-mode: multiply;
  /* 배경과 자연스럽게 섞이게 */
}

.sketch-wrapper .caption {
  font-family: 'Gaegu', cursive;
  font-size: 1.3rem;
  text-align: center;
  margin-top: 0;
  color: var(--text-secondary);
}

/* Post Image - 블로그 포스트 이미지 */
.post-image {
  text-align: center;
  margin: var(--space-lg) 0;
}

.post-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: inline-block;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.post-image figcaption {
  font-family: 'Gaegu', cursive;
  font-size: 1.3rem;
  text-align: center;
  margin-top: 8px;
  color: var(--text-secondary);
}

/* Post Hero Image - 블로그 포스트 헤더 이미지 */
.post-hero-image {
  text-align: center;
  margin: 0 0 var(--space-lg) 0;
}

.post-hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ========================================
   Typography
   ======================================== */
.handwritten {
  font-family: 'Nanum Pen Script', cursive;
}

.handwritten-alt {
  font-family: 'Gaegu', cursive;
}

h1,
h2,
h3 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  line-height: 1.4;
}

.post-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.post-subtitle {
  font-family: 'Gaegu', cursive;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ========================================
   Quote Box - flat style
   ======================================== */
.quote-box {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--card-bg);
  border: 1.5px solid var(--border-dark);
  border-left: 4px solid var(--brand-coral);
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--brand-coral);
  opacity: 0.5;
  line-height: 1;
}

.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.quote-author {
  font-family: 'Gaegu', cursive;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ========================================
   Post Header
   ======================================== */
.post-header {
  margin-bottom: var(--space-xl);
  border-bottom: 1.5px solid var(--border-dark);
  padding-bottom: var(--space-lg);
}

.post-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  display: inline;
  background: linear-gradient(180deg, transparent 60%, #e0e0e0 60%);
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
  margin: var(--space-xl) 0;
}

.content-section h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  background: linear-gradient(180deg, transparent 60%, #e0e0e0 60%);
}

.content-section p {
  margin-bottom: var(--space-md);
  line-height: 2;
}

/* Quote */
.quote {
  font-style: italic;
  color: var(--text-secondary);
  background: linear-gradient(180deg, transparent 60%, #fff59d 60%);
  display: inline;
}

.quote-author {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.author-bio {
  display: block;
  margin-top: 0.3em;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
}

/* App Download */
.app-download p {
  text-align: center;
}

.app-download a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 4px;
}

.app-download a:hover {
  background: var(--border-dark);
  color: white;
}

/* ========================================
   Post Footer
   ======================================== */
.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.post-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.post-footer a:hover {
  color: var(--text-primary);
}

/* Deco divider */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  color: var(--text-muted);
}

.deco-divider::before,
.deco-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Blog List Page
   ======================================== */
.blog-list {
  display: grid;
  gap: var(--space-lg);
}

.blog-card {
  background: var(--card-bg);
  padding: var(--space-lg);
  border: 1.5px solid var(--border-dark);
  border-radius: 8px;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-3px);
  background: white;
}

/* 카드 전체 클릭 가능 */
.blog-card-title a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #1a365d;
}

.blog-card-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Footer (홈페이지와 동일)
   ======================================== */
footer {
  margin-top: 48px;
  padding: 40px 24px;
  border-top: 1.5px solid #e8e4d9;
  text-align: center;
  background: linear-gradient(135deg, #F8F5E6 0%, #FFF 100%);
  font-size: 16px;
  color: #888;
}

footer .footer-nav {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .footer-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

footer .footer-nav a {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s ease;
}

footer .footer-nav a:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

footer p {
  font-size: 16px;
  color: var(--text-muted);
}

footer .contact {
  margin-top: 4px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .notebook {
    border-left: none;
    border-right: none;
  }

  .notebook-content {
    padding: var(--space-lg) var(--space-md);
  }

  .post-title {
    font-size: 1.6rem;
  }

  .blog-header {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.relative {
  position: relative;
}

.inline-block {
  display: inline-block;
}

/* ========================================
   Language Dropdown (홈페이지와 동일)
   ======================================== */
.lang-dropdown {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lang-icon {
  width: 16px;
  height: 16px;
  stroke: #666;
  stroke-width: 2;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 150px;
  max-height: 400px;
  overflow-y: auto;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.15s;
}

.lang-menu a:first-child {
  border-radius: 7px 7px 0 0;
}

.lang-menu a:last-child {
  border-radius: 0 0 7px 7px;
}

.lang-menu a:hover {
  background: #f5f5f5;
}

.lang-menu a.active {
  background: #F8F5E6;
  font-weight: 600;
}

/* ========================================
   Category Badge
   ======================================== */
.blog-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.category-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  margin-right: 8px;
}

.category-essay {
  background: #ffd6e0;
  color: #9c4d61;
}

.category-qna {
  background: #c8f7dc;
  color: #3d7a57;
}

.category-language-tips {
  background: #ffe082;
  color: #8a6d1b;
}

/* ========================================
   Category Filter Chips
   ======================================== */
.category-filter {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  /* Firefox */
}

.category-filter::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.filter-chip {
  padding: 6px 14px;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-chip:hover {
  background: var(--card-bg);
}

.filter-chip.active {
  background: var(--border-dark);
  color: white;
}

.filter-chip[data-filter="essay"].active {
  background: #ffd6e0;
  color: #9c4d61;
  border-color: #ffd6e0;
}

.filter-chip[data-filter="qna"].active {
  background: #c8f7dc;
  color: #3d7a57;
  border-color: #c8f7dc;
}

.filter-chip[data-filter="language-tips"].active {
  background: #ffe082;
  color: #8a6d1b;
  border-color: #ffe082;
}

.blog-card.hidden {
  display: none;
}

/* ========================================
   Responsive - Language Dropdown
   ======================================== */
@media (max-width: 480px) {
  .lang-dropdown {
    top: 12px;
    right: 12px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .lang-menu {
    max-height: 280px;
  }
}

/* ========================================
   Coming Soon Modal
   ======================================== */
.coming-soon-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.coming-soon-modal.show {
  display: flex;
}

.coming-soon-content {
  background: var(--bg-cream);
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
  max-width: 320px;
  margin: 20px;
  box-shadow: 4px 4px 0 var(--border-dark);
}

.coming-soon-content h3 {
  font-family: 'Gaegu', cursive;
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.coming-soon-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.coming-soon-close {
  background: var(--brand-coral);
  color: white;
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  padding: 10px 24px;
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}

.coming-soon-close:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-dark);
}

/* ========================================
   Search Button (Header)
   ======================================== */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.search-btn:hover {
  background: var(--tape-yellow);
  color: var(--text-primary);
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   Search Modal (Moleskine Style)
   ======================================== */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.search-modal.show {
  display: block;
}

.search-modal-content {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 480px;
  background: var(--bg-cream);
  border: 2px solid var(--border-dark);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--border-dark);
  overflow: hidden;
  /* Moleskine notebook texture */
  background-image:
    repeating-linear-gradient(var(--bg-cream),
      var(--bg-cream) calc(2em - 1px),
      #e8e4d5 calc(2em - 1px),
      #e8e4d5 2em);
  background-size: 100% 2em;
  background-position: 0 1em;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-cream);
  border-bottom: 2px solid var(--border-dark);
}

.search-modal-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-modal-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.search-modal-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.search-modal-input:focus {
  outline: none;
  border-color: #ffab91;
}

.search-modal-input::placeholder {
  color: var(--text-muted);
  font-family: 'Gaegu', cursive;
}

.search-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.search-modal-close:hover {
  background: var(--border-dark);
  color: #fff;
}

.search-modal-close svg {
  width: 20px;
  height: 20px;
}

.search-modal-results {
  max-height: 50vh;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px dashed var(--border-light);
  transition: background 0.15s;
  background: transparent;
}

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

.search-result-item:hover {
  background: rgba(255, 243, 176, 0.5);
}

.search-result-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.search-result-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-date {
  font-family: 'Gaegu', cursive;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-no-results {
  padding: 32px 16px;
  text-align: center;
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--border-dark);
  color: white;
}

.pagination-btn.disabled {
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 6px;
  transition: all 0.2s;
}

.pagination-number:hover {
  border-color: var(--border-light);
  background: var(--card-bg);
}

.pagination-number.active {
  background: var(--border-dark);
  color: white;
  border-color: var(--border-dark);
}

/* Responsive - Pagination */
@media (max-width: 480px) {
  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* 페이지 수가 많을 때 숫자 일부 숨김 */
  .pagination-numbers .pagination-number:nth-child(n+6) {
    display: none;
  }
}

/* ========================================
   Blog Pre-Register Form
   (블로그 포스트 내 사전 등록 폼)
   ======================================== */

.blog-pre-register {
  margin: 24px 0;
  padding: 24px;
  background: var(--card-bg, #FDFBF7);
  border: 1px solid var(--border-light, #ddd);
  border-radius: 8px;
  text-align: center;
}

.blog-pre-register-desc {
  font-size: 15px;
  color: var(--text-secondary, #666);
  margin-bottom: 16px;
}

.blog-waitlist-form {
  margin-top: 16px;
}

.blog-platform-guide {
  font-size: 14px;
  color: var(--text-secondary, #666);
  margin-bottom: 12px;
}

.blog-platform-select {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.blog-platform-option {
  cursor: pointer;
  flex: 1;
  max-width: 200px;
}

.blog-platform-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.blog-platform-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #fff;
  transition: all 0.2s ease;
}

.blog-platform-label:hover {
  border-color: #bbb;
}

.blog-platform-option input[type="radio"]:checked+.blog-platform-label {
  border-color: #333;
  color: #222;
}

.blog-checkbox-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.blog-checkbox-icon svg {
  width: 14px;
  height: 14px;
  display: none;
}

.blog-platform-option input[type="radio"]:checked+.blog-platform-label .blog-checkbox-icon {
  border-color: #333;
}

.blog-platform-option input[type="radio"]:checked+.blog-platform-label .blog-checkbox-icon svg {
  display: block;
  stroke: #333;
}

.blog-platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.blog-form-group {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.blog-form-group input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card-bg, #FDFBF7);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-form-group input[type="email"]:focus {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.08);
}

.blog-waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid #333;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.blog-waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.blog-waitlist-btn:disabled {
  opacity: 0.7;
  pointer-events: none;
}

.blog-waitlist-btn.loading .blog-btn-icon {
  animation: blog-spin 1s linear infinite;
}

@keyframes blog-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.blog-btn-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  vertical-align: middle;
}

.blog-form-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.blog-form-message.success {
  color: #2d7a3a;
}

.blog-form-message.error {
  color: #c0392b;
}

@media (max-width: 480px) {
  .blog-platform-select {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-platform-option {
    max-width: none;
  }

  .blog-form-group {
    flex-direction: column;
  }

  .blog-waitlist-btn {
    justify-content: center;
    padding: 14px 24px;
  }
}