/**
 * YouTube Live Microfrontend Styles
 * Prefijo: ytlive-
 * Sin dependencias externas, CSS vanilla puro
 */

/* Reset básico para el widget container */
#youtube-live-widget {
  all: initial;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  animation: ytliveSlideInRight 0.5s ease-out;
}

/* ==========================================================================
   Botón "En vivo"
   ========================================================================== */

.ytlive-widget-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ytlive-btn {
  all: initial;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #FF6B6B;
  color: #ffffff;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: ytlivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ytlive-btn:hover {
  background-color: #FF5252;
}

.ytlive-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ytlive-btn:hover::before {
  width: 300px;
  height: 300px;
}

.ytlive-btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ytlive-btn-text {
  color: currentColor;
}

.ytlive-title-text {
  font-size: 10px;
  font-weight: 300;
  color: #fff;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.ytlive-modal {
  all: initial;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ytliveFadeIn 0.3s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ytlive-modal.ytlive-modal-open {
  display: flex;
}

.ytlive-modal-content {
  all: initial;
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 1152px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: ytliveSlideUp 0.4s ease-out;
  font-family: inherit;
}

/* Header del modal */
.ytlive-modal-header {
  all: initial;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: inherit;
}

.ytlive-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ytlive-badge-live {
  all: initial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #dc2626;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  animation: ytlivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-family: inherit;
}

.ytlive-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
}

.ytlive-modal-title {
  all: initial;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: inherit;
}

.ytlive-modal-close {
  all: initial;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ytlive-modal-close:hover {
  background-color: #f3f4f6;
}

.ytlive-modal-close-icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
}

/* Body del modal */
.ytlive-modal-body {
  padding: 16px;
}

/* Alert de ayuda */
.ytlive-alert {
  all: initial;
  display: none;
  margin-bottom: 16px;
  padding: 16px;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-family: inherit;
}

.ytlive-alert.ytlive-alert-show {
  display: flex;
}

.ytlive-alert.ytlive-alert-hide {
  display: none !important;
}

/* Alert de error (error 153) */
.ytlive-alert.ytlive-alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

.ytlive-alert.ytlive-alert-error .ytlive-alert-icon {
  color: #dc2626;
}

.ytlive-alert.ytlive-alert-error .ytlive-alert-title {
  color: #991b1b;
}

.ytlive-alert.ytlive-alert-error .ytlive-alert-text {
  color: #dc2626;
}

.ytlive-alert.ytlive-alert-error .ytlive-alert-btn-primary {
  background-color: #dc2626;
}

.ytlive-alert.ytlive-alert-error .ytlive-alert-btn-primary:hover {
  background-color: #b91c1c;
}

.ytlive-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.ytlive-alert-icon {
  width: 24px;
  height: 24px;
  color: #d97706;
  flex-shrink: 0;
}

.ytlive-alert-body {
  flex: 1;
}

.ytlive-alert-title {
  all: initial;
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 4px;
  font-family: inherit;
}

.ytlive-alert-text {
  all: initial;
  display: block;
  font-size: 14px;
  color: #b45309;
  margin-bottom: 12px;
  font-family: inherit;
}

.ytlive-alert-btn {
  all: initial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #d97706;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.ytlive-alert-btn:hover {
  background-color: #b45309;
}

.ytlive-alert-btn-primary {
  all: initial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #dc2626;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ytlive-alert-btn-primary:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2);
}

.ytlive-alert-close {
  all: initial;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background-color: transparent;
  border: none;
  color: #d97706;
  cursor: pointer;
}

.ytlive-alert-close:hover {
  color: #b45309;
}

.ytlive-alert-close-icon {
  width: 20px;
  height: 20px;
}

/* Container del video */
.ytlive-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.ytlive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Información del video */
.ytlive-info {
  margin-top: 24px;
}

.ytlive-info-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ytlive-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ytlive-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

.ytlive-viewers-icon {
  width: 20px;
  height: 20px;
  color: inherit;
}

.ytlive-channel {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.ytlive-watch-btn {
  all: initial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #dc2626;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.ytlive-watch-btn:hover {
  background-color: #b91c1c;
}

.ytlive-watch-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ytlive-description {
  font-size: 14px;
  color: #374151;
  white-space: pre-line;
  background-color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  max-height: 128px;
  overflow-y: auto;
}

.ytlive-description::-webkit-scrollbar {
  width: 6px;
}

.ytlive-description::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ytlive-description::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.ytlive-description::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==========================================================================
   Animaciones
   ========================================================================== */

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

@keyframes ytliveSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ytlivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes ytliveSlideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .ytlive-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .ytlive-modal {
    padding: 0;
  }

  .ytlive-modal-title {
    font-size: 14px;
  }

  .ytlive-btn {
    padding: 6px 12px;
  }

  .ytlive-btn-text {
    font-size: 10px;
  }

  .ytlive-modal-body {
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  .ytlive-modal-body {
    padding: 24px;
  }
}


/*# sourceMappingURL=youtube-live.css.map*/