/*
Theme Name: La VH 94.3 FM Theme (Soporte Completo de Entradas & Widgets)
Theme URI: https://lavhradiocomunitaria.com
Author: Personal Assistant
Description: Tema v6 completo con soporte para páginas de entrada individual (single.php), páginas estáticas (page.php), áreas de widgets dinámicos para publicidad/clima y reproductor/facebook persistente.
Version: 6.0.0
Text Domain: vh-radio
*/

:root {
  --primary-red: #B81D13;
  --primary-red-dark: #8C120B;
  --accent-yellow: #FFC700;
  --accent-yellow-light: #FFE885;
  --dark-bg: #12151A;
  --card-bg: #1E232B;
  --card-border: #2E3540;
  --text-main: #F0F4F8;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--white);
}

/* HEADER STICKY */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 21, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--primary-red);
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo, .brand-logo-img {
  max-height: 60px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(184, 29, 19, 0.4));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-info h1, .brand-info .site-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.brand-info p, .brand-info .site-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* NAVEGACIÓN Y HAMBURGUESA */
.main-nav-container {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-navigation li a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
  color: var(--accent-yellow);
  background: rgba(255, 199, 0, 0.1);
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--accent-yellow);
}

.menu-toggle-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* REPRODUCTOR SKIN MODERNO */
.vh-custom-player {
  background: linear-gradient(135deg, rgba(184, 29, 19, 0.9) 0%, rgba(140, 18, 11, 0.95) 100%);
  padding: 6px 18px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(184, 29, 19, 0.35);
  border: 1px solid rgba(255, 199, 0, 0.35);
}

.vh-play-btn {
  background-color: var(--accent-yellow);
  color: #000;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.vh-play-btn:hover {
  transform: scale(1.08);
  background-color: var(--white);
  box-shadow: 0 0 15px rgba(255, 199, 0, 0.6);
}

.vh-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #12151A;
}

.vh-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vh-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vh-live-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vh-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.vh-eq-bar {
  width: 3px;
  background-color: var(--accent-yellow);
  border-radius: 2px;
  height: 3px;
}

.vh-custom-player.is-playing .vh-eq-bar:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite alternate; }
.vh-custom-player.is-playing .vh-eq-bar:nth-child(2) { animation: eqBar 0.5s ease-in-out infinite alternate 0.2s; }
.vh-custom-player.is-playing .vh-eq-bar:nth-child(3) { animation: eqBar 0.9s ease-in-out infinite alternate 0.1s; }

@keyframes eqBar {
  0% { height: 2px; }
  100% { height: 10px; }
}

.vh-signal-text {
  font-size: 0.75rem;
  color: #F0F4F8;
  font-weight: 600;
  white-space: nowrap;
}

.vh-volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.vh-volume-icon {
  background: none;
  border: none;
  color: var(--accent-yellow);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.vh-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 65px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.vh-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-yellow);
  cursor: pointer;
  transition: transform 0.1s;
}

.vh-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* LAYOUT MAIN GRID */
.main-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .menu-toggle-btn {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-navigation li a {
    display: block;
    padding: 8px 12px;
  }

  .main-wrapper {
    grid-template-columns: 1fr;
  }

  .vh-custom-player {
    width: 100%;
    justify-content: space-between;
  }
}

/* SECTIONS & TITLES */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent-yellow);
  padding-left: 12px;
}

/* GRIDS NOTICIAS Y GALERÍA */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.news-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  border-color: var(--primary-red);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 16px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card h3 a {
  color: var(--white);
}

.news-card h3 a:hover {
  color: var(--accent-yellow);
}

.news-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-section {
  margin-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--card-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 20px 10px 8px 10px;
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 500;
}

/* PÁGINA INDIVIDUAL DE LA NOTA (SINGLE ARTICLE) */
.single-article {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.single-article-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 15px;
}

.single-article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.single-article-meta {
  font-size: 0.85rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  display: flex;
  gap: 15px;
}

.single-featured-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid var(--card-border);
}

.single-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #E2E8F0;
}

.single-article-content p {
  margin-bottom: 1.5em;
}

.single-article-content h1, 
.single-article-content h2, 
.single-article-content h3 {
  color: var(--white);
  margin: 1.5em 0 0.5em 0;
}

.single-article-content blockquote {
  border-left: 4px solid var(--accent-yellow);
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* SIDEBAR & ÁREAS DE WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

/* ESTILOS PARA WIDGETS DINÁMICOS DE WORDPRESS EN SIDEBAR */
.widget {
  margin-bottom: 20px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-yellow);
  padding-left: 8px;
}

.facebook-widget-container {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
.site-footer {
  background-color: #0B0D10;
  border-top: 1px solid var(--card-border);
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer span {
  color: var(--accent-yellow);
}
