/* ─── Dictionary W11 Fluent — هماهنگ با مرکز ابزار ISC ─── */

body.isc-body .site-shell.dict-w11-page,
body.isc-body .site-shell.utilities-converter-page.dict-w11-page {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

body.isc-body .site-shell.dict-w11-page .site-main,
body.isc-body .site-shell.utilities-converter-page.dict-w11-page .site-main {
  max-width: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 40%, #fff 100%);
}

.ut-hub-page--dictionary {
  --ut-tools-subnav-h: 3.25rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--isc-header-h, 6.5rem));
}

.ut-hub-page--dictionary .dict-w11 {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1rem 2rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ut-hub-page--dictionary .dict-w11 {
    padding: 1.25rem 1.5rem 2.5rem;
  }
}

@media (min-width: 1280px) {
  .ut-hub-page--dictionary .dict-w11 {
    padding: 1.5rem 2rem 3rem;
  }
}

.dict-w11__ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dict-w11__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.32;
}

.dict-w11__orb--blue {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -60px;
  background: #0078d4;
}

.dict-w11__orb--violet {
  width: 220px;
  height: 220px;
  bottom: 80px;
  left: -40px;
  background: #7c3aed;
}

.dict-w11 > *:not(.dict-w11__ambient) {
  position: relative;
  z-index: 1;
}

.dict-w11-hero {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .dict-w11-hero {
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
  }
}

.dict-w11-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0078d4;
  margin-bottom: 0.35rem;
}

.dict-w11-hero__title {
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

@media (min-width: 768px) {
  .dict-w11-hero__title {
    font-size: 1.65rem;
  }
}

@media (min-width: 1024px) {
  .dict-w11-hero__title {
    font-size: 2rem;
  }
}

.dict-w11-hero__lead {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #475569;
  max-width: 42rem;
  margin: 0;
}

.dict-w11-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dict-w11-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dict-w11-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 120, 212, 0.08);
  color: #106ebe;
  border: 1px solid rgba(0, 120, 212, 0.12);
}

.dict-w11-chip--warn {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.dict-w11-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .dict-w11-card {
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
  }
}

.dict-w11-search__dir {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.dict-w11-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dict-w11-dir:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.dict-w11-dir.is-active {
  background: linear-gradient(135deg, #0078d4, #106ebe);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.28);
}

.dict-w11-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.dict-w11-search__icon {
  position: absolute;
  right: 1rem;
  color: #94a3b8;
  pointer-events: none;
  font-size: 1.05rem;
}

.dict-w11-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 1rem;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dict-w11-search__input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.dict-w11-search__clear {
  position: absolute;
  left: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dict-w11-search__clear:hover {
  background: #e2e8f0;
  color: #334155;
}

.dict-w11-search__hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.6;
}

.dict-w11-results {
  margin-bottom: 1rem;
}

.dict-w11-results__meta {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.dict-w11-results__dir-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(0, 120, 212, 0.1);
  color: #0078d4;
  font-size: 0.72rem;
}

.dict-w11-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dict-w11-entry {
  border-radius: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  outline: none;
}

.dict-w11-entry:hover,
.dict-w11-entry.is-focused {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
  border-color: rgba(0, 120, 212, 0.25);
}

.dict-w11-entry.is-focused {
  transform: translateY(-1px);
}

.dict-w11-entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.dict-w11-entry__word {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: IRANSansX, Tahoma, sans-serif;
}

.dict-w11-entry__pos,
.dict-w11-entry__sense {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

.dict-w11-entry__pos {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.dict-w11-entry__sense {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.dict-w11-entry__copy {
  margin-inline-start: auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dict-w11-entry__copy:hover,
.dict-w11-entry__copy.is-copied {
  background: rgba(0, 120, 212, 0.1);
  border-color: rgba(0, 120, 212, 0.3);
  color: #0078d4;
}

.dict-w11-entry__translation {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: #334155;
}

.dict-w11-mark {
  background: rgba(251, 191, 36, 0.35);
  color: inherit;
  border-radius: 0.2rem;
  padding: 0 0.1rem;
}

.dict-w11-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 1rem;
  border: 1px dashed #cbd5e1;
  background: rgba(255, 255, 255, 0.5);
  color: #64748b;
}

.dict-w11-empty--idle {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.65);
}

.dict-w11-empty__ico {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dict-w11-empty__sub {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.dict-w11-empty__samples {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.dict-w11-sample {
  border: none;
  background: none;
  color: #0078d4;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.15rem 0.25rem;
  min-height: 44px;
}

.dict-w11-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.dict-w11-more {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 120, 212, 0.25);
  background: rgba(0, 120, 212, 0.08);
  color: #106ebe;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dict-w11-more:hover:not(:disabled) {
  background: rgba(0, 120, 212, 0.14);
  border-color: rgba(0, 120, 212, 0.4);
}

.dict-w11-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

.dict-w11-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.dict-w11-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0078d4;
  text-decoration: none;
}

.dict-w11-back__link--muted {
  color: #64748b;
}

.dict-w11-back__link:hover {
  text-decoration: underline;
}

.dict-w11-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
}

.dict-w11-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e2e8f0;
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: dict-spin 0.7s linear infinite;
}

@keyframes dict-spin {
  to { transform: rotate(360deg); }
}

[data-isc-view="mobile"] .dict-w11-dir {
  flex: 1 1 calc(33% - 0.45rem);
}

[data-isc-view="mobile"] .dict-w11-search__input {
  font-size: 16px;
}
