/* ============================================
   LETTER LIST PAGE
   Words starting with a specific letter
   ============================================ */

.letter-list-page {
  min-height: 100vh;
  background: var(--home-page-bg, #f8f9fa);
}

.letter-list-page__main {
  padding: 40px 0 60px;
}

.letter-list-page__main .word-page__container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 1400px;
}


.letter-list-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.letter-list-page__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--home-page-text, #0b1220);
  margin-bottom: 12px;
}

.letter-list-page__title strong {
  color: var(--home-page-blue, #1557ff);
}

.letter-list-page__count {
  font-size: 16px;
  color: var(--home-page-muted, rgba(11,18,32,.6));
  font-weight: 600;
}

/* A-Z Navigation */
.letter-list-page__az-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 16px;
  background: var(--home-page-surface, #ffffff);
  border: 1px solid var(--home-page-border, rgba(20,30,60,.08));
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(10,20,40,.06);
}

.letter-list-page__az-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 8px;
  background: rgba(21,87,255,.08);
  border: 1px solid rgba(21,87,255,.15);
  color: var(--home-page-blue, #1557ff);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: all .15s ease;
}

.letter-list-page__az-link:hover {
  transform: translateY(-1px);
  background: rgba(21,87,255,.12);
  border-color: rgba(21,87,255,.25);
  box-shadow: 0 8px 16px rgba(10,20,40,.08);
}

.letter-list-page__az-link--active {
  background: var(--btn-primary-bg, #2b6de9);
  border-color: var(--btn-primary-border, #245fd0);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(43,109,233,.25);
}

.letter-list-page__az-link--active:hover {
  background: var(--btn-primary-hover-bg, #245fd0);
  border-color: var(--btn-primary-hover-border, #1f53b8);
  transform: translateY(-1px);
}

/* Words List */
.letter-list-page__words {
  margin-bottom: 40px;
}

.letter-list-page__word-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.letter-list-page__word-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--home-page-surface, #ffffff);
  border: 1px solid var(--home-page-border, rgba(20,30,60,.08));
  border-radius: 14px;
  transition: all .12s ease;
}

.letter-list-page__word-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10,20,40,.08);
  border-color: rgba(21,87,255,.18);
}

.letter-list-page__audio-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(21,87,255,.18);
  background: rgba(21,87,255,.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s ease;
  flex-shrink: 0;
}

.letter-list-page__audio-btn:hover {
  background: rgba(21,87,255,.15);
  border-color: rgba(21,87,255,.28);
  transform: translateY(-1px);
}

.letter-list-page__audio-btn i {
  font-size: 16px;
  color: var(--home-page-blue, #1557ff);
  line-height: 1;
}

.letter-list-page__word-link {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--home-page-text, #0b1220);
  text-decoration: none;
  transition: color .12s ease;
}

.letter-list-page__word-link:hover {
  color: var(--home-page-blue, #1557ff);
}

.letter-list-page__phonetic {
  font-size: 14px;
  color: var(--home-page-muted, rgba(11,18,32,.6));
  font-weight: 600;
  font-style: italic;
}

/* Pagination */
.letter-list-page__pagination {
  margin-top: 40px;
}

.letter-list-page__pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.letter-list-page__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--home-page-surface, #ffffff);
  border: 1px solid var(--home-page-border, rgba(20,30,60,.08));
  color: var(--home-page-text, #0b1220);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all .12s ease;
}

.letter-list-page__pagination-link:hover {
  background: rgba(21,87,255,.08);
  border-color: rgba(21,87,255,.18);
  transform: translateY(-1px);
}

.letter-list-page__pagination-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--btn-primary-bg, #2b6de9);
  border: 1px solid var(--btn-primary-border, #245fd0);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.letter-list-page__pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--home-page-muted, rgba(11,18,32,.6));
  font-weight: 700;
}

/* Empty State */
.letter-list-page__empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--home-page-surface, #ffffff);
  border: 1px solid var(--home-page-border, rgba(20,30,60,.08));
  border-radius: 18px;
}

.letter-list-page__empty p {
  font-size: 18px;
  color: var(--home-page-text, #0b1220);
  margin-bottom: 24px;
  font-weight: 600;
}

.letter-list-page__empty strong {
  color: var(--home-page-blue, #1557ff);
}

/* Responsive */
@media (max-width: 768px) {
  .letter-list-page__main {
    padding: 30px 0 40px;
  }

  .letter-list-page__header {
    margin-bottom: 30px;
  }

  .letter-list-page__az-nav {
    padding: 16px;
    gap: 6px;
  }

  .letter-list-page__az-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .letter-list-page__word-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .letter-list-page__word-item {
    padding: 12px 14px;
  }

  .letter-list-page__audio-btn {
    width: 32px;
    height: 32px;
  }

  .letter-list-page__audio-btn i {
    font-size: 14px;
  }

  .letter-list-page__word-link {
    font-size: 14px;
  }

  .letter-list-page__phonetic {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .letter-list-page__title {
    font-size: 28px;
  }

  .letter-list-page__pagination-list {
    gap: 6px;
  }

  .letter-list-page__pagination-link,
  .letter-list-page__pagination-current {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }
}

