/* ---------- JLPT 레벨별 인덱스 페이지 ---------- */

.level-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: #333;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.85;
}

.level-index .page-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.level-index .page-title .level-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #ec174f;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.level-index .page-title h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.5rem;
}

.level-index .page-title p {
  color: #666;
  font-size: 1.05rem;
  margin: 0;
}

.level-index section {
  margin-bottom: 2.5rem;
}

.level-index h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ec174f;
  display: inline-block;
}

.level-index p {
  color: #444;
  margin: 0 0 1rem;
}

.level-index .word-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.level-index .word-list li {
  margin: 0;
}

.level-index .word-list a {
  display: block;
  padding: 1rem 1.25rem;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.level-index .word-list a:hover {
  border-color: #ec174f;
  background: #fff;
  text-decoration: none;
}

.level-index .word-list .wl-word {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.level-index .word-list .wl-reading {
  color: #888;
  font-size: 0.95rem;
  margin-left: 0.4rem;
}

.level-index .word-list .wl-meaning {
  display: block;
  color: #555;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.level-index .empty-state {
  padding: 2rem 1.25rem;
  background: #fafbfc;
  border: 1px dashed #d8dde3;
  border-radius: 12px;
  text-align: center;
  color: #888;
}

.level-index .empty-state strong {
  color: #555;
}

.level-index .level-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef0f3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.level-index .level-nav a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #eef0f3;
  border-radius: 999px;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.level-index .level-nav a.current,
.level-index .level-nav a:hover {
  background: #ec174f;
  color: #fff;
  border-color: #ec174f;
  text-decoration: none;
}

.level-index .cta-bar {
  margin-top: 3rem;
  background: linear-gradient(135deg, #ec174f, #c81144);
  color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.level-index .cta-bar h3 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.level-index .cta-bar p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.level-index .cta-bar .store-buttons {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.level-index .cta-bar .store-buttons img {
  height: 42px;
  width: auto;
}
