/* ============================================================================
 * HARFE GÖRE KELİME LİSTESİ SAYFALARI (wordlists.css)
 * ----------------------------------------------------------------------------
 * /kelimeler/... ve /words/... sayfaları (bkz. wordListPages.js). content.css'in
 * renk değişkenlerini ve temel tipografisini kullanır; burada sadece bu
 * sayfalara özel parçalar var: maskot balonu, kelime çipleri, harf şeridi,
 * harf kutucukları ve "kopyalandı" bildirimi.
 * ==========================================================================*/

/* --- Behlül + konuşma balonu ------------------------------------------- */
.wl-mascot {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 10px 0 18px;
}
.wl-mascot img {
  flex: none;
  width: 72px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  animation: wl-bob 3.2s ease-in-out infinite;
}
.wl-bubble {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #fff;
  color: #2A1F4E;
  border-radius: 18px 18px 18px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.wl-bubble strong { color: var(--primary); }
.wl-bubble::before {
  content: "";
  position: absolute;
  left: -9px;
  bottom: 8px;
  border-width: 8px 12px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
@keyframes wl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Kısa istatistikler ---------------------------------------------- */
.wl-stats {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-stats li {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.wl-stats strong { color: var(--accent-amber); }

.wl-legend { font-size: 0.88rem; color: var(--text-faint); margin: 0 0 6px; }
.wl-legend .ok { color: var(--accent-mint); font-weight: 800; }

h2 small, h3 small, h4 small { color: var(--text-faint); font-weight: 600; font-size: 0.75em; }

/* --- Kelime çipleri ------------------------------------------------------ */
.wl-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-chips li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--primary-light); background: var(--bg-card-soft); transform: translateY(-1px); }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.chip.copied { border-color: var(--accent-mint); background: rgba(63, 221, 191, 0.14); }
.chip .ok {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-mint);
  color: #10302A;
  font-size: 0.72rem;
  font-weight: 900;
}

/* Anlamlı isim kartları */
.wl-meanings {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.wl-meanings li {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.wl-meanings .chip { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 1.15rem; }
.wl-meanings .chip:hover { transform: none; color: var(--accent-mint); }
.wl-meanings p { margin: 6px 0 0; font-size: 0.94rem; }
.wl-gender {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  vertical-align: 2px;
}
.wl-gender-f { background: rgba(255, 107, 107, 0.16); color: #FF9C9C; }
.wl-gender-m { background: rgba(108, 92, 231, 0.25); color: #B7AEFF; }

/* --- Oyun ipucu ----------------------------------------------------------- */
.wl-tip {
  margin: 26px 0 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(108, 92, 231, 0.32), rgba(63, 221, 191, 0.12));
  border: 1px solid rgba(139, 127, 240, 0.45);
}
.wl-tip p { margin: 0 0 14px; }
.wl-tip strong { color: var(--accent-amber); }

/* --- Harf şeridi --------------------------------------------------------- */
.wl-strip {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wl-strip li { margin: 0; }
.wl-strip a, .wl-strip .current {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.wl-strip a:hover { border-color: var(--accent-mint); color: var(--accent-mint); }
.wl-strip a.thin { border-style: dashed; color: var(--text-muted); }
.wl-strip .current { background: var(--primary); border-color: var(--primary-light); box-shadow: 0 3px 0 var(--primary-dim); }

/* --- Kategori sayfası: harf kutucukları --------------------------------- */
.wl-tiles {
  list-style: none;
  padding: 0;
  margin: 18px 0 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.wl-tiles li { margin: 0; }
.wl-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.12s, border-color 0.12s;
}
.wl-tile:hover { transform: translateY(-2px); border-color: var(--primary-light); }
.wl-tile.thin { border-style: dashed; }
.wl-tile-letter { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent-amber); }
.wl-tile-count { margin-top: 4px; font-size: 0.82rem; font-weight: 800; color: var(--accent-mint); }
.wl-tile-sample { margin-top: 2px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.wl-thin { scroll-margin-top: 76px; }
.wl-thin h3 { margin-top: 20px; }
.wl-thin h4 { font-family: var(--font-display); color: var(--text-primary); margin: 10px 0 6px; font-size: 1rem; }

/* --- Ana liste sayfası ---------------------------------------------------- */
.wl-cats a { display: flex; flex-direction: column; }
.wl-cat-emoji { font-size: 1.6rem; line-height: 1.2; margin-bottom: 2px; }

.wl-letter-index { display: grid; gap: 4px; }
.wl-letter-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 76px;
}
.wl-letter-row h3 { margin: 0; font-size: 1.6rem; color: var(--accent-amber); }
.wl-letter-row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wl-letter-row li { margin: 0; }
.wl-letter-row a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}
.wl-letter-row a:hover { border-color: var(--accent-mint); }

.wl-langswitch { margin-top: 26px; font-size: 0.92rem; }

/* --- "Kopyalandı" bildirimi ---------------------------------------------- */
.wl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-mint);
  color: #10302A;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s, transform 0.18s;
}
.wl-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .wl-mascot img { width: 58px; }
  .wl-bubble { font-size: 0.94rem; padding: 10px 13px; }
  .chip { font-size: 0.95rem; padding: 7px 13px; }
  .wl-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wl-mascot img { animation: none; }
}
