/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 *
 *= require @picocss/pico/css/pico.min
 *= require ./config/variables
 *= require ./config/typography
 *= require ./config/pico_overrides
 *= require contact
 *= require ./components/layout_adjustments
 *= require ./components/header
 *= require ./components/latest_news_styles
 *= require ./components/bottom_nav
 *= require ./components/categories_carousel
 *= require ./components/category_menu
 *= require ./components/category_show
 *= require ./components/video_modal_styles
 *= require ./components/news_carousel
 *= require ./components/search_bar
 *= require ./components/touch_interactions
 *= require ./components/entre_voces_section_styles
 *= require ./components/footer
 *= require_self
 *= require ./components/articles
 */

/* Estilos específicos de application.css que ya existían */
html, body{
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--pico-background-color);
  color: var(--color-text-primary);
  min-height: 100vg;
  display: flex!important;
  flex-direction: column !important;
}

main.container {
  flex: 1 !important;
  display: flex;
  flex-direction: column;
}

.main-header {
  flex-shrink: 0;
}

.envoz-footer {
  flex-shrink: 0;
  margin-top: auto !important;
}

.blinking {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Mantenemos los estilos de audio-player que ya estaban en el archivo original */
.audio-player-container {
}

.audio-player-container audio {
  width: 100%;
  margin-bottom: 0.25rem;
}

.audio-status {
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-status.processing {
  background-color: var(--info-color, #dbeafe);
  color: var(--info-text, #1e40af);
}

.audio-status.failed {
  background-color: var(--error-color, #fee2e2);
  color: var(--error-text, #b91c1c);
}

.progress {
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
  width: 100%;
}

.highlighted-word {
  background-color: #fef08a;
  border-radius: 0.125rem;
  padding: 0.125rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--primary-color, #2563eb);
  color: white;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--primary-hover, #1d4ed8);
}

.btn i {
  font-size: 1rem;
}

/* Categories index */
.category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.category-div {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  gap: 1rem;
  width: 100%!important;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: background 0.3s ease;
}
.category-div:hover {
  background-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.icon-circle {
  width: 2.2rem;
  height: 2.2rem;
}
/* End Categories index */

/* Category show */
.category-head {
  display: flex;
  gap: 0.75rem;
  text-align: left!important;
  margin-bottom: 2rem;
}

.category-tag {
  width: 1rem;
  height: 3rem;
  border-radius: 0.25rem;
  background-color: #8F71CF;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-decoration: none;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-date {
  font-size: 0.75rem;
  color: #ccc;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.card-subtitle {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.card-author {
  font-size: 0.8rem;
  color: #ddd;
}
.scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.scroll-cards {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.article-card-scroll {
  flex: 0 0 auto;
  width: 336px;
  height: 518px;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.card-image-scroll {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  background: linear-gradient(
    180deg,
    rgba(143, 113, 207, 0.008) 50%,
    rgba(20, 18, 25, 0.8) 100%
  );
  transition: 0.5s ease-out all;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s ease-in-out;
}
.gradient-overlay h3,
.gradient-overlay p,
.gradient-overlay small {
  color: white;
}
.article-card-scroll:hover .gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,       
    rgba(0, 0, 0, 0.95) 100%        
  );
  transition: 0.5s ease-in all;
}
.card-info {
  color: white;
  width: 100%;
}

.card-date {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.card-subtitle {
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.card-author {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.popular-heading {
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ccc;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

.circle-dot {
  width: 20px;
  height: 20px;
  background-color: #00004d;
  border-radius: 50%;
}

.popular-link {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.popular-item.highlighted .popular-link span {
  background-color: #ffe500;
  font-weight: bold;
  color: black;
  padding: 0.1rem 0.25rem;
}

.tag-label {
  background: #ffe500;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* contenedor grid CTEGORY */
.category-show .category-grid {
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: stretch;
  padding-bottom: 30px;
}

/* pantalla pequeña: pasa a 1 columna */
@media (max-width: 1020px) {
  .category-show .category-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    margin-top: 2rem;
  }
}

/* ========== ETIQUETA DESTACADO PARA CARDS ========== */
.destacado-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(155deg, #ba101b, #E4202D);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 1px 6px rgba(255, 53, 53, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.destacado-badge .badge-icon {
  width: 12px;
  height: 12px;
  filter: invert(1) brightness(2);
  flex-shrink: 0;
}

/* Para mobile */
@media (max-width: 480px) {
  .destacado-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 8px;
    left: 8px;
    gap: 3px;
  }
  
  .destacado-badge .badge-icon {
    width: 10px;
    height: 10px;
  }
}

/* ========== ETIQUETA DESTACADO EN SIDEBAR ========== */
.sidebar-destacado-badge {
  display: inline-block; /* Cambia a block */
  background: linear-gradient(155deg, #ba101b, #E4202D);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 6px;
  box-shadow: 0 1px 6px rgba(255, 53, 53, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: top;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-destacado-badge .badge-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  filter: invert(1) brightness(2);
  margin-right: 3px;
  vertical-align: middle;
}

/* ========== ETIQUETA DESTACADO EN ARTÍCULO INDIVIDUAL ========= */
.article-destacado-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(155deg, #ba101b, #E4202D);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 8px;
  margin-bottom: 4px;
  box-shadow: 0 1px 6px rgba(255, 53, 53, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  gap: 3px;
  vertical-align: middle;
}

.article-destacado-badge .badge-icon {
  width: 10px;
  height: 10px;
  filter: invert(1) brightness(2);
  flex-shrink: 0;
}

@import "components/audio_player";
