/**
 * 사주 사전 (Glossary) 전용 스타일
 * 사주 사이트 톤 통일 (다크 + 골드)
 */

.glossary-page {
  padding: 100px 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { color: var(--white); }

/* Hero */
.glossary-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.glossary-hero h1 {
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.glossary-subtitle {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.glossary-intro {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Grid (메인 페이지) */
.glossary-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 3rem 0;
}
.glossary-cat-card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.glossary-cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.15);
}
.glossary-cat-card h2 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.glossary-cat-card .cat-title {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.glossary-cat-card .cat-desc {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.glossary-cat-card .cat-count {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Items List (카테고리 페이지) */
.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.glossary-item-card {
  background: var(--card-bg);
  border: 1px solid rgba(123, 104, 238, 0.18);
  border-radius: 12px;
  padding: 1.3rem 1.3rem 1.1rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.glossary-item-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.glossary-item-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.glossary-item-card .item-symbol,
.glossary-item-card .item-element {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.glossary-item-card .item-summary {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0.6rem 0;
}
.glossary-item-card .item-link {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.4rem;
}

/* Detail Page */
.glossary-detail {
  max-width: 750px;
  margin: 0 auto;
}
.glossary-detail-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.glossary-detail-header h1 {
  color: var(--gold);
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.glossary-detail-header .symbol {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.glossary-detail-header .element-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  padding: 0.3rem 0.9rem;
  border-radius: 16px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.glossary-content {
  margin: 2rem 0;
}
.content-section {
  margin-bottom: 2rem;
}
.content-section h2 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--gold);
}
.content-section p {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.85;
  opacity: 0.92;
}

/* Related Items */
.related-items {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(123, 104, 238, 0.2);
}
.related-items h2 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.related-card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* CTA */
.glossary-cta {
  text-align: center;
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
}
.glossary-cta p {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  opacity: 0.92;
}

/* Disclaimer */
.disclaimer {
  margin: 2rem 0 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
}
.disclaimer p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

/* 모바일 */
@media (max-width: 700px) {
  .glossary-page { padding: 90px 1rem 2rem; }
  .glossary-hero h1 { font-size: 1.7rem; }
  .glossary-detail-header h1 { font-size: 1.8rem; }
  .glossary-categories,
  .glossary-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
