/* archivos/page.css */
/* ===== ESTILOS ESPECÍFICOS DE PÁGINAS INDIVIDUALES ===== */

/* ===== VIDEO CONTAINER ===== */
.video-container {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  
  
  width: 77%;
  margin-left: auto;
  margin-right: auto;
}

.video-player {
  aspect-ratio: 16/9;
  border: none;
  display: block;
  
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== INFO DEL VIDEO ===== */
.video-info {
  padding: 20px;
}

.video-title {
  color: var(--title-color);
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.video-description {
  color: var(--meta-color);
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.video-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--card-border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--meta-color);
  font-size: 0.85rem;
}

.meta-item i {
  color: var(--title-color);
}

/* ===== BOTONES DE ACCIÓN ===== */
.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--title-color);
  color: white;
}

.btn-primary:hover {
  background: #0b3d91;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border-color: var(--card-border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #388E3C;
  transform: translateY(-2px);
}

.btn-live {
  background: var(--live-color);
  color: white;
}

.btn-live:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.btn i {
  font-size: 1.1rem;
}

/* ===== BADGES ===== */
.live-badge {
  display: inline-block;
  background: var(--live-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ===== CONTENIDO RELACIONADO ===== */
.related-content {
  margin-top: 40px;
}

.related-title {
  color: var(--title-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--card-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--title-color);
}

.related-thumbnail {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.related-info {
  padding: 15px;
}

.related-card-title {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.related-card-description {
  color: var(--meta-color);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ===== ESTADO DE CARGA ===== */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--meta-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--card-border);
  border-top: 4px solid var(--title-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ERROR STATE ===== */
.error-state {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--error-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}

.error-icon {
  font-size: 2.5rem;
  color: var(--error-color);
  margin-bottom: 15px;
}

.error-title {
  color: var(--error-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.error-message {
  color: var(--meta-color);
  margin-bottom: 20px;
}

/* ===== RESPONSIVE PARA PÁGINAS ===== */
@media (max-width: 768px) {
	
  .video-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.video-player {
  aspect-ratio: 16/9;
  border: none;
  display: block;
  
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

  .video-title {
    font-size: 1.5rem;
  }
  
  .video-description {
    font-size: 0.95rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
	
	  .video-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.video-player {
  aspect-ratio: 16/9;
  border: none;
  display: block;
  
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

  .video-info {
    padding: 15px;
  }
  
  .video-title {
    font-size: 1.3rem;
  }
  
  .video-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* En archivos/page.css - Agregar estas reglas */

/* Estilos para el contenido relacionado */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-card {
  display: block;
  text-decoration: none !important; /* ← QUITA EL SUBRAYADO */
  color: inherit !important; /* ← MANTIENE EL COLOR DEL TEXTO */
  background: var(--card-bg, #1e1e1e);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color, #333);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none !important; /* ← ASEGURA QUE NO APAREZCA AL HOVER */
}

.related-card:visited {
  color: inherit !important; /* ← EVITA EL COLOR MORADO DE VISITADOS */
}

.related-card:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color, #2196F3);
}

/* Quitar estilos por defecto de enlaces dentro del contenido relacionado */
.related-card,
.related-card h4,
.related-card p,
.related-card .related-info,
.related-card .related-card-title,
.related-card .related-card-description {
  text-decoration: none !important;
  color: inherit !important;
}

/* Thumbnail */
.related-thumbnail {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color, #333);
}

/* Info container */
.related-info {
  padding: 1rem;
}

.related-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color, #ffffff);
  text-decoration: none !important;
}

.related-card-description {
  font-size: 0.9rem;
  color: var(--text-secondary, #cccccc);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  text-decoration: none !important;
}

/* Live badge */
.live-badge {
  background: #ff0000;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  left: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.thumbnail-container {
  position: relative;
}

/* ===== TEMA DINÁMICO ===== */
/* Tema oscuro para el body */
body.dark-mode {
  height: 100% !important;
  background-color: #121212 !important;
  color: #ffffff !important;
}

/* Tema claro para el body */
body.light-mode {
  height: 100% !important;
  background-color: #ffffff !important;
  color: #121212 !important;
}
/* Asegurar que html y body ocupen el 100% */
html, body {
  height: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.dark-mode .video-info,
body.dark-mode .related-card,
body.dark-mode .video-container,
body.dark-mode #videoContent > * {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #333 !important;
}

body.light-mode .video-info,
body.light-mode .related-card,
body.light-mode .video-container,
body.light-mode #videoContent > * {
  background-color: #ffffff !important;
  color: #121212 !important;
  border-color: #ddd !important;
}

/* Asegurar que todos los elementos dentro hereden el tema */
body.dark-mode .video-info *:not(.btn):not(.live-badge),
body.dark-mode .related-card *:not(.btn):not(.live-badge) {
  color: #ffffff !important;
}

body.light-mode .video-info *:not(.btn):not(.live-badge),
body.light-mode .related-card *:not(.btn):not(.live-badge) {
  color: #121212 !important;
}

/* Texto secundario */
body.dark-mode .video-description,
body.dark-mode .video-meta span,
body.dark-mode .related-card-description {
  color: #cccccc !important;
}

body.light-mode .video-description,
body.light-mode .video-meta span,
body.light-mode .related-card-description {
  color: #666666 !important;
}

/* Fuerza el tema en elementos específicos */
.video-container,
.video-info,
.related-card,
.action-buttons,
.video-meta {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}