/* ═══════════════════════════════════════
   ՀԱՅԿԱԿԱՆ ԲԱՌԱՐԱՆ — Armenian Dictionary
   Clean, minimal, readable style
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Armenian:wght@300;400;500;600;700&family=Noto+Sans+Armenian:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #4e2a48;
  --primary-dark: #361a32;
  --primary-light: #e8f0fb;
  --accent: #c0392b;
  --accent-light: #fdf0ef;
  --gold: #b8860b;
  --gold-light: #fdf8ec;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-section: #f4f6fa;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
  --radius: 10px;
  --radius-lg: 16px;
  --font-arm: 'Noto Sans Armenian', 'DejaVu Sans', sans-serif;
  --font-serif: 'Noto Serif Armenian', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arm);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}


/* ── HERO ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #4e2a48 0%, #523e4e 50%, #4e2a48 100%);
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'Ա Բ Գ Դ Ե Զ Է Ը Թ Ժ';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--font-serif);
  font-size: 80px;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.hero-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #e9e9e9;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* Search bar */
.search-bar {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 16px 60px 16px 22px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-arm);
  font-size: 16px;
  outline: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  color: var(--text);
  background-color: #fff;
}

.search-bar input::placeholder {
  color: var(--text-light);
}

.search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .15s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* hero small */
.hero-sm {
  background: linear-gradient(135deg, var(--primary-dark), #4e2a48);
  color: #fff;
  padding: 36px 24px 32px;
}

.hero-sm h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-sm p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ── LETTER STRIP ────────────────────────── */
.letter-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  overflow-x: auto;
}

.letter-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.letter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.letter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── CONTAINER / SECTION ─────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 24px;
}

.section-sm {
  padding: 40px 24px;
}

.section-alt {
  background: var(--bg-soft);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ── WORD OF THE DAY ─────────────────────── */
.wotd-card {
  background: linear-gradient(135deg, #fdf8ec 0%, #fff8e1 100%);
  border: 1.5px solid #e8d48b;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.wotd-badge {
  background: var(--gold);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.wotd-word {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.wotd-phonetic {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.wotd-meaning {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
}

.wotd-divider {
  width: 1px;
  background: #e8d48b;
  align-self: stretch;
  margin: 0 8px;
}

.wotd-example {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.wotd-example cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
  font-family: var(--font-ui);
}

/* ── WORD CARDS GRID ─────────────────────── */
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.word-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all .18s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.word-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.word-card .wc-word {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.word-card .wc-type {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.word-card .wc-meaning {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.word-card .wc-badge {
  display: inline-flex;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.word-card.popular .wc-badge {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── WORDS LIST (letter page) ─────────────── */
.words-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.word-list-item {
  background: #fff;
  padding: 16px 20px;
  transition: background .12s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.word-list-item:hover {
  background: var(--primary-light);
}

.wli-word {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.wli-meaning {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-inner a {
  color: var(--primary);
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-inner .sep {
  color: var(--text-light);
}

/* ── WORD PAGE ──────────────────────────── */
.word-page-header {
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.word-main {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.word-phonetic {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pronounce-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  background: #fff;
  transition: all .15s;
}

.pronounce-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.word-type-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
}

.tag-noun {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-adj {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-verb {
  background: #fff3e0;
  color: #e65100;
}

.tag-old {
  background: #f3e5f5;
  color: #6a1b9a;
}

/* Word content sections */
.word-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 60px;
}


.def-section {
  margin-bottom: 42px;
}

.def-section h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.def-section h3 .def-icon {
  font-size: 16px;
}

.definition-block {
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
}

.definition-block .def-num {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.definition-block p {
  line-height: 1.8;
  color: var(--text);
}

.example-item {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
}

.example-item::before {
  content: '"';
  font-size: 32px;
  color: var(--border);
  position: absolute;
  top: 6px;
  left: 12px;
  line-height: 1;
  font-family: Georgia, serif;
}

.example-item .ex-text {
  padding-left: 18px;
}

.etym-block {
  background: var(--gold-light);
  border: 1px solid #e8d48b;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.etym-block strong {
  color: var(--gold);
}

/* Side col */
.side-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.side-card h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.side-word-list {
  list-style: none;
}

.side-word-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}

.side-word-list li:last-child {
  border-bottom: none;
}

.side-word-list a {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-word-list a:hover {
  color: var(--primary);
}

.side-word-list a .swl-meaning {
  font-family: var(--font-arm);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 24px;
  text-align: center;
}

footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

footer p {
  font-size: 13px;
  margin-bottom: 4px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: #fff;
}

/* ── STATS BAR ───────────────────────────── */
.stats-bar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 24px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  font-family: var(--font-ui);
}

.stat-item .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .word-content {
    grid-template-columns: 1fr;
  }



  .wotd-card {
    flex-direction: column;
  }

  .wotd-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .words-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .words-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .navbar-nav {
    display: none;
  }

  .stats-bar-inner {
    gap: 20px;
  }
}

@media (max-width: 400px) {
  .words-list-grid {
    grid-template-columns: 1fr;
  }

  .words-grid {
    grid-template-columns: 1fr;
  }
}