/* Stiluri dedicate paginii /dictionar-vca (complementare /css/blog.css).
   CSP-safe: zero inline styles. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dict-controls {
  margin: 24px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dict-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dict-search-input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dict-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.14);
}

.dict-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dict-cat-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dict-cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dict-cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.dict-status {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.dict-section {
  margin: 28px 0 32px;
}

.dict-section[hidden] {
  display: none;
}

.dict-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
  margin: 0 0 14px;
}

.dict-section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.dict-section-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.dict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.dict-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dict-item[hidden] {
  display: none;
}

.dict-term {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.dict-def {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.dict-empty {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--surface);
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

.dict-empty[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .dict-grid {
    grid-template-columns: 1fr;
  }
}
