/* ============================================================
   HWS Dicționar – Stiluri v2.0
   ============================================================ */

.hws-dict-wrap,
.hws-dict-single-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: #222831;
}

/* ── Hero ── */
.hws-dict-hero {
  background: linear-gradient(135deg, #ffffff, #f8f4eb);
  border: 1px solid rgba(168, 134, 69, 0.18);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.hws-dict-kicker {
  display: inline-block;
  color: #A88645;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  margin-bottom: 10px;
}

.hws-dict-hero h1 {
  margin: 0 0 14px;
  color: #0B1F33;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.25;
}

.hws-dict-hero p {
  line-height: 1.8;
  color: #444;
  font-size: 0.96rem;
  margin: 0;
}

/* ── Căutare ── */
.hws-dict-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0 0 24px;
}

.hws-dict-search input[type="search"] {
  width: 100%;
  border: 1px solid rgba(168, 134, 69, 0.26);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}

.hws-dict-search input[type="search"]:focus {
  border-color: #A88645;
}

.hws-dict-search button {
  border: 1px solid rgba(168, 134, 69, 0.26);
  border-radius: 16px;
  padding: 14px 22px;
  background: #fff;
  color: #0B1F33;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.hws-dict-search button:hover {
  background: #faf7f1;
  border-color: #A88645;
}

/* ── Alfabet ── */
.hws-dict-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hws-dict-alpha-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(168, 134, 69, 0.25);
  background: #fff;
  color: #0B1F33;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hws-dict-alpha-btn:hover {
  background: #faf7f1;
  border-color: #A88645;
  transform: translateY(-1px);
}

.hws-dict-alpha-btn.active {
  background: linear-gradient(135deg, #C6A769, #A88645);
  color: #fff;
  border-color: #A88645;
}

/* ── Secțiuni litere (acordeon) ── */
.hws-dict-letter-section {
  background: #fff;
  border: 1px solid rgba(168, 134, 69, 0.18);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

@keyframes hws-dict-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hws-dict-letter-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(168, 134, 69, 0.15);
}

.hws-dict-letter-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #C6A769, #A88645);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hws-dict-letter-count {
  color: #777;
  font-size: 0.9rem;
}

/* ── Listă termeni ── */
.hws-dict-term-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hws-dict-term-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(168, 134, 69, 0.1);
  transition: background 0.15s;
}

.hws-dict-term-item:last-child {
  border-bottom: none;
}

.hws-dict-term-link {
  display: inline-block;
  color: #0B1F33;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: color 0.15s;
}

.hws-dict-term-link:hover {
  color: #A88645;
}

.hws-dict-term-excerpt {
  margin: 4px 0 0;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Pagina term individual ── */
.hws-dict-single {
  background: linear-gradient(135deg, #ffffff, #f8f4eb);
  border: 1px solid rgba(168, 134, 69, 0.18);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  max-width: 900px;
  margin: 0 auto;
}

.hws-dict-single h1 {
  margin: 6px 0 20px;
  color: #0B1F33;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.hws-dict-single-content {
  color: #333;
  line-height: 1.85;
  font-size: 0.97rem;
}

/* ── Link „aici" inline (shortcode) ── */
.hws-dict-inline-link {
  display: inline-block;
  background: linear-gradient(135deg, #C6A769, #A88645);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 2px 10px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0 2px;
  transition: opacity 0.15s;
}

.hws-dict-inline-link:hover {
  opacity: 0.85;
}

/* ── Referințe încrucișate (meta) ── */
.hws-dict-refs {
  margin-top: 32px;
  padding: 20px 24px;
  background: #f8f4eb;
  border: 1px solid rgba(168, 134, 69, 0.2);
  border-radius: 16px;
}

.hws-dict-refs-title {
  margin: 0 0 14px;
  color: #0B1F33;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hws-dict-refs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hws-dict-refs-list li {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.5;
}

.hws-dict-refs-label {
  font-weight: 700;
  color: #0B1F33;
}

.hws-dict-ref-link {
  display: inline-block;
  background: linear-gradient(135deg, #C6A769, #A88645);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 2px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.hws-dict-ref-link:hover {
  opacity: 0.85;
}

/* ── Footer pagină termen ── */
.hws-dict-single-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 134, 69, 0.15);
}

.hws-dict-author {
  color: #777;
  font-size: 0.88rem;
}

.hws-dict-author a {
  color: #A88645;
  font-weight: 700;
  text-decoration: none;
}

.hws-dict-back {
  display: inline-block;
  border: 1px solid rgba(168, 134, 69, 0.26);
  border-radius: 14px;
  padding: 10px 20px;
  background: #fff;
  color: #0B1F33;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.hws-dict-back:hover {
  background: #faf7f1;
  border-color: #A88645;
}

/* ── Gol ── */
.hws-dict-empty {
  background: #fff;
  border: 1px dashed rgba(168, 134, 69, 0.45);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .hws-dict-wrap,
  .hws-dict-single-wrap {
    padding: 24px 14px;
  }

  .hws-dict-hero,
  .hws-dict-single {
    padding: 24px;
    border-radius: 18px;
  }

  .hws-dict-letter-section {
    padding: 20px;
  }

  .hws-dict-search {
    grid-template-columns: 1fr;
  }

  .hws-dict-alpha-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .hws-dict-single-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
