
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInBackground 0.4s ease;
}

.video-popup.show {
  display: flex;
}


.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideIn 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.popup-header {
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
}

.popup-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.popup-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 300;
}


.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}


.close-popup {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10001;
}

.close-popup:hover {
  transform: scale(1.1) rotate(90deg);
  background: linear-gradient(135deg, #ff4757, #ff3742);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}


.popup-footer {
  text-align: center;
  margin-top: 25px;
  color: #fff;
}

.popup-footer a {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(18, 76, 15, 0.3);
}

.popup-footer a:hover {
  background: linear-gradient(135deg, #fff, #f1f1f1);
  color: #124c0f;
  border: 2px solid #124c0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 76, 15, 0.4);
}

/* Animações */
@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@media (max-width: 768px) {
  .video-popup-content {
    margin: 15px;
    width: 95%;
    padding: 20px;
    border-radius: 15px;
  }

  .popup-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .popup-header p {
    font-size: 14px;
  }

  .close-popup {
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .popup-footer a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .video-wrapper {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .video-popup-content {
    margin: 10px;
    width: 98%;
    padding: 15px;
  }

  .popup-header h2 {
    font-size: 20px;
  }

  .popup-header p {
    font-size: 13px;
  }

  .close-popup {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}


.video-wrapper.loading {
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  background-size: 400% 400%;
  animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.close-popup:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.popup-footer a:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}


.popup-footer a.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 15px rgba(18, 76, 15, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(18, 76, 15, 0.6);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 5px 15px rgba(18, 76, 15, 0.3);
  }
}
