/* ============================================================
   SARACEN INTRO — uvodni video s manualnim spustenim
   Velky cerveny play button, cinematic ramecek
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

.saracen-intro {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(ellipse at center, rgba(34, 72, 139, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #061B41 0%, #04132E 100%);
  padding: 130px 0;
  color: #F5F1EA;
  font-family: 'Montserrat', Arial, sans-serif;
  overflow-x: clip;
}

.saracen-intro,
.saracen-intro *,
.saracen-intro *::before,
.saracen-intro *::after {
  box-sizing: border-box;
}

.saracen-intro__container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
}

/* ---------- Intro: eyebrow + nadpis + divider ---------- */
.saracen-intro__intro {
  text-align: center;
  margin-bottom: 56px;
}

.saracen-intro__eyebrow {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #C21D2A;
  margin-bottom: 24px;
}

.saracen-intro__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  color: #ffffff;
}

.saracen-intro__subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: rgba(245, 241, 234, 0.7);
  max-width: 520px;
  margin: 0 auto 28px;
}

.saracen-intro__divider {
  width: 56px;
  height: 2px;
  background: #C21D2A;
  margin: 0 auto;
}

/* ============================================================
   VIDEO WRAP — kontejner s aspekt ratio, ramecek a stiny
   ============================================================ */
.saracen-intro__video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04132E;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Cervene rohove zavorky (cinematic frame) */
.saracen-intro__video-wrap::before,
.saracen-intro__video-wrap::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid #C21D2A;
  pointer-events: none;
  z-index: 4;
  transition: width 0.4s ease, height 0.4s ease;
}
.saracen-intro__video-wrap::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.saracen-intro__video-wrap::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* Subtle hover lift na vrap (jen kdyz neni prehrava) */
.saracen-intro__video-wrap:not(.is-playing):hover {
  transform: translateY(-4px);
}

.saracen-intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #04132E;
}

/* ============================================================
   PLAY BUTTON — velky cerveny kruh s bilym trojuhelnikem
   ============================================================ */
.saracen-intro__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: #C21D2A;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(194, 29, 42, 0.5), 0 0 0 0 rgba(194, 29, 42, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
  outline: 0;
  padding: 0;
  animation: saracenIntroPulse 2.5s ease-in-out infinite;
}

/* Pulsovani — diskretni "klikni mě" indikator */
@keyframes saracenIntroPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(194, 29, 42, 0.5), 0 0 0 0 rgba(194, 29, 42, 0.5);
  }
  50% {
    box-shadow: 0 8px 32px rgba(194, 29, 42, 0.5), 0 0 0 22px rgba(194, 29, 42, 0);
  }
}

.saracen-intro__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #C21D2A;
  filter: brightness(1.1);
}

.saracen-intro__play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

/* Trojuhelnik (SVG inline pres ::before / ::after se sloziteji
   trefuje na centr — pouzivame inline SVG v JS). */
.saracen-intro__play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px; /* opticka korekce — trojuhelnik smerujici doprava */
  fill: #ffffff;
  display: block;
}

/* Stav: video uz hraje, button zmizel */
.saracen-intro__video-wrap.is-playing .saracen-intro__play {
  opacity: 0;
  visibility: hidden;
  animation: none;
  pointer-events: none;
}

/* Tmavy overlay pres video pred prehravanim */
.saracen-intro__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(4, 19, 46, 0.3) 0%,
      rgba(4, 19, 46, 0.6) 100%);
  z-index: 3;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.saracen-intro__video-wrap.is-playing .saracen-intro__overlay {
  opacity: 0;
  visibility: hidden;
}

/* ============================================================
   SCROLL ANIMACE
   ============================================================ */
.saracen-intro [data-anim] {
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.saracen-intro [data-anim="fade-up"] {
  transform: translateY(40px);
}
.saracen-intro [data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .saracen-intro [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .saracen-intro__play {
    animation: none;
  }
}

/* ============================================================
   RESPONZIVITA
   ============================================================ */
@media (max-width: 1199px) {
  .saracen-intro { padding: 100px 0; }
  .saracen-intro__container { padding: 0 40px; }
}

@media (max-width: 768px) {
  .saracen-intro { padding: 80px 0; }
  .saracen-intro__container { padding: 0 24px; }
  .saracen-intro__intro { margin-bottom: 40px; }

  .saracen-intro__play {
    width: 72px;
    height: 72px;
  }
  .saracen-intro__play svg {
    width: 26px;
    height: 26px;
  }

  .saracen-intro__video-wrap::before,
  .saracen-intro__video-wrap::after {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .saracen-intro__container { padding: 0 16px; }
  .saracen-intro__play {
    width: 60px;
    height: 60px;
  }
  .saracen-intro__play svg {
    width: 22px;
    height: 22px;
  }
}
