/* Estilos para el Sistema de Video de Distritos */

/* Botón flotante de YouTube */
.dz-youtube-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 3px solid rgba(255, 255, 255, 0.2);
  animation: pulse 2s infinite;
}

.dz-youtube-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, #CC0000, #AA0000);
  animation: none;
}

.dz-youtube-float:active {
  transform: scale(0.95);
}

.dz-youtube-float-text {
  position: absolute;
  right: 70px;
  background: #FF0000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dz-youtube-float-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid #FF0000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.dz-youtube-float:hover .dz-youtube-float-text {
  opacity: 1;
}

/* Animación de pulso */
@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5); }
  100% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3); }
}

/* Botón de YouTube en secciones */
.dz-btn-youtube {
  background: linear-gradient(135deg, #FF0000, #CC0000) !important;
  color: white !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.dz-btn-youtube:hover {
  background: linear-gradient(135deg, #CC0000, #AA0000) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  color: white !important;
}

.dz-btn-youtube i {
  font-size: 1rem;
}

/* Modal de Video */
.dz-video-modal .modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.dz-video-modal-header {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border-bottom: none;
  padding: 1.5rem;
}

.dz-video-modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.dz-video-icon {
  font-size: 1.5rem;
  color: white;
}

.dz-video-modal-body {
  padding: 1.5rem;
}

.dz-video-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 400px;
  background: #000;
}

/* Loader de video - DESHABILITADO (YouTube tiene su propio loader)
.dz-video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dz-video-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dz-video-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

.dz-video-loader p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}
*/

/* Iframe de video */
.dz-video-wrapper iframe {
  background: #000;
}

/* ELIMINADO - No se necesita transición de opacidad
.dz-video-wrapper iframe {
  background: #000;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dz-video-wrapper iframe.loaded {
  opacity: 1;
}
*/

.dz-video-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.dz-video-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dz-video-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.dz-video-modal-footer .btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dz-video-modal-footer .btn:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .dz-youtube-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .dz-youtube-float-text {
    display: none;
  }

  .dz-video-modal .modal-dialog {
    margin: 0.5rem;
  }

  .dz-video-modal-header,
  .dz-video-modal-body,
  .dz-video-modal-footer {
    padding: 1rem;
  }

  .dz-video-modal-header .modal-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .dz-youtube-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .dz-video-modal-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .dz-video-modal-footer {
    flex-direction: column;
  }
}