/* ==========================================================================
   RADIO SAUSEC 99.5 FM - LAGUNA AZUL (Custom Top-Bar Player & Mobile-First CSS)
   Reconstrucción exacta con ingeniería inversa REA + Top Radio Player
   ========================================================================== */

:root {
    --sausec-green: #1b8415;
    --sausec-green-light: #56ca71;
    --sausec-blue: #0e98d6;
    --sausec-dark: #111111;
    --sausec-header-bg: #17212c;
    --topbar-height: 58px;
}

body {
    padding-top: var(--topbar-height);
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #555;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Cairo", sans-serif;
    letter-spacing: 0.5px;
}

.entry-meta .author,
.post-author,
.byline,
.author-name,
span.author,
.meta-author {
    display: none !important;
}

/* ==========================================================================
   1. REPRODUCTOR DE RADIO FIJO EN TOP BAR (FIXED TOP PLAYER)
   ========================================================================== */
.sausec-radio-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(90deg, #0b131b 0%, #112217 55%, #0d1b26 100%);
    border-bottom: 2px solid var(--sausec-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 0 15px;
}

.sausec-radio-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sausec-radio-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sausec-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: var(--sausec-green) !important;
    border: 2px solid #56ca71 !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(27, 132, 21, 0.6);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.sausec-play-btn:hover,
.sausec-play-btn.is-playing {
    background: #23a31c !important;
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(86, 202, 113, 0.85);
}

.sausec-station-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.sausec-station-title {
    font-family: "Cairo", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.sausec-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #888;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.sausec-live-dot.active {
    background-color: #ff2a2a;
    box-shadow: 0 0 8px #ff2a2a;
    animation: pulseLive 1.3s infinite;
}

@keyframes pulseLive {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.65; }
    100% { transform: scale(0.95); opacity: 1; }
}

.sausec-station-status {
    font-size: 0.78rem;
    color: #a7d7b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ecualizador Canvas en Tiempo Real */
.sausec-eq-wrapper {
    flex: 1;
    max-width: 480px;
    height: 40px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(86, 202, 113, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sausec-equalizer-canvas {
    width: 100%;
    height: 32px;
    display: block;
}

.sausec-eq-mode-btn {
    background: rgba(27, 132, 21, 0.25) !important;
    border: 1px solid rgba(86, 202, 113, 0.45) !important;
    color: #d0f4d7 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer;
    white-space: nowrap;
}

.sausec-eq-mode-btn:hover {
    background: var(--sausec-green) !important;
    color: #fff !important;
}

.sausec-radio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sausec-mute-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 4px !important;
    font-size: 1rem;
    cursor: pointer;
}

.sausec-volume-slider {
    width: 85px !important;
    height: 5px !important;
    padding: 0 !important;
    accent-color: var(--sausec-green-light);
    cursor: pointer;
    border: none !important;
}

.sausec-freq-pill {
    background: rgba(14, 152, 214, 0.2);
    border: 1px solid #0e98d6;
    color: #7bd6ff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ==========================================================================
   2. BANNER LOGO & HEADER (FIEL A SAUCELAGUNAZUL.COM)
   ========================================================================== */
.site-logo img.custom-logo {
    max-width: 135px;
    height: auto;
}

.logo-banner {
    background: #17212c url('../img/banner-laguna-sausec.jpg');
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2rem 0;
    position: relative;
}

.logo-banner-overlay::before {
    background: rgba(0, 0, 0, 0.72) !important;
}

.logo-banner .site-brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.logo-banner .site-title {
    font-size: 2rem;
    margin-bottom: 4px;
}

.logo-banner .site-title a {
    color: #ffffff;
    text-decoration: none;
}

.logo-banner .site-description {
    color: #d6e4f0;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 500;
}

/* Navbar Oscura con línea superior Verde/Azul */
.navbar.navbar-dark {
    background-color: #13171e !important;
    border-top: 3px solid var(--sausec-green);
    padding: 0;
}

.navbar.navbar-dark.header-fixed-top {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 9990;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-family: "Cairo", sans-serif;
    padding: 0.85rem 1.15rem;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link,
.navbar-dark .navbar-nav .nav-link:hover {
    background-color: var(--sausec-green);
    color: #ffffff !important;
}

/* ==========================================================================
   3. MARQUESINA DE TENDENCIAS Y SLIDER DESTACADO
   ========================================================================== */
.news-highlights-area .news-highlights-title h5 {
    background-color: var(--sausec-green) !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.news-highlights-area .news-highlights-title h5:before {
    border-left: 15px solid var(--sausec-green) !important;
}

.news-headline-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2024;
    margin: 0;
    transition: color 0.2s;
}

.news-headline-post-title:hover {
    color: var(--sausec-green);
}

/* Slider Hero CSS Nativo / Responsive */
.sausec-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.sausec-slide {
    display: none;
}

.sausec-slide.active {
    display: block;
    animation: fadeInSlide 0.55s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0.4; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
}

.sausec-slider-nav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    display: flex;
    gap: 6px;
}

.sausec-slider-btn {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sausec-slider-btn:hover {
    background: var(--sausec-green) !important;
    border-color: var(--sausec-green) !important;
}

/* Imágenes uniformes en tarjetas */
.big-news-section #news-slider .post.overlay-news-area .post-thumbnail img {
    height: 448px;
    object-fit: cover;
    width: 100%;
}

.big-news-section .col-lg-6 .row .post.overlay-news-area .post-thumbnail img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.grid-view-news-area .post-thumbnail img {
    height: 215px;
    object-fit: cover;
    width: 100%;
}

.grid-view-news-area.vrsn-two {
    background: #ffffff;
    border: 1px solid #ebebeb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-view-news-area.vrsn-two .post-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-view-news-area.vrsn-two .entry-content {
    margin-top: auto;
}

/* ==========================================================================
   4. RESPONSIVE MOBILE-FIRST BREAKPOINTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .sausec-freq-pill {
        display: none;
    }
    .big-news-section #news-slider .post.overlay-news-area .post-thumbnail img {
        height: 320px;
    }
    .logo-banner .site-brand-row {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    :root {
        --topbar-height: 64px;
    }
    .sausec-radio-controls .sausec-volume-slider {
        display: none;
    }
    .sausec-eq-wrapper {
        max-width: 155px;
        padding: 2px 5px;
    }
    .sausec-eq-mode-btn span {
        display: none;
    }
    .logo-banner .site-title {
        font-size: 1.45rem;
    }
    .big-news-section #news-slider .post.overlay-news-area .post-thumbnail img,
    .big-news-section .col-lg-6 .row .post.overlay-news-area .post-thumbnail img {
        height: 240px;
    }
}

/* ==========================================================================
   5. BLOQUES DE PUBLICIDAD GOOGLE ADSENSE
   ========================================================================== */
.sausec-adsense-unit {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border: 1px dashed rgba(27, 132, 21, 0.35);
    border-radius: 4px;
    padding: 8px 10px;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-banner .sausec-adsense-header {
    background: rgba(15, 22, 32, 0.72);
    border-color: rgba(255, 255, 255, 0.22);
    min-height: 90px;
}

.sausec-adsense-label {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #88929e;
    margin-bottom: 4px;
    font-weight: 700;
}

.logo-banner .sausec-adsense-header .sausec-adsense-label {
    color: rgba(255, 255, 255, 0.65);
}

.sausec-adsense-unit ins.adsbygoogle {
    width: 100%;
    min-height: 70px;
}
