/* ==========================================================================
   List Page Styles - Elite Baby Names
   Modern 2026 Design: Glassmorphism, subtle animations, premium feel
   ========================================================================== */

/* ---------- Global Overflow Fix ---------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------- Base Layout ---------- */
.list-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  overflow-x: hidden;
  width: 100%;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--cream, #FFFBF9);
  border-bottom: 1px solid rgba(255,141,170,0.15);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--charcoal, #111827);
}

.brand .logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF8DAA, #e57a98);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand .logo svg {
  width: 36px;
  height: 36px;
}

.brand-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal, #111827);
  margin: 0;
  line-height: 1.2;
}

.brand p {
  font-size: 0.75rem;
  color: #6B7280;
  margin: 0;
}

.back-btn {
  padding: 0.5rem 1rem;
  background: #FFF6F8;
  border: 1px solid rgba(255,141,170,0.3);
  color: #e57a98;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #FF8DAA;
  border-color: #FF8DAA;
  color: white;
}

.list-page h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #e94560 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ---------- Breadcrumb (matches name-detail-v2 style) ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.breadcrumbs a {
  color: #e94560;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #ff6b8a;
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: #64748b;
  opacity: 0.5;
}

.breadcrumbs span[aria-current="page"] {
  color: #1e293b;
  font-weight: 500;
}

/* ---------- Table of Contents ---------- */
.toc {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toc h2 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc a:hover {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.25);
}

/* ---------- Intro Section ---------- */
.intro {
  margin: 0 0 3rem;
  line-height: 1.8;
}

.intro p {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.intro p:first-child {
  font-size: 1.2rem;
  color: #334155;
  font-weight: 450;
  line-height: 1.7;
}

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

/* ---------- Quick Stats ---------- */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e94560 100%);
  border-radius: 24px;
  margin: 2.5rem 0;
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.25),
    0 8px 16px rgba(233, 69, 96, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.quick-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stat {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.stat strong {
  display: block;
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Featured Picks ---------- */
.featured-picks {
  margin: 3rem 0;
}

.featured-picks h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-picks h2::before {
  content: '✨';
  font-size: 1.25rem;
}

a.featured-pick {
  display: block;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

a.featured-pick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #e94560 0%, #f472b6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

a.featured-pick:hover {
  border-color: #fce7f3;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(233, 69, 96, 0.08);
  transform: translateY(-4px);
}

a.featured-pick:hover::before {
  opacity: 1;
}

a.featured-pick h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

a.featured-pick:hover h3 {
  color: #e94560;
}

.pick-meta {
  font-size: 0.8rem;
  color: #e94560;
  font-weight: 600;
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 100px;
}

a.featured-pick > p:last-child {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Names Table ---------- */
.names-table-section {
  margin: 3rem 0;
  overflow-x: hidden;
}

.names-table-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
}

.names-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  table-layout: fixed;
}

.names-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.names-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

/* Column widths */
.names-table th:nth-child(1),
.names-table td:nth-child(1) {
  width: 30%;
}

.names-table th:nth-child(2),
.names-table td:nth-child(2) {
  width: 45%;
}

.names-table th:nth-child(3),
.names-table td:nth-child(3) {
  width: 25%;
}

.names-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.names-table td:nth-child(2) {
  white-space: normal;
  word-break: break-word;
}

.names-table tbody tr {
  transition: all 0.2s ease;
}

.names-table tbody tr:hover {
  background: linear-gradient(90deg, #fdf2f8 0%, #fff 100%);
}

.names-table tbody tr:last-child td {
  border-bottom: none;
}

.names-table a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.names-table a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e94560 0%, #f472b6 100%);
  transition: width 0.3s ease;
}

.names-table a:hover {
  color: #e94560;
}

.names-table a:hover::after {
  width: 100%;
}

/* Hide less important columns on mobile */
@media (max-width: 768px) {
  .names-table th:nth-child(4),
  .names-table td:nth-child(4),
  .names-table th:nth-child(5),
  .names-table td:nth-child(5),
  .names-table th:nth-child(6),
  .names-table td:nth-child(6) {
    display: none;
  }
}

/* ---------- Why Choose Section ---------- */
.why-choose {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 242, 248, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 69, 96, 0.1);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.why-choose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
  position: relative;
}

.why-choose p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.75;
  margin: 0;
  position: relative;
}

/* ---------- Related Searches ---------- */
.related-searches {
  margin: 3rem 0;
}

.related-searches h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
}

.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-chips li a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.related-chips li a:hover {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.25);
}

/* ---------- FAQs ---------- */
.faqs {
  margin: 3rem 0;
}

.faqs h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faqs h2::before {
  content: '💡';
  font-size: 1.25rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  margin: 0 0 0.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: #fce7f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.faq-item[open] {
  border-color: #f9a8d4;
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.1);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  background: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '';
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e94560' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.faq-item[open] summary::before {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: #fefefe;
}

.faq-item > p,
.faq-item .faq-answer {
  padding: 0 1.5rem 1.5rem 4rem;
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.75;
}

/* ---------- Related Lists ---------- */
.related-lists {
  margin: 3rem 0;
}

.related-lists h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
}

.related-lists ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-lists a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-lists a::before {
  content: '';
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e94560' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.25s ease;
}

.related-lists a:hover {
  border-color: #fce7f3;
  background: #fff;
  color: #e94560;
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.related-lists a:hover::before {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}


/* ==========================================================================
   Hub Page Specific Styles
   ========================================================================== */

.hub-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  overflow-x: hidden;
}

.hub-page h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #e94560 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}

.hub-page .intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.hub-page .intro p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.hub-page .intro p:first-child {
  font-size: 1.2rem;
  color: #475569;
}

/* Browse Categories Section */
.browse-categories {
  margin: 3rem 0;
}

.browse-categories h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Browse Letters Section */
.browse-letters {
  margin: 3rem 0;
  text-align: center;
}

.browse-letters h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.category-card {
  list-style: none;
}

.category-card a {
  display: block;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.category-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e94560 0%, #f472b6 50%, #667eea 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card a:hover {
  border-color: #fce7f3;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(233, 69, 96, 0.08);
  transform: translateY(-6px);
}

.category-card a:hover::before {
  opacity: 1;
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.category-card a:hover h3 {
  color: #e94560;
}

.category-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.category-card .count {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e94560;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
}

/* Letter Grid for Hub Pages */
.letter-nav {
  margin: 2.5rem 0;
}

.letter-nav h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
  text-align: center;
}

.letter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.letter-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-grid a:hover {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .list-page {
    padding: 0 1rem 2.5rem;
  }
  
  .list-page h1 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  /* Hub page mobile */
  .hub-page {
    padding: 0 1rem 2.5rem;
  }
  
  .hub-page h1 {
    font-size: 1.75rem;
    text-align: left;
  }
  
  .hub-page .intro {
    text-align: left;
  }
  
  .browse-categories h2,
  .browse-letters h2 {
    text-align: left;
    font-size: 1.25rem;
  }
  
  /* TOC stacks vertically on mobile */
  .toc {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
  }
  
  .toc ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .toc a {
    justify-content: center;
  }
  
  /* Intro */
  .intro p {
    font-size: 1rem;
  }
  
  .intro p:first-child {
    font-size: 1.1rem;
  }
  
  /* Quick Stats */
  .quick-stats {
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 20px;
  }
  
  .stat strong {
    font-size: 2.25rem;
  }
  
  /* Featured Picks */
  .featured-pick {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
  }
  
  .featured-pick h3 {
    font-size: 1.15rem;
  }
  
  /* Table */
  .names-table th,
  .names-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .names-table th {
    font-size: 0.7rem;
  }
  
  /* Why Choose */
  .why-choose {
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
  }
  
  /* FAQs */
  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .faq-item > p,
  .faq-item .faq-answer {
    padding: 0 1.25rem 1.25rem 3.5rem;
    font-size: 0.9rem;
  }
  
  /* Category Grid */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-card a {
    padding: 1.5rem;
  }
  
  /* Related Lists */
  .related-lists ul {
    grid-template-columns: 1fr;
  }
  
  /* Letter Grid */
  .letter-grid a {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .list-page,
  .hub-page {
    padding: 0 0.75rem 2rem 0.75rem;
  }
  
  .list-page h1,
  .hub-page h1 {
    font-size: 1.5rem;
  }
  
  .breadcrumbs {
    font-size: 0.75rem;
    padding: 1rem;
    max-width: 100%;
  }
  
  .toc {
    padding: 1rem 1.25rem;
  }
  
  .quick-stats {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .stat strong {
    font-size: 1.75rem;
  }
  
  .stat span {
    font-size: 0.75rem;
  }
  
  .featured-picks h2,
  .names-table-section h2,
  .faqs h2,
  .browse-categories h2,
  .browse-letters h2 {
    font-size: 1.2rem;
  }
  
  .featured-pick {
    border-radius: 14px;
    padding: 1.25rem;
  }
  
  .names-table {
    font-size: 0.85rem;
    border-radius: 12px;
  }
  
  .names-table th,
  .names-table td {
    padding: 0.625rem 0.75rem;
  }
  
  /* Adjust column widths for mobile */
  .names-table th:nth-child(1),
  .names-table td:nth-child(1) {
    width: 35%;
  }
  
  .names-table th:nth-child(2),
  .names-table td:nth-child(2) {
    width: 40%;
  }
  
  .names-table th:nth-child(3),
  .names-table td:nth-child(3) {
    width: 25%;
  }
  
  .names-table-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .related-chips li a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .hub-page .intro p {
    font-size: 1rem;
  }
  
  .category-card a {
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .category-card h3 {
    font-size: 1.05rem;
  }
  
  .letter-grid {
    gap: 0.5rem;
  }
  
  .letter-grid a {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .list-page {
    max-width: 100%;
    padding: 0;
  }
  
  .toc,
  .quick-stats,
  .related-searches,
  .related-lists {
    display: none;
  }
  
  .featured-pick,
  .faq-item,
  .category-card a {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .names-table {
    box-shadow: none;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .featured-pick,
  .category-card a,
  .faq-item,
  .related-chips li a,
  .related-lists a,
  .letter-grid a,
  .toc a {
    transition: none;
    transform: none !important;
  }
}

/* Focus states for keyboard navigation */
.toc a:focus,
.featured-pick h3 a:focus,
.names-table a:focus,
.related-chips li a:focus,
.related-lists a:focus,
.category-card a:focus,
.letter-grid a:focus,
.faq-item summary:focus {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

.faq-item summary:focus {
  outline-offset: -2px;
}

/* ==========================================================================
   Table Wrapper for Horizontal Scroll
   ========================================================================== */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
  border-radius: 16px;
}

.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #e94560 0%, #f472b6 100%);
  border-radius: 4px;
}

/* ==========================================================================
   View All Note
   ========================================================================== */

.view-all-note {
  text-align: center;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 14px;
  font-size: 0.95rem;
  color: #64748b;
}

.view-all-note a {
  color: #e94560;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-all-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a:hover {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #f9a8d4;
  color: #e94560;
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Name Count Badge
   ========================================================================== */

.name-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: #e94560;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.name-count::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #e94560;
  border-radius: 50%;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.loading-names {
  text-align: center;
  padding: 4rem 1rem;
}

.loading-names .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #fce7f3;
  border-top-color: #e94560;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-names p {
  color: #64748b;
  font-size: 0.95rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.no-results {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
  border-radius: 24px;
  margin: 2.5rem 0;
}

.no-results h3 {
  font-size: 1.35rem;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.no-results p {
  color: #64748b;
  margin: 0;
  font-size: 1rem;
}

/* ==========================================================================
   Site Header & Footer
   ========================================================================== */

.list-page ~ .site-footer,
.hub-page ~ .site-footer,
.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  width: 100%;
  overflow: hidden;
}

.site-footer p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}


/* ==========================================================================
   UX IMPROVEMENTS - March 2026
   ========================================================================== */

/* ---------- Sticky TOC on Scroll ---------- */
.toc.sticky {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 880px;
  width: calc(100% - 2.5rem);
  margin: 0;
  z-index: 100;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.toc.sticky h2 {
  display: none;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.35);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.45);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

/* ---------- Featured Picks Visual Hierarchy ---------- */
a.featured-pick:first-child {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
  border: 2px solid #f9a8d4;
  position: relative;
}

a.featured-pick:first-child::after {
  content: '👑 Editor\'s Choice';
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

a.featured-pick:nth-child(2),
a.featured-pick:nth-child(3) {
  border-left: 3px solid #f9a8d4;
}

/* ---------- Quick Stats as Links ---------- */
.quick-stats .stat {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.quick-stats .stat:hover {
  transform: scale(1.05);
}

.quick-stats a.stat {
  text-decoration: none;
  color: inherit;
}

/* ---------- Letter Quick Jump ---------- */
.letter-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid #f1f5f9;
}

.letter-jump a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.letter-jump a:hover,
.letter-jump a.active {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.letter-jump a.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- Inline Search Box ---------- */
.inline-search {
  position: relative;
  margin: 1.5rem 0;
}

.inline-search input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 100px;
  background: #fff;
  color: #1e293b;
  transition: all 0.25s ease;
}

.inline-search input:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.inline-search input::placeholder {
  color: #94a3b8;
}

.inline-search::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ---------- Card Grid Alternative to Table ---------- */
.names-card-grid {
  display: none;
}

@media (max-width: 640px) {
  .names-table-section .table-wrapper {
    display: none;
  }
  
  .names-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .name-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .name-card:hover {
    border-color: #fce7f3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }
  
  .name-card .name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin: 0 0 0.25rem;
  }
  
  .name-card .meaning {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .name-card .origin {
    font-size: 0.7rem;
    color: #e94560;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
  }
}

/* ---------- Progress Indicator ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #e94560 0%, #f472b6 50%, #667eea 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ---------- Section Anchors with Offset ---------- */
.list-page section[id] {
  scroll-margin-top: 100px;
}

/* ---------- Improved Table Row Hover ---------- */
.names-table tbody tr:hover {
  background: linear-gradient(90deg, #fdf2f8 0%, #fff 100%);
}

.names-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #e94560;
}

/* ---------- Floating Action Buttons ---------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}

.floating-actions .fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.floating-actions .fab-primary {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  color: #fff;
}

.floating-actions .fab-secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.floating-actions .fab:hover {
  transform: scale(1.1);
}

.floating-actions .fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  
  .floating-actions .fab {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Skeleton Loading States ---------- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

/* ---------- Toast Notifications ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

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

.toast.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ---------- Improved Breadcrumb ---------- */
.breadcrumbs {
  position: relative;
}

.breadcrumbs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

/* ---------- Name Popularity Indicator ---------- */
.popularity-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popularity-bar .bar {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.popularity-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e94560 0%, #f472b6 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.popularity-bar .label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* ---------- Comparison Feature Hint ---------- */
.compare-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #1e40af;
}

.compare-hint svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Save/Favorite Button on Cards ---------- */
.save-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

a.featured-pick:hover .save-btn {
  opacity: 1;
}

.save-btn:hover {
  background: #fdf2f8;
  border-color: #f9a8d4;
}

.save-btn.saved {
  background: linear-gradient(135deg, #e94560 0%, #f472b6 100%);
  border-color: transparent;
  color: #fff;
  opacity: 1;
}

.save-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Micro-copy Improvements ---------- */
.helper-text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.helper-text svg {
  width: 14px;
  height: 14px;
}

/* ---------- Section Dividers ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
  margin: 3rem 0;
}

/* ---------- Improved Focus for Accessibility ---------- */
*:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 3px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0 0 12px 12px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}
