/* ================================
   🕊️ АНГЕЛИ УКРАЇНИ — ФІНАЛ
   ================================ */

/* 🔤 Шрифт */
@font-face {
  font-family: "Philosopher";
  src: url("../../fonts/philosopher/Philosopher-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* 🎨 Змінні */
:root {
  --accent-yellow: #ffd65a;
  --accent-blue: #023770;
  --text-light: #f5f5f5;
  --gutter: 30px;
}

/* Глобальне box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 🌈 Основне */
body.angels-page {
  margin: 0;
  padding: 0;
  font-family: "Philosopher", sans-serif;
  color: var(--text-light);
  background: #000;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🇺🇦 Фон */
.flag-bg {
  position: fixed;
  inset: 0;
  background: url("../img/angels.png") center center / cover no-repeat;
  z-index: -1;
  opacity: 0.9;
}
.flag-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* 🕯️ Контент */
main.content {
  text-align: center;
  padding: 1rem var(--gutter) 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.title {
  color: var(--accent-yellow);
  font-size: clamp(26px, 4vw, 44px);
  margin: 0.4rem 0 0.3rem;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 214, 90, 0.3);
}

.subtitle {
  color: var(--accent-blue);
  font-size: clamp(20px, 3vw, 32px);
  margin: 0.1rem 0 0.6rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

/* ================================
   🎥 Відео + Інфо (базова логіка — "портретна")
   ================================ */

/* Базово робимо колонку (добре для мобільних/портрет) */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

/* 🎥 Відео контейнер: ширина = батьківська, пропорція 16:9 */
.video-wrapper {
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(255, 214, 90, 0.25);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Без обрізання, дозволяємо чорні смуги */
  display: block;
  border-radius: 14px;
}

/* ℹ️ Інформаційна панель — під відео, та ж ширина */
.side-info {
  width: min(900px, 100%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 214, 90, 0.3);
  border-radius: 16px;
  color: var(--text-light);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
  padding: 1.4rem 1.6rem;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.side-info h3 {
  color: var(--accent-yellow);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.side-info p {
  margin: 0 0 0.5rem 0;
}

.side-info a {
  color: #7abaff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.side-info a:hover {
  color: #fff;
}

/* ⚓ Футер */
.footer {
  text-align: right;
  margin: 0.1rem 0;
  position: relative;
  z-index: 2;
  margin-right: 20px;
}

/* 🌟 Золота кнопка повернення */
.back-link {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(255, 214, 90, 0.7);
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 214, 90, 0.22), rgba(0, 0, 0, 0.55) 60%);
  letter-spacing: 0.06em;
  transition: 0.25s ease;
}

.back-link:hover {
  color: var(--text-light);
  background: radial-gradient(circle at top, rgba(255, 214, 90, 0.6), rgba(255, 214, 90, 0.15) 60%);
  border-color: rgba(255, 214, 90, 1);
  box-shadow: 0 0 18px rgba(255, 214, 90, 0.55);
  transform: translateY(-1px);
}

/* ================================
   📱 ПОРТРЕТ (мобілка/планшет вертикально)
   ================================ */

@media (max-width: 900px) and (orientation: portrait) {
  main.content {
    padding-top: 0.5rem;
  }

  .title {
    font-size: 1.4rem;
    margin: 0.3rem 0 0.1rem;
  }

  .subtitle {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    line-height: 1.25;
  }

  .video-section {
    gap: 0.7rem;
    margin-top: 0.5rem;
  }

  .video-wrapper {
    width: calc(100vw - 2 * var(--gutter));
    max-width: 600px;
    aspect-ratio: 16 / 9;
  }

  .side-info {
    width: calc(100vw - 2 * var(--gutter));
    max-width: 600px;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
  }
}

/* ================================
   💻 ГОРИЗОНТАЛЬНА (мобілка/планшет горизонтально)
   ================================ */

@media (max-width: 900px) and (orientation: landscape) {
  main.content {
    padding-top: 0.3rem;
  }

  .title {
    font-size: 1.2rem;
    margin: 0.1rem 0;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.1;
  }

  .video-section {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
    margin-top: 0.3rem;
  }

  /* Відео та інфо поруч, з однаковою висотою ≈ 55vh */
  .video-wrapper {
    height: 55vh;
    width: min(calc(55vh / 9 * 16), 65vw);
    max-width: 65vw;
  }

  .video-wrapper video {
    object-fit: contain;
  }

  .side-info {
    height: 55vh;
    max-width: 30vw;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
    line-height: 1.3;
    align-self: center;
    overflow-y: auto; /* Якщо текст раптом більший */
  }
}

/* /* ================================
   🖥️ ДЕСКТОП / ВЕЛИКІ ЕКРАНИ — ОНОВЛЕНО
   ================================ */

@media (min-width: 901px) {
  .video-section {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
    margin-top: 1.2rem;
  }

  /* 🔥 Відео — ширше */
  .video-wrapper {
    height: 70vh;
    width: calc(65vh / 9 * 16);
    max-width: 65vw; /* 🔥 БУЛО 60vw → СТАЛО 70vw */
    flex: 0 0 59vw;
  }

  .video-wrapper video {
    object-fit: contain;
  }

  /* 🔥 Інфо — компактніше */
  .side-info {
    height: 70vh;
    max-width: 20vw; /* 🔥 БУЛО 28vw → СТАЛО 24vw */
    flex: 0 0 20vw;
    overflow-y: auto;
  }
}
