/* ===================================================================
   SKY VR — стилі сторінки новини (конструктор блоків).
   Підключається ПІСЛЯ style.css і використовує його :root-токени.
   =================================================================== */

/* ---- Картка-посилання у списку новин (робить .news-card клікабельною) ---- */
.news-card-link { text-decoration: none; color: inherit; cursor: pointer; }
.news-card-link:hover { color: inherit; }
.news-draft-flag {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Space Mono', monospace; font-size: .64rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: #f5b73b; color: #15132e;
  padding: 4px 9px; border-radius: 99px;
}
.news-card .news-card-img { position: relative; }

/* ---- Каркас сторінки новини ---- */
.news-article { padding: clamp(26px, 4vw, 48px) 0 clamp(40px, 6vw, 70px); }

.art-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Space Mono', monospace; font-size: .76rem; font-weight: 700;
  letter-spacing: .04em; color: var(--text-mute); text-decoration: none;
  margin-bottom: 22px; transition: .15s;
}
.art-back:hover { color: var(--cyan); transform: translateX(-2px); }
.art-back svg { width: 16px; height: 16px; }

.art-preview-flag {
  display: inline-block; margin: 0 0 18px;
  font-family: 'Space Mono', monospace; font-size: .74rem; font-weight: 700;
  background: rgba(245,183,59,.14); color: #f5b73b;
  border: 1.5px solid rgba(245,183,59,.4); border-radius: 10px;
  padding: 8px 14px;
}

.art-head { max-width: 760px; }
.art-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.08;
  margin: 14px 0 0;
}
.art-lead { margin-top: 16px; color: var(--text-soft); max-width: 680px; }

/* ---- Обкладинка ---- */
.art-cover {
  margin: clamp(26px, 4vw, 42px) auto 0;
  max-width: 980px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.art-cover img { display: block; width: 100%; height: auto; }

/* ---- Тіло статті: вузька читабельна колонка ---- */
.art-body {
  max-width: 760px; margin: clamp(30px, 4.5vw, 48px) auto 0;
  font-size: 1.08rem; line-height: 1.72; color: var(--text-soft);
}
.art-body > * { margin-top: 1.45em; }
.art-body > *:first-child { margin-top: 0; }

/* Розділи всередині статті */
.art-h {
  color: var(--text); line-height: 1.18;
  margin-top: 1.9em;
}
h2.art-h { font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3.art-h { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }

/* Текстові абзаци (rich text із білого списку) */
.art-text p, .art-text div { margin: 0 0 1em; }
.art-text > *:last-child { margin-bottom: 0; }
.art-text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.art-text a:hover { color: var(--violet-soft); }
.art-text strong, .art-text b { color: var(--text); font-weight: 700; }
.art-text ul, .art-text ol { margin: 0 0 1em; padding-left: 1.4em; }
.art-text li { margin: .3em 0; }
.art-text li::marker { color: var(--violet-soft); }

/* Цитата */
.art-quote {
  position: relative; margin-inline: 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--violet);
}
.art-quote p {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.4;
  color: var(--text); margin: 0;
}
.art-quote-cite {
  display: block; margin-top: 12px;
  font-family: 'Space Mono', monospace; font-style: normal;
  font-size: .82rem; color: var(--text-mute);
}

/* Фото на всю ширину колонки */
.art-figure { margin-inline: 0; }
.art-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1.5px solid var(--line-strong);
}
.art-figcaption {
  margin-top: 10px; text-align: center;
  font-size: .85rem; color: var(--text-mute);
}

/* ---- СИГНАТУРНИЙ БЛОК: плоский градієнтний заклик із кнопкою ---- */
.art-callout {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: clamp(22px, 3.4vw, 32px);
  border-radius: var(--r-lg);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.art-callout-body { flex: 1 1 280px; min-width: 0; }
.art-callout-eyebrow {
  display: inline-block; margin-bottom: 9px;
  font-family: 'Space Mono', monospace; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.art-callout h3 {
  color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.18;
  margin: 0;
}
.art-callout p {
  margin: 9px 0 0; color: rgba(255,255,255,.9);
  font-size: 1rem; line-height: 1.55;
}
.art-callout-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px;
  background: #fff; color: #1d1b3d;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.art-callout-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.22); }
.art-callout-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.art-callout-btn svg { width: 17px; height: 17px; }

.art-callout--violet { background: linear-gradient(135deg, #5d3fb0 0%, #7c5cd6 55%, #9b7ce8 100%); }
.art-callout--cyan   { background: linear-gradient(135deg, #244a9c 0%, #3f6fd0 55%, #5b8def 100%); }
.art-callout--sunset { background: linear-gradient(135deg, #7a2fae 0%, #b0468f 55%, #e0738a 100%); }
.art-callout--mint   { background: linear-gradient(135deg, #157a52 0%, #1f9d68 55%, #3ecf8e 100%); }
.art-callout--mint .art-callout-btn { color: #0f3d2a; }

/* Роздільник */
.art-divider {
  border: none; height: 0;
  border-top: 1.5px dashed var(--line-strong);
  margin: clamp(28px, 4vw, 44px) auto;
  max-width: 220px;
}

/* ---- Відео YouTube (фасад → iframe за кліком) ---- */
.art-video { margin-inline: 0; }
.yt-facade, .yt-frame {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 1.5px solid var(--line-strong); border-radius: var(--r);
}
/* Вертикальне відео (YouTube Shorts): формат 9/16, не на всю ширину, по центру */
.yt-facade.yt-vertical, .yt-frame.yt-vertical {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  width: 100%;
  margin-inline: auto;
}
.art-video.yt-vertical { display: flex; justify-content: center; }
.yt-facade {
  position: relative; cursor: pointer; padding: 0;
  background-size: cover; background-position: center;
  background-color: var(--ink-3);
}
.yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(21,19,46,.34); border-radius: inherit; transition: .15s;
}
.yt-facade:hover::after { background: rgba(21,19,46,.18); }
.yt-play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; display: grid; place-items: center;
  background: var(--violet); color: #fff; border-radius: 50%;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.6); z-index: 1;
  transition: transform .15s;
}
.yt-facade:hover .yt-play { transform: scale(1.07); }

@media (max-width: 560px) {
  .art-callout { gap: 16px; }
  .art-callout-btn { width: 100%; justify-content: center; }
}
