/* ==========================================================================
   MEDIOS CHUBUT - SISTEMA DE ESTILOS
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b1d3a;
}
::-webkit-scrollbar-thumb {
  background: #c99c38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e6b955;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY HIERARCHY
   -------------------------------------------------------------------------- */
.font-serif {
  font-family: 'Playfair Display', 'Cinzel', 'Merriweather', Georgia, serif;
}
.font-body {
  font-family: 'Merriweather', Georgia, serif;
}

/* Drop Cap (Capitulare) for lead paragraphs */
.drop-cap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: 900;
  float: left;
  margin-right: 0.75rem;
  color: #c99c38;
}

/* --------------------------------------------------------------------------
   CARDS & HOVER EFFECTS
   -------------------------------------------------------------------------- */
.card-premium {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}
.card-premium .img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover .img-zoom {
  transform: scale(1.05);
}

/* Category Navigation Buttons */
.nav-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}
.nav-btn:hover {
  color: #c99c38;
  background: rgba(201, 156, 56, 0.1);
}
.nav-btn.active {
  color: #c99c38;
  background: rgba(201, 156, 56, 0.15);
  border-bottom: 2px solid #c99c38;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quick Edit Mode Outline */
.quick-editable-card {
  position: relative;
  outline: 2px dashed #f59e0b !important;
  outline-offset: 4px;
}
.quick-editable-card::after {
  content: "✏️ Editar";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 30;
  pointer-events: none;
}

/* Category Badges */
.badge-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-politica { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-economia { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-mundo { background: rgba(168, 85, 247, 0.15); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-sociedad { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-deportes { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-video { background: rgba(244, 63, 94, 0.15); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-audio { background: rgba(20, 184, 166, 0.15); color: #0d9488; border: 1px solid rgba(20, 184, 166, 0.3); }

.dark .badge-politica { color: #60a5fa; }
.dark .badge-economia { color: #34d399; }
.dark .badge-mundo { color: #c084fc; }
.dark .badge-sociedad { color: #fbbf24; }
.dark .badge-deportes { color: #f87171; }
.dark .badge-video { color: #fb7185; }
.dark .badge-audio { color: #2dd4bf; }

/* City edition filter */
.city-filter-btn {
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.city-filter-btn:hover {
  color: #a8791f;
  background: rgba(201, 156, 56, 0.1);
}
.city-filter-btn.active {
  color: #0b1d3a;
  background: rgba(201, 156, 56, 0.2);
  border-color: rgba(201, 156, 56, 0.55);
}
.dark .city-filter-btn { color: #cbd5e1; }
.dark .city-filter-btn.active { color: #f3d58b; }

/* Carrusel diario */
.daily-carousel-card {
  min-height: 18rem;
}
.daily-carousel-control,
.daily-carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.daily-carousel-control {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: #0b1d3a;
  background: rgba(201, 156, 56, 0.18);
}
.daily-carousel-control:hover {
  background: rgba(201, 156, 56, 0.38);
  transform: scale(1.05);
}
.dark .daily-carousel-control { color: #f3d58b; }
.daily-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #cbd5e1;
}
.daily-carousel-dot.active {
  width: 1.25rem;
  background: #c99c38;
}

.image-credit {
  z-index: 2;
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}
.image-credit:hover { text-decoration: underline; }
