/**
 * @file
 * Estilos para RTVC en contenidos
 * Todos los estilos tienen el prefijo 'rtvc-' para evitar conflictos
 */

/* Wrapper principal */
.rtvc-contenidos-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
.rtvc-header {
  background-color: white;
}

.rtvc-logo {
  height: 50px;
  width: auto;
  border-right: 1px solid #b1b1b1;
  padding-right: 10px;
  margin-right: 10px;
  margin-left: 15px;
}

.rtvc-title-bar {
  width: 6px;
  height: 50px;
  background: #E20145;
  border-radius: 3px;
  flex-shrink: 0;
}

.rtvc-main-title {
  font-size: 32px;
  color: #0066cc;
  font-weight: bold;
}

/* Channel Header */
.rtvc-channel-logo {
  height: 30px;
  width: auto;
  border-right: 1px solid #b1b1b1;
  padding-right: 10px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.rtvc-channel-section:hover .rtvc-channel-logo {
  transform: scale(1.05);
}

.rtvc-channel-title {
  font-size: 24px;
  color: #444;
  font-weight: bold;
}

/* Content Cards */
.rtvc-content-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.rtvc-content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.rtvc-card-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.rtvc-card-image img {
  transition: transform 0.3s ease;
  object-fit: cover;
  object-position: left;
}

.rtvc-content-card:hover .rtvc-card-image > img {
  transform: scale(1.05);
}

/* Image Overlay + Channel Logo */
.rtvc-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.rtvc-image-logo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
}

.rtvc-image-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Video Play Button */
.rtvc-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.rtvc-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.rtvc-play-button svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Card Content Styles */
.rtvc-card-content {
  color: white;
}

.rtvc-card-content a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rtvc-card-content a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.rtvc-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.rtvc-card-description {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.95;
}

/* Color Variations - Gradientes para cada canal */
.card-purple .rtvc-card-content {
  background: linear-gradient(135deg, #6b2d8f 0%, #4a1d6b 100%);
}

.card-orange .rtvc-card-content {
  background: linear-gradient(135deg, #e89a3c 0%, #d67d1e 100%);
}

.card-brown .rtvc-card-content {
  background: linear-gradient(135deg, #c17a3a 0%, #a35d1a 100%);
}

.card-pink .rtvc-card-content {
  background: linear-gradient(135deg, #e94c89 0%, #d62865 100%);
}

.card-green .rtvc-card-content {
  background: linear-gradient(135deg, #7fb539 0%, #5d8e22 100%);
}

.card-black .rtvc-card-content {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.card-blue .rtvc-card-content {
  background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
}

.card-red .rtvc-card-content {
  background: linear-gradient(135deg, #E20145 0%, #b8012f 100%);
}

/* Animaciones de entrada */
.rtvc-channel-section {
  animation: rtvcFadeInUp 0.6s ease-out;
}

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

/* Shadow mejorada */
.rtvc-content-card.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .rtvc-main-title {
    font-size: 24px;
  }

  .rtvc-channel-title {
    font-size: 20px;
  }

  .rtvc-card-title {
    font-size: 18px;
  }

  .rtvc-card-description {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .rtvc-card-image {
    min-height: 200px;
  }

  .rtvc-main-title {
    font-size: 20px;
  }

  .rtvc-logo {
    height: 40px;
  }

  .rtvc-channel-logo {
    height: 25px;
  }

  .rtvc-channel-title {
    font-size: 18px;
  }

  .rtvc-card-title {
    font-size: 16px;
  }

  .rtvc-card-description {
    font-size: 13px;
  }

  .rtvc-play-button svg {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 768px) {
  /* En tablets y escritorio, las tarjetas ocupan más espacio */
  .rtvc-content-card .row {
    min-height: 280px;
  }
}

/* Modal de video */
#rtvcVideoModal .modal-body {
  padding: 0;
  background-color: #000;
}

#rtvcVideoModal .modal-content {
  background-color: transparent;
  border: none;
}

#rtvcVideoModal .modal-header {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-bottom: none;
}

#rtvcVideoModal .btn-close {
  filter: invert(1);
}

/* Fix para object-fit en navegadores antiguos */
.object-fit-cover {
  object-fit: cover;
}
