/**
 * Estilos para el banner de notificación de actualización
 */

#update-notification-banner {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  gap: 16px;
}

#update-notification-banner.show {
  top: 0;
}

.update-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.update-notification-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.update-notification-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.update-notification-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.update-notification-description {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.3;
}

.update-notification-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.update-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.update-btn:active {
  transform: scale(0.95);
}

#update-reload-btn {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#update-reload-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#update-dismiss-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#update-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive: Para pantallas pequeñas */
@media (max-width: 640px) {
  #update-notification-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .update-notification-content {
    width: 100%;
  }

  .update-notification-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .update-btn {
    flex: 1;
    padding: 10px 16px;
  }
}

/* Para tablets */
@media (max-width: 768px) {
  .update-notification-description {
    display: none;
  }
}

/* Animación de entrada adicional */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#update-notification-banner.show {
  animation: slideInDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Accesibilidad: Focus visible */
.update-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
