/* ============================================================
   Anglish — Main Styles
   Exact design system from word-detail-36fields.html
   ============================================================ */

/* ── NAVBAR ── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  text-decoration: none;
}
.nav-logo i {
  font-size: 24px;
  color: var(--purple);
}
.nav-logo small {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}
.nav-links a.active {
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
  transition: all .15s;
  text-decoration: none;
}
.btn-nav:hover {
  background: var(--purple-light);
  color: var(--purple);
  border-color: var(--purple-mid);
}

/* ── PAGE LAYOUT ── */
.page {
  padding: 24px 24px 48px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover {
  color: var(--purple);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  max-width: 100%;
  width: 100%;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card:last-child {
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-title i {
  font-size: 16px;
  color: var(--purple);
}

/* ── HERO ── */
.hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.hero-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: var(--purple-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img i {
  font-size: 48px;
  color: var(--purple-mid);
}
.hero-body {
  flex: 1;
  min-width: 0;
}
.word-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.word-en {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  direction: ltr;
  letter-spacing: -.5px;
  font-family: var(--font-en);
}
.btn-bm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 22px;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s;
}
.btn-bm:hover,
.btn-bm.saved {
  color: var(--purple);
}

/* Pronunciation */
.pron-row {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pron-ipa {
  font-size: 15px;
  color: var(--text-3);
  font-style: italic;
  font-family: var(--font-en);
}
.pron-fa {
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  padding: 2px 8px;
  border-radius: 20px;
  direction: rtl;
}
.btn-audio {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-audio:hover {
  background: var(--purple-light);
  color: var(--purple);
  border-color: var(--purple-mid);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.tag-cat {
  background: var(--purple-light);
  color: var(--purple-dark);
}
.tag-level {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.tag-pos {
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* Meanings */
.word-fa-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
}
.meanings-list {
  list-style: none;
  margin-bottom: 8px;
}
.meanings-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-1);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.meanings-list li:last-child {
  border-bottom: none;
}
.meanings-list .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.word-def {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
}
.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Pron Note */
.pron-note {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--amber);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}
.pron-note i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Collocations */
.colloc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.colloc-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.colloc-en {
  direction: ltr;
  color: var(--purple);
  font-weight: 500;
  min-width: 0;
  flex: 1;
  font-family: var(--font-en);
}
.colloc-sep {
  color: var(--text-3);
  flex-shrink: 0;
}
.colloc-fa {
  color: var(--text-2);
  font-size: 12px;
}

/* Examples */
.example-item {
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-right: 3px solid var(--purple-mid);
}
.example-item:last-child {
  margin-bottom: 0;
}
.ex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ex-en {
  font-size: 14px;
  color: var(--text-1);
  direction: ltr;
  text-align: left;
  line-height: 1.7;
  flex: 1;
  font-family: var(--font-en);
}
.ex-en strong {
  color: var(--purple);
}
.ex-fa {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 4px;
}
.btn-audio-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  font-size: 12px;
  flex-shrink: 0;
  transition: all .15s;
}
.btn-audio-sm:hover {
  color: var(--purple);
  border-color: var(--purple-mid);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text-1);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
  direction: ltr;
  font-family: var(--font-en);
}
.chip:hover {
  border-color: var(--purple-mid);
  color: var(--purple);
  background: var(--purple-light);
}
.chip.ant {
  color: var(--red-text);
  background: var(--red-bg);
  border-color: var(--red-border);
}
.chip.ant:hover {
  background: var(--red-border);
}
.chip.related {
  color: var(--blue-text);
  background: var(--blue-bg);
  border-color: var(--blue-border);
}
.chip.related:hover {
  background: var(--blue-border);
}

/* Word Family */
.wf-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
}
.wf-pos {
  font-size: 11px;
  color: var(--purple);
  background: var(--purple-light);
  padding: 2px 8px;
  border-radius: 20px;
  direction: ltr;
  white-space: nowrap;
}
.wf-word {
  font-size: 13px;
  color: var(--text-1);
  direction: ltr;
  font-family: var(--font-en);
}

/* Learning */
.memory-hook {
  background: var(--purple-light);
  border: 1px solid var(--purple-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--purple-dark);
  line-height: 1.8;
  display: flex;
  gap: 10px;
}
.memory-hook i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mistake-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.7;
}
.mistake-item:last-child {
  border-bottom: none;
}
.mistake-item i {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.usage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.usage-ok {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}
.usage-warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}
.usage-no {
  background: var(--red-bg);
  color: var(--red-text);
  border-color: var(--red-border);
}

/* Sidebar */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.side-card:last-child {
  margin-bottom: 0;
}
.side-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.side-title i {
  font-size: 15px;
  color: var(--purple);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--text-2);
}
.info-val {
  color: var(--text-1);
  direction: ltr;
  text-align: left;
  font-size: 12px;
  max-width: 55%;
  font-family: var(--font-en);
}
.side-list {
  list-style: none;
}
.side-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color .15s;
  direction: ltr;
  font-family: var(--font-en);
}
.side-list li:last-child {
  border-bottom: none;
}
.side-list li:hover {
  color: var(--purple);
}
.side-list li i {
  font-size: 13px;
  color: var(--text-3);
}
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--purple-light);
  color: var(--purple-dark);
  border-radius: 20px;
  font-size: 12px;
  margin: 3px;
}
.side-cats {
  display: flex;
  flex-wrap: wrap;
  margin: -3px;
}

/* Back Button */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-fa);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  margin-top: 4px;
}
.btn-back:hover {
  background: var(--purple-dark);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-logo i {
  color: var(--purple);
  font-size: 22px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-1);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover {
  color: var(--purple);
}
.footer-bottom {
  max-width: 100%;
  width: 100%;
  margin: 30px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.footer-tagline {
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-img {
    width: 96px;
    height: 96px;
  }
  .word-title-row {
    justify-content: center;
  }
  .pron-row {
    justify-content: center;
  }
  .meta-row {
    justify-content: center;
  }
  .word-fa-main {
    text-align: center;
  }
  .word-def {
    text-align: center;
  }
  .nav-links {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}


/* FULL WIDTH FORCE */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
.navbar, .site-footer, .home-hero {
  width: 100% !important;
  max-width: 100% !important;
}
.page, .container-wide, .vocab-layout, .footer-inner, .footer-bottom-grid, .nav-inner {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
.single-vocab-page .page {
  padding-left: 32px;
  padding-right: 32px;
}
