/* ============================================================
   CITATŲ KATALOGAS — /lobynas/citatos

   Ta pati vizualinė kalba kaip istorijos kataloge
   (lobynas/istorija/seo_history.css): tamsus fonas, auksinis akcentas,
   plonos linijos vietoj kortelių. Spalvų reikšmės kartojamos, o ne
   importuojamos — Lobyno skiltys sąmoningai laikomos atskiromis, kad
   vienos perdaža nesugriautų kitos.

   Kontrastai (WCAG AA riba 4.5:1), išmatuoti su tikromis reikšmėmis:
     tekstas #ece9f7 ant #07060f ....... 16.9:1
     autorius #b6b1c9 ant kortelės ..... 9.0:1
     muted #8b86a3 ant #07060f ......... 5.8:1
     auksinė #f5c518 ant #07060f ....... 12.4:1
     #17140a ant auksinio mygtuko ...... 11.3:1
   ============================================================ */

:root {
  --q-gold:        #f5c518;
  --q-gold-bright: #ffd84d;
  --q-bg:          #07060f;
  --q-bg-card:     rgba(19, 17, 31, 0.82);
  --q-border:      rgba(245, 197, 24, 0.18);
  --q-border-soft: rgba(255, 255, 255, 0.07);
  --q-text:        #ece9f7;
  --q-text-soft:   #b6b1c9;
  --q-text-muted:  #8b86a3;
}

body {
  background-color: var(--q-bg);
  color: var(--q-text);
}

.quotes-wrapper {
  padding: 1.5rem 1rem 4rem;
}

.quotes-container {
  max-width: 940px;
  margin: 0 auto;
}

/* JS stato `hidden` ant .quotes-item, .quotes-group ir #quotes-empty.
   Be šitos taisyklės `display: flex` žemiau perrašytų numatytąjį [hidden]
   elgesį ir paslėpti įrašai liktų matomi. */
.quotes-container [hidden] { display: none !important; }

/* ---------- Breadcrumb ---------- */

.quotes-container .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--q-text-muted);
}

.quotes-container .breadcrumb-item a {
  color: var(--q-text-soft);
  text-decoration: none;
}

.quotes-container .breadcrumb-item a:hover { color: var(--q-gold); }
.quotes-container .breadcrumb-item.active  { color: var(--q-text-muted); }

/* ---------- Antraštė ---------- */

.quotes-header {
  margin-bottom: 1.5rem;
}

.quotes-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--q-text-soft);
}

.quotes-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--q-gold);
}

.quotes-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--q-text-soft);
}

/* ---------- Filtrų juosta ---------- */

.quotes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--q-border-soft);
  border-radius: 14px;
  background: var(--q-bg-card);
}

.quotes-field {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  gap: 0.35rem;
}

.quotes-field-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--q-text-soft);
}

.quotes-search {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--q-border-soft);
  border-radius: 10px;
  background: rgba(7, 6, 15, 0.6);
  color: var(--q-text);
  font-family: inherit;
  font-size: 0.9rem;
}

.quotes-search::placeholder { color: var(--q-text-muted); }

.quotes-search:focus-visible {
  outline: 2px solid var(--q-gold);
  outline-offset: 2px;
}

/* ---------- Abėcėlės rodyklė ---------- */

.quotes-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.quotes-letter {
  min-width: 2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--q-border-soft);
  border-radius: 8px;
  background: rgba(7, 6, 15, 0.6);
  color: var(--q-text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.quotes-letter:hover {
  background: rgba(245, 197, 24, 0.1);
  color: var(--q-gold-bright);
}

.quotes-letter.is-active {
  background: var(--q-gold);
  border-color: var(--q-gold);
  color: #17140a;
}

.quotes-letter:focus-visible {
  outline: 2px solid var(--q-gold-bright);
  outline-offset: 2px;
}

/* ---------- Skaitiklis ---------- */

.quotes-count {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--q-text-soft);
}

/* ---------- Grupės ---------- */

.quotes-group { margin-bottom: 2rem; }

.quotes-group-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--q-border);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--q-gold);
}

.quotes-group-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--q-text-muted);
}

.quotes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quotes-item + .quotes-item { border-top: 1px solid var(--q-border-soft); }

.quotes-item-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.8rem;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.quotes-item-link:hover { background: rgba(245, 197, 24, 0.06); }

.quotes-item-link:focus-visible {
  outline: 2px solid var(--q-gold);
  outline-offset: -2px;
}

.quotes-item-text {
  flex: 1 1 22rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--q-text);
}

/* Kabutės per ::before/::after, ne tekste: taip jos nepatenka nei į
   paieškos `data-s`, nei į kopijuojamą tekstą. */
.quotes-item-text::before { content: '„'; }
.quotes-item-text::after  { content: '“'; }

.quotes-item-link:hover .quotes-item-text { color: var(--q-gold-bright); }

.quotes-item-author {
  flex: 0 0 12rem;
  font-size: 0.82rem;
  text-align: right;
  color: var(--q-text-soft);
}

.quotes-empty-search,
.quotes-empty-all {
  padding: 2rem 1rem;
  border: 1px dashed var(--q-border-soft);
  border-radius: 14px;
  color: var(--q-text-soft);
  text-align: center;
}

/* ---------- DUK ---------- */

.quotes-faq {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--q-border-soft);
}

.quotes-faq-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--q-gold);
}

.quotes-faq-item + .quotes-faq-item { margin-top: 1.25rem; }

.quotes-faq-q {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--q-text);
}

.quotes-faq-a {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--q-text-soft);
}

/* ---------- CTA ---------- */

.quotes-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.quotes-cta-link {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--q-border);
  border-radius: 999px;
  color: var(--q-text-soft);
  font-weight: 700;
  text-decoration: none;
}

.quotes-cta-link:hover {
  border-color: var(--q-gold);
  color: var(--q-gold);
}

@media (max-width: 560px) {
  /* Autorius po citata, ne šalia — 12rem stulpelis siaurame ekrane
     paliktų citatai vos kelis žodžius per eilutę. */
  .quotes-item-author {
    flex: 1 1 100%;
    text-align: left;
    color: var(--q-text-muted);
  }

  .quotes-item-author::before { content: '— '; }
}
