/* ============================================================
   LearnBid — Vocabulary Cards
   Version: 4.1.6 — Compact White Design
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hindi: "Noto Sans Devanagari", "Mangal", sans-serif;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --card-bg: #ffffff;
  --card-border: #9ee6d9;
  --num-color: #ffffff;
  --word-color: #111827;
  --meaning-color: #374151;
  --muted: #9ca3af;
  --syn-bg: #d8f7e9;
  --syn-color: #059669;
  --ant-bg: #ffe1e8;
  --ant-color: #e11d48;
  --example-border: #f59e0b;
  --example-highlight: #059669;
}

/* ============================================================
   WRAPPER
   ============================================================ */

.vocab__wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  background: #ffffff;
  font-family: var(--font-main);
  box-sizing: border-box;
}

.vocab__wrapper *,
.vocab__wrapper *::before,
.vocab__wrapper *::after {
  box-sizing: border-box;
}

.vocab__section-header {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #dfe7ec;
}

.vocab__date {
  display: block;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vocab__list {
  display: flex;
  flex-direction: column;
  gap: 25px !important;
  row-gap: 25px !important;
}

/* WordPress may insert empty paragraph and line-break elements
   between nested shortcodes. They otherwise become flex items and
   create a large gap between cards. */
.vocab__list > p,
.vocab__list > br {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   CARD
   ============================================================ */

.vocab__card {
  overflow: hidden;
  margin: 0 !important;
  margin-block: 0 !important;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vocab__card:hover {
  border-color: #75d9c9;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
  transform: none;
}

/* ============================================================
   CARD HEADER
   ============================================================ */

.vocab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px 6px;
}

.vocab__header-left {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.vocab__number {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  color: var(--num-color);
  background: linear-gradient(135deg, #115e59, #0d9488);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.vocab__title-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  flex-wrap: wrap;
}

.vocab__word {
  margin: 0;
  color: var(--word-color);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The target design keeps pronunciation available to screen
   readers through the audio label but does not show it visually. */
.vocab__pronunciation {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vocab__audio-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 1px;
  color: var(--muted);
  background: transparent;
  border: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.vocab__audio-btn:hover,
.vocab__audio-btn:focus-visible {
  color: var(--teal);
  outline: 2px solid rgba(13, 148, 136, 0.2);
  outline-offset: 2px;
  border-radius: 4px;
}

.vocab__audio-btn svg {
  width: 14px;
  height: 14px;
}

@keyframes vocab-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.vocab__audio-btn.is-playing {
  color: var(--teal);
  animation: vocab-pulse 1.2s infinite;
}

/* ============================================================
   WORD-TYPE BADGES
   ============================================================ */

.vocab__badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 7px;
  background: transparent;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--noun {
  color: #9a6700;
  background: #fffbea;
  border-color: #f5d879;
}

.badge--adjective {
  color: #0f766e;
  background: #ecfdf8;
  border-color: #99e7d9;
}

.badge--verb {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.badge--adverb {
  color: #7e22ce;
  background: #faf5ff;
  border-color: #e9d5ff;
}

.badge--phrase {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.badge--idiom {
  color: #57534e;
  background: #fafaf9;
  border-color: #d6d3d1;
}

.badge--conjunction {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.badge--preposition {
  color: #4d7c0f;
  background: #f7fee7;
  border-color: #d9f99d;
}

/* ============================================================
   BOOKMARK
   ============================================================ */

.vocab__bookmark {
  flex-shrink: 0;
  padding: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.vocab__bookmark svg {
  display: block;
  width: 17px;
  height: 17px;
}

.vocab__bookmark:hover,
.vocab__bookmark:focus-visible {
  color: var(--teal);
  background: #f0fdfa;
  outline: 2px solid rgba(13, 148, 136, 0.2);
  outline-offset: 2px;
}

.vocab__card.is-bookmarked .vocab__bookmark {
  color: var(--teal);
}

.vocab__card.is-bookmarked .vocab__bookmark svg {
  fill: var(--teal);
}

/* ============================================================
   MEANING AND HINDI
   ============================================================ */

.vocab__meaning {
  margin: 0 16px 1px;
  color: var(--meaning-color);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.vocab__hindi {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px 10px;
  color: var(--teal);
  font-family: var(--font-hindi);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.vocab__hindi svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--teal);
}

/* ============================================================
   INNER SECTIONS
   ============================================================ */

.vocab__body {
  padding: 0 16px;
}

.vocab__sections-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f8fafb;
  border: 0;
  border-radius: 14px;
}

.vocab__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vocab__label {
  margin: 0;
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vocab__label--syn {
  color: var(--syn-color);
}

.vocab__label--ant {
  color: var(--ant-color);
}

.vocab__label--ex {
  color: #374151;
}

/* ============================================================
   SYNONYM AND ANTONYM TAGS
   ============================================================ */

.vocab__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vocab__tag {
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  transition: transform 0.15s;
}

.vocab__tag:hover {
  transform: translateY(-1px);
}

.vocab__tag--synonym {
  color: var(--syn-color);
  background: var(--syn-bg);
}

.vocab__tag--antonym {
  color: var(--ant-color);
  background: var(--ant-bg);
}

/* ============================================================
   EXAMPLE
   Aggressive resets prevent Mow theme blockquote styles from
   creating the oversized example box.
   ============================================================ */

.vocab__wrapper .vocab__example {
  display: block !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  color: #374151 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-left: 2px solid var(--example-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
  transform: none !important;
}

.vocab__wrapper .vocab__example p {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #374151 !important;
  background: transparent !important;
  font-size: 0.76rem !important;
  font-style: italic;
  line-height: 1.45 !important;
  text-align: left !important;
  transform: none !important;
}

.vocab__wrapper .vocab__example::before,
.vocab__wrapper .vocab__example::after {
  content: none !important;
  display: none !important;
}

.vocab__wrapper .vocab__example p::before,
.vocab__wrapper .vocab__example p::after {
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  color: #374151 !important;
  background: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  transform: none !important;
}

.vocab__wrapper .vocab__example p::before {
  content: "\201C" !important;
}

.vocab__wrapper .vocab__example p::after {
  content: "\201D" !important;
}

.vocab__highlight {
  color: var(--example-highlight);
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   RELATED WORDS
   ============================================================ */

.vocab__related-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 0;
  flex-wrap: wrap;
}

.vocab__related-label {
  color: #374151;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vocab__related-text {
  color: #374151;
  font-size: 0.72rem;
  font-weight: 400;
}

/* ============================================================
   MARK AS LEARNED FOOTER
   ============================================================ */

.vocab__footer {
  padding: 0 16px 13px;
}

.vocab__learned-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  padding: 7px 12px;
  color: #374151;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 11px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.vocab__learned-btn:hover,
.vocab__learned-btn:focus-visible {
  color: var(--teal);
  background: #f0fdf9;
  border-color: var(--teal);
  outline: none;
}

.vocab__learned-btn.is-learned {
  color: var(--teal);
  background: #f0fdf9;
  border-color: var(--teal);
  border-style: solid;
}

.vocab__check-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.vocab__learned-btn.is-learned .vocab__check-icon {
  stroke: var(--teal);
}

/* ============================================================
   COMPLETION BANNER
   ============================================================ */

.vocab__completion {
  margin-top: 16px;
  padding: 20px 16px;
  text-align: center;
  background: #f0fdf9;
  border: 1px solid #99f6e4;
  border-radius: 12px;
}

.vocab__completion[hidden] {
  display: none;
}

.vocab__completion-icon {
  display: block;
  margin-bottom: 7px;
  font-size: 2rem;
}

.vocab__completion p {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 600;
}

.vocab__reset-btn {
  padding: 8px 20px;
  color: #ffffff;
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.vocab__reset-btn:hover,
.vocab__reset-btn:focus-visible {
  background: var(--teal-dark);
  outline: 2px solid rgba(13, 148, 136, 0.25);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .vocab__wrapper {
    padding: 8px 8px 24px;
  }

  .vocab__header {
    padding: 12px 12px 6px;
  }

  .vocab__header-left {
    gap: 8px;
  }

  .vocab__number {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
    min-width: 31px;
    font-size: 0.74rem;
  }

  .vocab__word {
    font-size: 1.12rem;
  }

  .vocab__meaning {
    margin: 0 12px 1px;
    font-size: 0.82rem;
  }

  .vocab__hindi {
    margin: 0 12px 9px;
    font-size: 0.77rem;
  }

  .vocab__body {
    padding: 0 12px;
  }

  .vocab__sections-block {
    padding: 9px 10px;
  }

  .vocab__footer {
    padding: 0 12px 12px;
  }

  .vocab__tag {
    padding: 2px 8px;
    font-size: 0.65rem;
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .vocab__wrapper {
    padding: 0;
    background: #ffffff;
  }

  .vocab__audio-btn,
  .vocab__bookmark,
  .vocab__footer,
  .vocab__completion {
    display: none !important;
  }

  .vocab__card {
    break-inside: avoid;
    border: 1px solid #dddddd;
    box-shadow: none;
  }
}
/* Add space before the Antonyms section */
.vocab__section:has(.vocab__label--ant) {
  margin-top: 4px;
}