/* CSS Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* 신비로운 동양풍 테마 */
  --bg-deep: #0a0e1a;
  --bg-night: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #242b45;

  /* 골드 & 악센트 */
  --gold-primary: #d4a853;
  --gold-light: #f0d890;
  --gold-dark: #a67c32;
  --accent-mystic: #7c6aef;
  --accent-celestial: #60a5fa;

  /* 텍스트 */
  --text-primary: #f4f0e8;
  --text-secondary: #b8b0a0;
  --text-muted: #6b6560;

  /* 효과 */
  --border-gold: rgba(212, 168, 83, 0.3);
  --glow-gold: rgba(212, 168, 83, 0.4);
  --glow-mystic: rgba(124, 106, 239, 0.3);

  /* 상태 */
  --success: #4ade80;
  --error: #f87171;

  /* 스페이싱 (8px 그리드) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */

  /* 반경 */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* 별이 빛나는 배경 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 106, 239, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(96, 165, 250, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 별 파티클 효과 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(212, 168, 83, 0.6), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 300px 100px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 350px 200px;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Container */
.container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: var(--space-10);
  position: relative;
}

.logo {
  margin-bottom: var(--space-6);
  display: inline-block;
}

.logo img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 40px var(--glow-gold));
  animation: subtle-glow 4s ease-in-out infinite;
}

@keyframes subtle-glow {
  0%, 100% { filter: drop-shadow(0 0 30px var(--glow-gold)); }
  50% { filter: drop-shadow(0 0 50px var(--glow-gold)); }
}

.header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px var(--glow-gold);
}

.title-hanja {
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--gold-primary);
  background-clip: unset;
  opacity: 0.6;
}

.about-link {
  display: inline-block;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-family: 'Noto Serif KR', serif;
  font-size: 0.85rem;
  color: var(--gold-primary);
  text-decoration: none;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.about-link:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.subtitle {
  font-family: 'Noto Serif KR', serif;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* 장식용 구분선 */
.header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  margin: var(--space-8) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Input Section - 한지 텍스처 느낌 */
.input-section {
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 168, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
}


.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.form-group input[type="date"] {
  width: 100%;
  padding: var(--space-4);
  font-size: 1.1rem;
  font-family: 'Pretendard', sans-serif;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: rgba(26, 31, 53, 0.8);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-group input[type="date"]:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow:
    0 0 0 4px rgba(212, 168, 83, 0.15),
    0 0 30px rgba(212, 168, 83, 0.2);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(10deg);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Form Row (가로 배치) */
.form-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.form-group-inline {
  flex: 1;
  margin-bottom: 0;
}

/* Select 스타일 */
.form-group select {
  width: 100%;
  padding: var(--space-4);
  font-size: 1rem;
  font-family: 'Pretendard', sans-serif;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: rgba(26, 31, 53, 0.8);
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: calc(var(--space-4) + 24px);
}

.form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow:
    0 0 0 4px rgba(212, 168, 83, 0.15),
    0 0 30px rgba(212, 168, 83, 0.2);
}

.form-group select:hover {
  border-color: var(--gold-primary);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--space-2);
}

/* 모바일 반응형 - 폼 가로 배치 */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .form-group-inline {
    margin-bottom: 0;
  }

  .form-group select {
    font-size: 1rem;
    padding: var(--space-3);
    min-height: 48px;
  }
}

/* Primary Button - 신비로운 느낌 */
.btn-primary {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 40px rgba(212, 168, 83, 0.4),
    0 0 60px rgba(212, 168, 83, 0.2);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.3rem;
}

/* Result Section */
.result-section {
  margin-bottom: var(--space-8);
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-section.hidden {
  display: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-card {
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(212, 168, 83, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}


.result-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}

.result-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.zodiac-image {
  width: 320px;
  height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 0 30px var(--glow-gold));
  animation: zodiac-appear 0.8s ease-out;
  border-radius: var(--radius-md);
}

@keyframes zodiac-appear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.result-header h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.result-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ========================================
   Fortune Categories (5가지 운세)
   ======================================== */

.fortune-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.fortune-category {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid rgba(212, 168, 83, 0.15);
  transition: all 0.3s ease;
}

.fortune-category:hover {
  transform: translateX(4px);
}

/* 오행별 호버 테두리 색상 */
.fortune-category.element-earth:hover {
  border-color: var(--element-earth);
}

.fortune-category.element-fire:hover {
  border-color: var(--element-fire);
}

.fortune-category.element-metal:hover {
  border-color: var(--element-metal);
}

.fortune-category.element-wood:hover {
  border-color: var(--element-wood);
}

.fortune-category.element-water:hover {
  border-color: var(--element-water);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.category-icon {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.3rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

/* 오행 아이콘 색상 */
.category-icon.element-earth {
  color: var(--element-earth);
  background: var(--element-earth-bg);
}

.category-icon.element-fire {
  color: var(--element-fire);
  background: var(--element-fire-bg);
}

.category-icon.element-metal {
  color: var(--element-metal);
  background: var(--element-metal-bg);
}

.category-icon.element-wood {
  color: var(--element-wood);
  background: var(--element-wood-bg);
}

.category-icon.element-water {
  color: var(--element-water);
  background: var(--element-water-bg);
}

.category-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  flex: 1;
}

.category-hanja {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: var(--space-2);
}

.category-score {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.score-grade {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: var(--space-1);
}

/* 오행(五行) 색상 시스템 */
:root {
  /* 토(土) - 황색 */
  --element-earth: #d4a853;
  --element-earth-bg: rgba(212, 168, 83, 0.15);

  /* 화(火) - 적색 */
  --element-fire: #e85d5d;
  --element-fire-bg: rgba(232, 93, 93, 0.15);

  /* 금(金) - 금/백색 */
  --element-metal: #f0d890;
  --element-metal-bg: rgba(240, 216, 144, 0.15);

  /* 목(木) - 청색 */
  --element-wood: #5daa8f;
  --element-wood-bg: rgba(93, 170, 143, 0.15);

  /* 수(水) - 남색 */
  --element-water: #6b8cce;
  --element-water-bg: rgba(107, 140, 206, 0.15);
}

/* 게이지 바 */
.category-gauge {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.gauge-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 오행 게이지 바 색상 */
.gauge-fill.element-earth {
  background: linear-gradient(90deg, var(--element-earth), #e8c878);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

.gauge-fill.element-fire {
  background: linear-gradient(90deg, var(--element-fire), #f08080);
  box-shadow: 0 0 10px rgba(232, 93, 93, 0.4);
}

.gauge-fill.element-metal {
  background: linear-gradient(90deg, var(--element-metal), #fff8dc);
  box-shadow: 0 0 10px rgba(240, 216, 144, 0.4);
}

.gauge-fill.element-wood {
  background: linear-gradient(90deg, var(--element-wood), #7bc4a8);
  box-shadow: 0 0 10px rgba(93, 170, 143, 0.4);
}

.gauge-fill.element-water {
  background: linear-gradient(90deg, var(--element-water), #8faee0);
  box-shadow: 0 0 10px rgba(107, 140, 206, 0.4);
}

.category-message {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  padding-left: var(--space-2);
  border-left: 2px solid rgba(212, 168, 83, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .fortune-categories {
    gap: var(--space-3);
  }

  .fortune-category {
    padding: var(--space-4);
  }

  .fortune-category:hover {
    transform: none;
  }

  .category-header {
    gap: var(--space-2);
    margin-bottom: var(--space-2);
  }

  .category-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-hanja {
    display: none;
  }

  .category-score {
    font-size: 0.95rem;
    padding: var(--space-1) var(--space-2);
  }

  .category-gauge {
    height: 6px;
    margin-bottom: var(--space-2);
  }

  .category-message {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Fortune Text (기존 단일 메시지용 - 유지) */
.fortune-text {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  border-left: none;
  position: relative;
  overflow: hidden;
}

.fortune-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), transparent);
  border-radius: 2px;
}

.fortune-text p {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-primary);
  padding-left: var(--space-5);
}

.lucky-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.lucky-item {
  background: rgba(26, 31, 53, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.15);
  transition: all 0.3s ease;
}

.lucky-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lucky-label {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lucky-color-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.color-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lucky-color-container span:last-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lucky-numbers {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

/* Share Section */
.share-section {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.btn-share {
  padding: var(--space-3) var(--space-6);
  font-family: 'Pretendard', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(26, 31, 53, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-share:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.2);
}

.btn-share.copied {
  background: var(--success);
  color: var(--bg-deep);
  border-color: var(--success);
}

.btn-share-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--bg-deep);
  border-color: var(--gold-primary);
  font-weight: 700;
}

.btn-share-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
}

.btn-share-kakao {
  background: #FEE500;
  color: #3C1E1E;
  border-color: #FEE500;
}

.btn-share-kakao:hover {
  background: #FFEB3B;
  border-color: #FFEB3B;
  box-shadow: 0 4px 16px rgba(254, 229, 0, 0.4);
  color: #3C1E1E;
}

.btn-share-kakao .kakao-icon {
  flex-shrink: 0;
}

/* ========================================
   Share Card (이미지 공유용 카드)
   ======================================== */

.share-card {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 400px;
  background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Serif KR', 'Pretendard', sans-serif;
  box-sizing: border-box;
}

.share-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.share-card-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.share-card-brand {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  color: #d4a853;
  margin-left: 8px;
}

.share-card-date {
  font-size: 12px;
  color: #6b6560;
  margin-left: auto;
}

.share-card-zodiac {
  text-align: center;
  margin-bottom: 16px;
}

.share-card-zodiac img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 8px;
}

.share-card-zodiac-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: #f0d890;
}

.share-card-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.share-card-category {
  padding: 12px;
  background: rgba(10, 14, 26, 0.6);
  border-radius: 10px;
  border-left: 3px solid #d4a853;
}

.share-card-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.share-card-category-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 700;
}

.share-card-category-icon.element-earth {
  color: #d4a853;
  background: rgba(212, 168, 83, 0.15);
}
.share-card-category-icon.element-fire {
  color: #e85d5d;
  background: rgba(232, 93, 93, 0.15);
}
.share-card-category-icon.element-metal {
  color: #f0d890;
  background: rgba(240, 216, 144, 0.15);
}
.share-card-category-icon.element-wood {
  color: #5daa8f;
  background: rgba(93, 170, 143, 0.15);
}
.share-card-category-icon.element-water {
  color: #6b8cce;
  background: rgba(107, 140, 206, 0.15);
}

.share-card-category-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  font-weight: 700;
  color: #f0d890;
}

.share-card-category-message {
  font-family: 'Noto Serif KR', serif;
  font-size: 12px;
  line-height: 1.6;
  color: #f4f0e8;
  margin: 0;
}

.share-card-lucky {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.share-card-lucky-item {
  flex: 1;
  background: rgba(26, 31, 53, 0.8);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.share-card-lucky-label {
  display: block;
  font-size: 10px;
  color: #6b6560;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.share-card-lucky-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-card-color-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.share-card-lucky-value span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: #f4f0e8;
}

.share-card-numbers {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 700;
  color: #f0d890;
}

.share-card-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.share-card-footer span {
  font-size: 11px;
  color: #6b6560;
  letter-spacing: 0.05em;
}

/* Ad Banner */
.ad-banner {
  max-width: 720px;
  margin: var(--space-4) auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.ad-placeholder {
  background: rgba(26, 31, 53, 0.5);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Comments Section */
.comments-section {
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-gold);
  position: relative;
  z-index: 1;
}

.comments-section h3 {
  font-family: 'Noto Serif KR', serif;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
}

.disqus-placeholder {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  color: var(--text-muted);
}

/* Blog Section */
.blog-section {
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-gold);
  position: relative;
  z-index: 1;
}

.blog-section h2 {
  font-family: 'Noto Serif KR', serif;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
  font-size: 1.75rem;
  font-weight: 700;
}

.blog-section h3 {
  font-family: 'Noto Serif KR', serif;
  color: var(--gold-primary);
  margin: var(--space-6) 0 var(--space-3);
  font-size: 1.25rem;
  font-weight: 700;
}

.blog-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.blog-section ul {
  list-style: none;
  padding-left: 0;
}

.blog-section li {
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.7;
}

.blog-section li::before {
  content: '—';
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.blog-section li strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-gold);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: var(--space-5) var(--space-4);
  }

  .header {
    margin-bottom: var(--space-6);
  }

  .header::after {
    margin-top: var(--space-5);
  }

  .logo {
    margin-bottom: var(--space-4);
  }

  .logo img {
    width: 64px;
    height: 64px;
  }

  .header h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-2);
  }

  .title-hanja {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
  }

  .subtitle {
    font-size: 1rem;
  }

  .about-link {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
    min-height: 40px;
    margin-top: var(--space-3);
    display: inline-flex;
    align-items: center;
  }

  .input-section,
  .result-card,
  .comments-section,
  .blog-section {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input[type="date"] {
    font-size: 1rem;
    padding: var(--space-3);
    min-height: 48px;
  }

  .lucky-items {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .lucky-item {
    padding: var(--space-4);
  }

  .lucky-label {
    font-size: 0.8rem;
  }

  .lucky-numbers {
    font-size: 1.3rem;
  }

  .color-box {
    width: 24px;
    height: 24px;
  }

  .lucky-color-container span:last-child {
    font-size: 1rem;
  }

  .zodiac-image {
    width: 260px;
    height: 260px;
  }

  .result-header h2 {
    font-size: 1.25rem;
  }

  .result-date {
    font-size: 0.85rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: var(--space-4);
    min-height: 52px;
  }

  .fortune-text {
    padding: var(--space-4);
  }

  .fortune-text p {
    font-size: 1rem;
    line-height: 1.9;
    padding-left: var(--space-4);
  }

  .btn-share {
    padding: var(--space-3) var(--space-5);
    min-height: 44px;
  }

  /* Blog section 가독성 개선 */
  .blog-section h2 {
    font-size: 1.4rem;
  }

  .blog-section h3 {
    font-size: 1.1rem;
    margin: var(--space-5) 0 var(--space-3);
  }

  .blog-section p {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .blog-section li {
    padding: var(--space-3) 0;
    padding-left: var(--space-5);
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* Comments section */
  .comments-section h3 {
    font-size: 1.1rem;
  }

  .disqus-placeholder {
    padding: var(--space-6);
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: var(--space-6) var(--space-4);
    font-size: 0.8rem;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-deep);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--glow-gold);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Smooth scroll for all anchor links */
html {
  scroll-padding-top: var(--space-8);
}

/* Selection styling */
::selection {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

::-moz-selection {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* ========================================
   Blog Styles
   ======================================== */

/* Blog Navigation */
.nav-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-4);
}

.nav-link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-family: 'Noto Serif KR', serif;
  font-size: 0.85rem;
  color: var(--gold-primary);
  text-decoration: none;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Blog List Page */
.blog-list-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.blog-list-header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}

.blog-list-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-6);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: var(--space-3) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Zodiac Grid */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.zodiac-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--border-gold);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zodiac-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(212, 168, 83, 0.1);
}

.zodiac-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.zodiac-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 10px var(--glow-gold));
  transform: scale(1.25);
}

.zodiac-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: var(--space-1);
}

.zodiac-card .hanja {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Philosophy Cards */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.philosophy-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid var(--border-gold);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(212, 168, 83, 0.1);
}

.philosophy-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.philosophy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Blog Detail Page */
.blog-article {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-gold);
  position: relative;
}

.blog-hero {
  text-align: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-gold);
}

.blog-hero img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 0 30px var(--glow-gold));
}

.blog-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.blog-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-content h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin: var(--space-8) 0 var(--space-4);
}

.blog-content h2:first-child {
  margin-top: 0;
}

.blog-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}

.blog-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-4);
}

.blog-content li {
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.7;
}

.blog-content li::before {
  content: '—';
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.blog-content strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Year List */
.year-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.year-badge {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
  color: var(--gold-light);
}

/* Compatibility Box */
.compatibility-box {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-4) 0;
}

.compatibility-box h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-3);
}

.compatibility-good {
  color: var(--success);
}

.compatibility-caution {
  color: var(--error);
}

/* Celebrity List */
.celebrity-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.celebrity-badge {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Blog CTA */
.blog-cta {
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-gold);
}

.blog-cta p {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  margin-bottom: var(--space-4) !important;
}

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.post-nav-link {
  flex: 1;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-nav-link:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.post-nav-link.prev {
  text-align: left;
}

.post-nav-link.next {
  text-align: right;
}

.post-nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.post-nav-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--gold-light);
}

/* Related Posts */
.related-posts {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-gold);
}

.related-posts h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.related-link {
  text-align: center;
  padding: var(--space-3);
  background: rgba(10, 14, 26, 0.4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-link:hover {
  background: rgba(212, 168, 83, 0.1);
}

.related-link img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.related-link span {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* Blog Responsive */
@media (max-width: 768px) {
  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .philosophy-cards {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
}

@media (max-width: 600px) {
  .nav-links {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .blog-list-header h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .zodiac-card {
    padding: var(--space-4);
  }


  .zodiac-card h3 {
    font-size: 1rem;
  }

  .philosophy-card {
    padding: var(--space-5);
  }

  .blog-article {
    padding: var(--space-5);
  }

  .blog-hero img {
    width: 150px;
    height: 150px;
  }

  .blog-hero h1 {
    font-size: 1.5rem;
  }

  .blog-content h2 {
    font-size: 1.2rem;
    margin: var(--space-6) 0 var(--space-3);
  }

  .blog-content p {
    font-size: 0.95rem;
  }

  .post-nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  .post-nav-link {
    width: 100%;
    text-align: center !important;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-link img {
    width: 40px;
    height: 40px;
  }

  .year-list {
    gap: var(--space-1);
  }

  .year-badge {
    padding: var(--space-1) var(--space-2);
    font-size: 0.8rem;
  }
}

/* ========================================
   About Page Styles
   ======================================== */

.header-about {
  margin-bottom: var(--space-8);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-8);
  font-family: 'Noto Serif KR', serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

.back-link:hover {
  color: var(--gold-primary);
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-gold);
  position: relative;
}

.about-section h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  color: var(--text-primary) !important;
  text-align: center;
}

/* Hanja Breakdown */
.hanja-breakdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hanja-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.hanja-char {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.hanja-reading {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--gold-primary);
}

.hanja-meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hanja-divider {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Quote Box */
.quote-box {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  border-left: 3px solid var(--gold-primary);
  text-align: center;
}

.quote-box p {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light) !important;
  margin-bottom: var(--space-2) !important;
}

.quote-box cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Example Box */
.example-box {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-4);
}

.example-box h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-4);
}

.example-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-box li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  color: var(--text-secondary);
}

.example-box li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.example-box li strong {
  color: var(--gold-light);
}

/* Philosophy Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.philosophy-item {
  text-align: center;
  padding: var(--space-5);
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 83, 0.15);
  transition: all 0.3s ease;
}

.philosophy-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.philosophy-item h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.philosophy-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* About CTA */
.about-cta {
  text-align: center;
  background: transparent;
  border: none;
  padding: var(--space-8) 0;
}

.about-cta p {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  color: var(--text-primary) !important;
  margin-bottom: var(--space-6) !important;
}

.btn-cta {
  display: inline-flex;
  width: auto;
  padding: var(--space-4) var(--space-8);
}

/* Responsive for About Page */
@media (max-width: 600px) {
  .back-link {
    font-size: 0.85rem;
    padding: var(--space-2) 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .about-section {
    padding: var(--space-5);
    margin-bottom: var(--space-4);
  }

  .about-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
  }

  .about-section p {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .lead-text {
    font-size: 1.05rem;
  }

  .hanja-breakdown {
    gap: var(--space-2);
    margin-top: var(--space-4);
  }

  .hanja-item {
    padding: var(--space-3) var(--space-4);
    min-width: 70px;
  }

  .hanja-char {
    font-size: 1.75rem;
  }

  .hanja-reading {
    font-size: 0.9rem;
  }

  .hanja-meaning {
    font-size: 0.75rem;
  }

  .hanja-divider {
    font-size: 0.9rem;
  }

  .quote-box {
    padding: var(--space-4);
    margin: var(--space-4) 0;
  }

  .quote-box p {
    font-size: 1.1rem;
  }

  .quote-box cite {
    font-size: 0.8rem;
  }

  .example-box {
    padding: var(--space-4);
  }

  .example-box h4 {
    font-size: 0.9rem;
  }

  .example-box li {
    font-size: 0.9rem;
    padding: var(--space-2) 0;
    padding-left: var(--space-4);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .philosophy-item {
    padding: var(--space-4);
  }

  .philosophy-item h4 {
    font-size: 0.95rem;
  }

  .philosophy-item p {
    font-size: 0.8rem;
  }

  .about-cta p {
    font-size: 1.05rem;
  }

  .btn-cta {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    min-height: 52px;
  }
}

/* ========================================
   Footer Links
   ======================================== */

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

@media (max-width: 600px) {
  .footer-links {
    gap: var(--space-3);
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */

.legal-content {
  max-width: 720px;
}

.legal-intro {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  text-align: center;
  line-height: 1.8;
}

.legal-date {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  margin-top: var(--space-2);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.legal-list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-list li::before {
  content: '•';
  position: absolute;
  left: var(--space-2);
  color: var(--gold-primary);
}

.legal-list li strong {
  color: var(--gold-light);
}

.legal-list li a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-list li a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.legal-highlight {
  background: rgba(212, 168, 83, 0.1);
  border-left: 3px solid var(--gold-primary);
  padding: var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-4) 0;
}

.legal-highlight strong {
  color: var(--gold-light);
}

@media (max-width: 600px) {
  .legal-intro {
    font-size: 1rem;
  }

  .legal-list li {
    font-size: 0.9rem;
  }

  .legal-highlight {
    padding: var(--space-3);
    font-size: 0.9rem;
  }
}
