/*
Theme Name: La VH 94.3 FM Theme (Editable)
Theme URI: https://lavh943fm.com
Author: Personal Assistant
Description: Tema personalizado, ligero y moderno para La VH 94.3 FM - La radio comunitaria de Valle Hermoso. v2 con opciones editables desde el Personalizador de WordPress (ancho de logo, streaming URL, slogan, widget de Facebook).
Version: 2.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 & PLAYER STICKY */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 21, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--primary-red);
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.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.3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.brand-info h1 span, .brand-info .site-title span {
  color: var(--accent-yellow);
}

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

/* PLAYER STYLING */
.player-box {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(184, 29, 19, 0.4);
  border: 1px solid rgba(255, 199, 0, 0.3);
}

.live-badge {
  background-color: var(--accent-yellow);
  color: #000;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #D32F2F;
  border-radius: 50%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.audio-player {
  height: 36px;
  outline: none;
  max-width: 240px;
}

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

@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* SECTIONS */
.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;
}

/* NEWS GRID */
.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);
}

/* PHOTO GALLERY GRID */
.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;
}

/* SIDEBAR / SOCIALS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.facebook-widget-container {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
  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);
}
