/* Manifesto Modal - Derun Studio */

.manifesto-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.manifesto-modal.active {
  display: flex;
  opacity: 1;
}

.manifesto-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.manifesto-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  z-index: 2;
  border-radius: 32px 36px 34px 38px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.manifesto-modal.active .manifesto-modal-content {
  transform: scale(1);
}

/* Close Button */
.manifesto-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(139, 106, 78, 0.9);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.manifesto-modal-close:hover {
  background: var(--doga-yesil);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Video Background */
.manifesto-modal-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.manifesto-modal-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#manifestoModalVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.1);
}

.manifesto-modal-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 106, 78, 0.8) 0%,
    rgba(124, 154, 109, 0.7) 50%,
    rgba(139, 106, 78, 0.8) 100%
  );
  backdrop-filter: blur(5px);
  z-index: 2;
}

/* Text Content */
.manifesto-modal-text-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  overflow-y: auto;
}

.manifesto-modal-icon-wrapper {
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.manifesto-modal-icon {
  width: 80px;
  height: auto;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

.manifesto-modal-title {
  font-family: var(--font--serif);
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin: 0 0 32px 0;
  line-height: 1.2;
  text-align: center;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

.manifesto-modal-text-content {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 28px 32px 30px 34px;
  border: 3px solid white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.manifesto-modal-paragraph {
  font-size: 17px;
  line-height: 1.8;
  color: var(--derun-toprak);
  margin: 0 0 20px 0;
  font-weight: 500;
  text-align: center;
}

.manifesto-modal-paragraph:last-of-type {
  margin-bottom: 28px;
}

.manifesto-modal-quote {
  position: relative;
  padding: 28px;
  margin: 28px 0;
  background: linear-gradient(
    135deg,
    var(--derun-toprak) 0%,
    var(--derun-toprak) 100%
  );
  border-left: 4px solid var(--doga-yesil);
  border-radius: 20px 24px 22px 26px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manifesto-quote-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--doga-yesil);
  opacity: 0.4;
}

.manifesto-modal-quote-text {
  font-family: var(--font--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--nefes-beji);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.manifesto-modal-text-content .cta-main {
  margin-top: 28px;
  background: var(--doga-yesil);
  color: white;
  border-color: var(--doga-yesil);
  box-shadow: 4px 4px 0px rgba(124, 154, 109, 0.3);
  display: inline-flex;
  width: auto;
}

.manifesto-modal-text-content .cta-main:hover {
  background: var(--derun-toprak);
  border-color: var(--derun-toprak);
  box-shadow: 6px 6px 0px rgba(139, 106, 78, 0.4);
  transform: translateY(-4px);
  color: white;
}

/* Scrollbar Styling */
.manifesto-modal-text-wrapper::-webkit-scrollbar {
  width: 8px;
}

.manifesto-modal-text-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.manifesto-modal-text-wrapper::-webkit-scrollbar-thumb {
  background: var(--doga-yesil);
  border-radius: 10px;
}

.manifesto-modal-text-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--derun-toprak);
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .manifesto-modal-content {
    width: 95%;
    height: 95vh;
  }

  .manifesto-modal-title {
    font-size: 38px;
  }

  .manifesto-modal-text-content {
    padding: 32px;
  }

  .manifesto-modal-paragraph {
    font-size: 16px;
  }

  .manifesto-modal-quote-text {
    font-size: 16px;
  }

  .manifesto-modal-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 767px) {
  .manifesto-modal-content {
    border-radius: 24px 28px 26px 30px;
  }

  .manifesto-modal-text-wrapper {
    padding: 40px 20px;
  }

  .manifesto-modal-icon {
    width: 60px;
  }

  .manifesto-modal-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .manifesto-modal-text-content {
    padding: 24px;
  }

  .manifesto-modal-paragraph {
    font-size: 15px;
  }

  .manifesto-modal-quote {
    padding: 20px;
    margin: 20px 0;
  }

  .manifesto-quote-icon {
    width: 30px;
    height: 30px;
  }

  .manifesto-modal-quote-text {
    font-size: 15px;
  }

  .manifesto-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .manifesto-modal-close svg {
    width: 24px;
    height: 24px;
  }
}

/* Prevent body scroll when modal is open */
body.manifesto-modal-open {
  overflow: hidden;
}
