/* ==========================================================================
   Vocabulary section — shared stylesheet
   ========================================================================== */

/* ── List page hero ── */
.vocab-hero {
  background: linear-gradient(145deg, #1a1410 0%, #0a0806 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vocab-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8rem, 22vw, 14rem);
  color: rgba(255,255,255,0.03);
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}
.vocab-hero .container { position: relative; }
.vocab-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.vocab-hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
}
.vocab-hero-jp {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #e8c49a;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.vocab-hero-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Word table ── */
.vocab-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.vocab-table th,
.vocab-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.vocab-table thead th {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}
.vocab-table tbody tr:last-child td { border-bottom: none; }
.vocab-table tbody tr:hover { background: var(--color-bg-alt); }
.vocab-table td.v-jp {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.vocab-table td.v-romaji {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}
.vocab-table td.v-meaning {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Index page ── */
.vocab-index-hero {
  background: linear-gradient(145deg, #1a1410 0%, #0a0806 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.vocab-index-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.vocab-index-hero h1 em {
  font-style: normal;
  color: #e8c49a;
}
.vocab-index-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.vocab-index-body { padding: 3.5rem 0 5rem; }

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.vocab-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vocab-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vocab-card__jp {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
  font-weight: 700;
}
.vocab-card__title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-primary);
}
.vocab-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}
.vocab-card__count {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
