/* Home page and word lists (/, /browse/<letter>, /new). Classes prefixed yh- ("yaasalu home");
   the card styles match the word page (word.css). Mobile first; two columns from 992px. */

.yh {
  --yh-text: #1f2328;
  --yh-muted: #656d76;
  --yh-line: #e3e6ea;
  --yh-soft: #f6f8f7;
  --yh-green: #198754;
  --yh-green-dark: #146c43;
  --yh-green-soft: #e8f3ee;
  color: var(--yh-text);
  font-family: "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 1120px;
  margin: 1rem auto 0;
  display: flex; flex-direction: column; gap: 1.75rem;
}
.yh a { color: var(--yh-green-dark); text-decoration: none; }
.yh-h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.yh-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
.yh-more { font-size: 0.9rem; font-weight: 600; }
.yh-sub { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--yh-muted); }

/* Feature card: word of the day */
.yh-feature {
  border: 1px solid var(--yh-line); border-radius: 14px; padding: 1.1rem 1.15rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.3rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.yh-feature-top { display: flex; justify-content: space-between; align-items: center; }
.yh-badge { font-size: 0.8rem; font-weight: 600; color: var(--yh-green-dark); background: var(--yh-green-soft); padding: 0.15rem 0.65rem; border-radius: 999px; }
.yh .yh-feature-word { font-size: 2.1rem; font-weight: 700; line-height: 1.2; color: var(--yh-text); }
.yh-feature-sub { margin: 0; font-size: 0.9rem; color: var(--yh-muted); }
.yh-feature-en { margin: 0.1rem 0 0; }
.yh-feature-en span { color: var(--yh-muted); }
.yh-feature-meaning { margin: 0.6rem 0 0; font-size: 1.4rem; line-height: 1.5; white-space: pre-line; }
.yh-feature-example {
  margin: 0.25rem 0 0; padding: 0.5rem 0.8rem; border-left: 3px solid var(--yh-green);
  background: var(--yh-soft); border-radius: 0 8px 8px 0; font-size: 1rem; line-height: 1.6; white-space: pre-line;
}
.yh-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; font-size: 0.9rem; color: var(--yh-muted); }
.yh-like { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }
.yh-like .bagundi-button { font-size: 1.15rem; cursor: pointer; }
.yh-like .bagundi-button.favorited { color: #0d6efd; }
.yh .fas[data-count]:after { content: none; }
.yh-icon-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--yh-muted); font-size: 1.05rem; }
.yh-pill-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.9rem;
  border: 1px solid var(--yh-line); border-radius: 999px; background: #fff; color: var(--yh-text); font-size: 0.9rem;
}

/* Call to action: add a word */
.yh-cta {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--yh-green-dark); color: #fff;
  padding: 1.35rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.yh-cta-mark { position: absolute; right: -36px; top: -30px; width: 150px; height: 150px; opacity: 0.12; pointer-events: none; }
.yh-cta h2 { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.35; color: #fff; }
.yh-cta p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #e8f3ee; }
.yh-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; margin-top: 0.25rem;
  border-radius: 12px; background: #fff; color: var(--yh-green-dark) !important; font-size: 1.05rem; font-weight: 700; text-decoration: none;
}
.yh-cta-btn:hover { background: #f1f8f4; }
.yh-cta-note { font-size: 0.8rem; color: #cfe6da; text-align: center; }

/* Compact rows: word, everyday spelling, meaning only */
.yh-rows { display: flex; flex-direction: column; }
.yh .yh-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid #eef0f2; color: var(--yh-text); }
.yh-row-main { display: flex; flex-direction: column; min-width: 0; }
.yh-row-word { font-size: 1.05rem; font-weight: 600; }
.yh-row-word span { font-size: 0.8rem; font-weight: 400; color: var(--yh-muted); font-family: system-ui, sans-serif; }
.yh-row-meaning { font-size: 0.95rem; color: #3d444d; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yh-row-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: 0.75rem; color: var(--yh-muted); text-align: right; }

/* Requests */
.yh-request { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid #eef0f2; }
.yh-request-name { font-size: 1.05rem; font-weight: 600; color: var(--yh-text) !important; }
.yh-request-meta { display: block; font-size: 0.75rem; color: var(--yh-muted); }
.yh .yh-answer {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  border: 1px solid var(--yh-green); border-radius: 999px; font-size: 0.9rem; font-weight: 600;
}

/* Chips: most liked */
.yh-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.yh .yh-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.75rem; border: 1px solid var(--yh-line); border-radius: 999px; color: var(--yh-text); font-size: 0.95rem; }
.yh-chip span { font-size: 0.75rem; color: var(--yh-muted); }
.yh .yh-chip:hover { border-color: var(--yh-green); }

/* Region tiles and the letter grid */
.yh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.yh .yh-tile { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--yh-line); border-radius: 12px; background: var(--yh-soft); color: var(--yh-text); }
.yh-tile strong { font-size: 1rem; font-weight: 600; }
.yh-tile span { font-size: 0.8rem; color: var(--yh-muted); }
.yh .yh-tile:hover { border-color: var(--yh-green); }
.yh-letters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.yh .yh-letter { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--yh-line); border-radius: 10px; color: var(--yh-text); font-size: 1.05rem; }
.yh .yh-letter:hover, .yh .yh-letter.active { border-color: var(--yh-green); background: var(--yh-green-soft); color: var(--yh-green-dark); }

.yh-box { padding: 0; }

/* On list pages the letter bar is one swipeable row on phones */
@media (max-width: 767.98px) {
  .yh-letters-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .yh-letters-scroll::-webkit-scrollbar { display: none; }
  .yh-letters-scroll .yh-letter { flex: 0 0 auto; }
}
.yh-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.yh-list-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.yh-count { color: var(--yh-muted); font-size: 0.95rem; }

@media (min-width: 768px) {
  .yh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Desktop: two columns on top, three below */
@media (min-width: 992px) {
  .yh-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
  .yh-cta { justify-content: center; padding: 1.9rem 1.75rem; }
  .yh-cta h2 { font-size: 1.85rem; }
  .yh-cta-btn { align-self: flex-start; padding: 0 1.75rem; }
  .yh-cta-note { text-align: left; }
  .yh-feature { padding: 1.5rem 1.6rem 0.9rem; }
  .yh .yh-feature-word { font-size: 2.75rem; }
  .yh-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  .yh-box { border: 1px solid var(--yh-line); border-radius: 14px; padding: 1.1rem 1.25rem; }
  .yh-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .yh-top, .yh-cols { display: flex; flex-direction: column; gap: 1.75rem; }
}
