/* ============================================================
   schedule.css — стилове само за bg/1/schedule.php
   ------------------------------------------------------------
   1) Съдържание на програмата (нов дизайн, брандови токени)
   2) Pop-up банер (пренесен от оригиналния schedule.html)
   ============================================================ */

/* ---- Подзаглавие в заглавната лента ---- */
.page-title-sub {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cream);
  text-transform: uppercase;
}

/* ============================================================
   ОСНОВНО СЪДЪРЖАНИЕ НА ПРОГРАМАТА
   ============================================================ */
.schedule-page {
  padding: 40px 0 56px;
}

.intro-container {
  max-width: 850px;
  margin: 0 auto;
}

.intro-title {
  font-size: 1.6rem;
  color: var(--green);
  text-align: center;
  margin-bottom: 14px;
}

.schedule-warning {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
}

/* ---- Блок за отделен ден ---- */
.section.day-block {
  margin-bottom: 22px;
  padding: 20px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.section.day-block h2.auto-style4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

.section.day-block p.auto-style4 {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.section.day-block p.auto-style4 strong {
  color: var(--brown);
}

/* ---- Заключителен текст ---- */
.schedule-closing {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--orange);
  font-style: italic;
  text-align: center;
  color: var(--green);
  font-weight: 600;
}

/* ---- Бутон „ДАТИ“ ---- */
.schedule-cta {
  text-align: center;
  margin-top: 34px;
}

/* ============================================================
   POP-UP БАНЕР (пренесен от оригиналния schedule.html)
   ============================================================ */

/* Blur на съдържанието, докато банерът е активен */
.page-content {
  transition: filter 0.3s ease;
}
.page-content.banner-active {
  filter: blur(5px);
}

.modalup-banner {
  position: fixed;
  top: 5px;
  left: -100%;
  transform: translateY(0);
  width: 1024px;
  height: 683px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 10px);
  background-image: url('https://uta.ug/banner/modalupbanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.modalup-banner.show {
  left: 50%;
  transform: translateX(-50%);
}

/* Десктоп версия — центриран банер */
@media (min-width: 769px) {
  .modalup-banner {
    top: 50%;
    transform: translate(0, -50%);
  }
  .modalup-banner.show {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Мобилна версия — portrait картинка */
@media (max-width: 768px) {
  .modalup-banner {
    background-image: url('https://uta.ug/banner/ready-tour.png');
    width: calc(100vw - 8px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 4px;
    left: -100vw;
    top: 50px;
    transform: translateY(0);
  }
  .modalup-banner.show {
    left: 4px;
    transform: translateX(0);
  }
}

.modalup-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.modalup-banner-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modalup-banner-text {
  color: #fff;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: textSlideIn 2s ease-out 1.5s both;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .modalup-banner-content {
    align-items: flex-end;
    padding: 20px;
  }
  .modalup-banner-text {
    margin-bottom: 20px;
  }
}

.modalup-banner-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  z-index: 3;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.modalup-banner-close:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes textSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .modalup-banner-content {
    padding: 20px 15px;
  }
  .modalup-banner-text {
    font-size: 12px;
    line-height: 1.2;
    font-weight: normal;
  }
  .modalup-banner-close {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}

/* Преоразмеряване на банера според резолюцията — само десктоп */
@media (min-width: 769px) and (min-height: 800px) and (max-height: 900px) {
  .modalup-banner { width: 900px; height: 600px; }
}
@media (min-width: 769px) and (min-height: 700px) and (max-height: 799px) {
  .modalup-banner { width: 800px; height: 533px; }
}
@media (min-width: 769px) and (min-height: 600px) and (max-height: 699px) {
  .modalup-banner { width: 700px; height: 467px; }
}
@media (min-width: 769px) and (max-height: 599px) {
  .modalup-banner { width: 600px; height: 400px; }
}

/* Увеличаване на X бутона за високи разделителни способности */
@media (min-width: 1920px) {
  .modalup-banner-close { width: 35px; height: 35px; font-size: 16px; top: 20px; right: 20px; }
}
@media (min-width: 2560px) {
  .modalup-banner-close { width: 40px; height: 40px; font-size: 18px; top: 25px; right: 25px; }
}
@media (min-width: 3440px) {
  .modalup-banner-close { width: 45px; height: 45px; font-size: 20px; top: 30px; right: 30px; }
}

/* ---- Адаптивни корекции за съдържанието ---- */
@media (max-width: 768px) {
  .intro-title { font-size: 1.35rem; }
  .section.day-block { padding: 16px; }
  .section.day-block h2.auto-style4 { font-size: 1.02rem; }
}
