/* ==============================================
   SEÇÃO APRESENTAÇÃO EM VÍDEO - Premium
   Player de vídeo profissional com modal elegante
============================================== */

.video-presentation {
  padding: 8rem 0;
  background: 
    linear-gradient(135deg, #F5F0E8 0%, #E7D7C1 50%, #D4C4A8 100%);
  position: relative;
  overflow: hidden;
}

/* Fundo animado da seção */
.video-presentation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(93, 78, 55, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 90, 60, 0.04) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  animation: videoFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.video-presentation .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

/* Título da seção */
.video-presentation .section-title {
  margin-bottom: 2rem;
  position: relative;
}

.video-presentation .section-subtitle {
  margin-bottom: 4rem;
  font-size: 1.3rem;
  line-height: 1.7;
}

/* Container do preview do vídeo */
.video-preview-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  perspective: 1000px;
}

/* Thumbnail do vídeo com efeitos premium */
.video-thumbnail {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #3E2723 0%, #5D4E37 100%);
  border: 3px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.video-thumbnail:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.3),
    0 20px 40px rgba(230, 57, 70, 0.1);
}

/* Imagem do thumbnail */
.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
  filter: brightness(0.8) contrast(1.1);
}

.video-thumbnail:hover .thumbnail-image {
  transform: scale(1.08);
  filter: brightness(0.9) contrast(1.2);
}

/* Botão de play premium */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4));
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.2);
  filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.6));
}

/* Ícone de play melhorado */
.play-icon {
  width: 80px;
  height: 80px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: playPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.play-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: iconShine 3s ease-in-out 1s infinite;
}

.play-icon svg {
  width: 35px;
  height: 35px;
  margin-left: 3px;
  fill: var(--primary-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Overlay com informações */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: 
    linear-gradient(
      transparent 0%, 
      rgba(0, 0, 0, 0.3) 30%,
      rgba(0, 0, 0, 0.8) 100%
    );
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
  transition: all 0.5s ease;
}

.video-thumbnail:hover .video-overlay {
  background: 
    linear-gradient(
      transparent 0%, 
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.9) 100%
    );
}

.video-overlay h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
  opacity: 0.95;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* ==============================================
   MODAL DO VÍDEO - Design Premium
============================================== */

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: modalFadeIn 0.4s ease-out;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Backdrop com blur */
.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  animation: backdropFadeIn 0.4s ease-out;
}

/* Conteúdo do modal */
.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: 
    linear-gradient(145deg, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(248, 250, 252, 0.9) 100%);
  border-radius: 25px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 15px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 10000;
  animation: modalSlideIn 0.5s ease-out;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
}

/* Header do modal */
.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 25px 25px 0 0;
}

.video-modal-header h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Botão de fechar premium */
.video-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Container do vídeo */
.professional-video-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 0 0 25px 25px;
  overflow: hidden;
}

.professional-video-container video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Loading do vídeo */
.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.video-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner premium */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

/* ==============================================
   ANIMAÇÕES PREMIUM
============================================== */

@keyframes videoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.3deg); }
  50% { transform: translateY(-4px) rotate(-0.3deg); }
  75% { transform: translateY(-12px) rotate(0.2deg); }
}

@keyframes playPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 
      0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@keyframes iconShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropFadeIn {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(15px);
  }
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==============================================
   RESPONSIVIDADE PREMIUM
============================================== */

@media (max-width: 992px) {
  .video-presentation {
    padding: 6rem 0;
  }
  
  .video-thumbnail {
    border-radius: 25px;
  }
  
  .play-icon {
    width: 70px;
    height: 70px;
  }
  
  .play-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .video-overlay {
    padding: 2.5rem 1.5rem 1.8rem;
  }
  
  .video-overlay h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .video-presentation {
    padding: 5rem 0;
  }
  
  .video-thumbnail {
    border-radius: 20px;
    border-width: 2px;
  }
  
  .video-thumbnail:hover {
    transform: translateY(-10px) scale(1.01);
  }
  
  .play-icon {
    width: 60px;
    height: 60px;
  }
  
  .play-icon svg {
    width: 25px;
    height: 25px;
  }
  
  .video-overlay {
    padding: 2rem 1.2rem 1.5rem;
  }
  
  .video-overlay h3 {
    font-size: 1.4rem;
  }
  
  .video-overlay p {
    font-size: 1rem;
  }
  
  .video-modal-content {
    width: 95%;
    margin: 1rem;
    border-radius: 20px;
  }
  
  .video-modal-header {
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
  }
  
  .video-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .video-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  
  .professional-video-container {
    border-radius: 0 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .video-presentation {
    padding: 4rem 0;
  }
  
  .video-thumbnail {
    border-radius: 15px;
    aspect-ratio: 16/10;
  }
  
  .play-icon {
    width: 50px;
    height: 50px;
  }
  
  .play-icon svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
  }
  
  .video-overlay {
    padding: 1.5rem 1rem 1.2rem;
  }
  
  .video-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .video-overlay p {
    font-size: 0.95rem;
  }
  
  .video-modal-content {
    width: 98%;
    margin: 0.5rem;
    border-radius: 15px;
  }
  
  .video-modal-header {
    padding: 1rem 1.2rem;
    border-radius: 15px 15px 0 0;
  }
  
  .video-modal-header h3 {
    font-size: 1rem;
  }
  
  .video-modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.4rem;
  }
  
  .professional-video-container {
    border-radius: 0 0 15px 15px;
  }
  
  .professional-video-container video {
    max-height: 50vh;
  }
}

/* ==============================================
   EFEITOS ESPECIAIS
============================================== */

/* Efeito de ondas ao clicar */
.video-thumbnail:active {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(230, 57, 70, 0.4);
  }
  100% {
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.2),
      0 0 0 20px rgba(230, 57, 70, 0);
  }
}

/* Loading state para thumbnail */
.video-thumbnail.loading .thumbnail-image {
  filter: blur(5px) brightness(0.7);
}

.video-thumbnail.loading .play-button {
  opacity: 0.5;
}
