/* ============================================================
   Sri Lanka Field Notes — Facts Section
   Файл: static/sl-facts.css
   Откат: удали этот файл + 2 строки из index.html (см. README)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Обёртка секции ── */
#sl-facts-section {
  background: #F5F2ED;
  padding: 60px 0;
  border-top: 1px solid #E8E4DF;
  border-bottom: 1px solid #E8E4DF;
}

#sl-facts-section .sl-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Заголовок секции ── */
#sl-facts-section .sl-section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9A9490;
  margin-bottom: 8px;
}

#sl-facts-section .sl-section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 28px;
  line-height: 1.25;
}

#sl-facts-section .sl-section-title span {
  color: #FFCC00;
}

/* ── Открытая карточка ── */
#sl-facts-section .sl-card {
  background: #FFFFFF;
  border: 1px solid #E8E4DF;
  margin-bottom: 1px;
}

#sl-facts-section .sl-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0A0A0A;
  overflow: hidden;
}

#sl-facts-section .sl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#sl-facts-section .sl-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

#sl-facts-section .sl-photo-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

#sl-facts-section .sl-fact-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 11px;
  font-weight: 700;
  color: #FFCC00;
  letter-spacing: 2px;
}

#sl-facts-section .sl-cat-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.3);
  padding: 3px 10px;
}

#sl-facts-section .sl-yellow-rule {
  height: 4px;
  background: #FFCC00;
}

#sl-facts-section .sl-article {
  padding: 24px 28px 20px;
}

#sl-facts-section .sl-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9A9490;
  margin-bottom: 10px;
}

#sl-facts-section .sl-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #0A0A0A;
}

#sl-facts-section .sl-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.82;
  color: #3C3830;
  font-weight: 300;
}

#sl-facts-section .sl-body::first-letter {
  font-family: 'Libre Baskerville', serif;
  font-size: 3.4em;
  font-weight: 700;
  float: left;
  line-height: .78;
  margin-right: 7px;
  margin-top: 4px;
  color: #0A0A0A;
}

#sl-facts-section .sl-card-footer {
  padding: 14px 28px 18px;
  border-top: 1px solid #E8E4DF;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#sl-facts-section .sl-btn-listen {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #0A0A0A;
  color: #FFFFFF;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

#sl-facts-section .sl-btn-listen:hover { background: #3A3530; }
#sl-facts-section .sl-btn-listen.playing { background: #FFCC00; color: #0A0A0A; }
#sl-facts-section .sl-btn-listen svg { width: 14px; height: 14px; fill: currentColor; }

#sl-facts-section .sl-wave {
  display: none;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}
#sl-facts-section .sl-wave.on { display: flex; }
#sl-facts-section .sl-wb {
  width: 2.5px;
  background: #FFCC00;
  border-radius: 1px;
  animation: sl-wv .7s ease-in-out infinite;
}
#sl-facts-section .sl-wb:nth-child(1){height:5px}
#sl-facts-section .sl-wb:nth-child(2){height:12px;animation-delay:.1s}
#sl-facts-section .sl-wb:nth-child(3){height:8px;animation-delay:.2s}
#sl-facts-section .sl-wb:nth-child(4){height:14px;animation-delay:.15s}
#sl-facts-section .sl-wb:nth-child(5){height:6px;animation-delay:.05s}
@keyframes sl-wv{0%,100%{transform:scaleY(1);}50%{transform:scaleY(.3);}}

#sl-facts-section .sl-photo-credit {
  font-size: 10px;
  color: #9A9490;
  text-align: right;
  padding: 5px 0 0;
  font-style: italic;
}

/* ── CTA баннер ── */
#sl-facts-section .sl-cta {
  background: #0A0A0A;
  padding: 22px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 3px solid #FFCC00;
  margin-top: 1px;
}

#sl-facts-section .sl-cta-headline {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 5px;
  line-height: 1.3;
}

#sl-facts-section .sl-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
}

#sl-facts-section .sl-cta-btn {
  padding: 12px 26px;
  background: #FFCC00;
  color: #0A0A0A;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}
#sl-facts-section .sl-cta-btn:hover { background: #e6b800; transform: translateY(-1px); }

/* ── Заблокированная сетка ── */
#sl-facts-section .sl-locked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #E8E4DF;
  border: 1px solid #E8E4DF;
  margin-top: 1px;
}

#sl-facts-section .sl-locked-card {
  background: #FFFFFF;
  padding: 16px 18px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#sl-facts-section .sl-locked-emoji {
  font-size: 22px;
  flex-shrink: 0;
  opacity: .3;
  filter: grayscale(1);
}

#sl-facts-section .sl-locked-body { flex: 1; min-width: 0; }

#sl-facts-section .sl-locked-cat {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9A9490;
  margin-bottom: 4px;
  opacity: .7;
}

#sl-facts-section .sl-locked-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  font-weight: 700;
  color: #0A0A0A;
  line-height: 1.35;
  filter: blur(4px);
  user-select: none;
  opacity: .4;
}

#sl-facts-section .sl-lock-icon {
  position: absolute;
  top: 12px; right: 14px;
  opacity: .22;
}
#sl-facts-section .sl-lock-icon svg { width: 14px; height: 14px; fill: #3A3530; }

#sl-facts-section .sl-tease {
  text-align: center;
  padding: 20px 0 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #9A9490;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Языковой переключатель ── */
#sl-facts-section .sl-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 20px;
  background: #E8E4DF;
  border: 1px solid #E8E4DF;
  width: fit-content;
}

#sl-facts-section .sl-lb {
  padding: 7px 14px;
  background: #FFFFFF;
  border: none;
  color: #9A9490;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
#sl-facts-section .sl-lb:hover { color: #0A0A0A; }
#sl-facts-section .sl-lb.on {
  background: #0A0A0A;
  color: #FFCC00;
  font-weight: 600;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
  #sl-facts-section .sl-locked-grid { grid-template-columns: 1fr; }
  #sl-facts-section .sl-article { padding: 18px 16px 14px; }
  #sl-facts-section .sl-card-footer { padding: 12px 16px 14px; }
  #sl-facts-section .sl-cta { padding: 18px 16px; }
}
