/* Minimalist Video Player - Design Clean e Elegante */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.custom-video-player {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: block;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.custom-video-player:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Video Background Minimalista */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Play Button Minimalista */
.play-button-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.play-button:hover {
  transform: scale(1.05);
  background: rgba(59, 130, 246, 1);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.play-icon {
  width: 24px;
  height: 24px;
  color: white;
  margin-left: 2px;
  transition: all 0.3s ease;
}

.play-button:hover .play-icon {
  transform: scale(1.1);
}

/* Video Info Minimalista */
.video-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 5;
  color: white;
}

.video-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.video-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.video-duration:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Success Badge Minimalista */
.success-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.success-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.badge-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* YouTube Embed - Corrigido para visibilidade */
.youtube-embed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 15;
  transform: scale(0.95);
}

.youtube-embed.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.close-video {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Loading Animation Minimalista */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-video-player {
    height: 320px;
    border-radius: 10px;
  }

  .play-button {
    width: 70px;
    height: 70px;
  }

  .play-icon {
    width: 20px;
    height: 20px;
  }

  .video-info {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .video-info h3 {
    font-size: 1.2rem;
  }

  .video-info p {
    font-size: 0.9rem;
  }

  .success-badge {
    top: 15px;
    right: 15px;
    padding: 0.75rem;
  }

  .badge-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .badge-number {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .custom-video-player {
    height: 280px;
    border-radius: 8px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    width: 18px;
    height: 18px;
  }

  .video-info {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }

  .video-info h3 {
    font-size: 1.1rem;
  }

  .video-info p {
    font-size: 0.85rem;
  }

  .success-badge {
    top: 10px;
    right: 10px;
    padding: 0.5rem;
  }

  .badge-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .badge-number {
    font-size: 1rem;
  }

  .badge-label {
    font-size: 0.7rem;
  }
}

/* Animações de Entrada Suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-video-player {
  animation: fadeInUp 0.6s ease-out;
}
