/**
 * ==========================================================================
 * WebRádio - Frontend Custom Styles
 * ==========================================================================
 * Este arquivo centraliza todas as estilizações personalizadas do frontend,
 * garantindo acessibilidade, consistência visual e carregamento prioritário.
 */

/* Accessible High-Contrast Placeholders */
.form-control::placeholder,
.form-control-custom::placeholder,
.form-control-page::placeholder,
.portal-container .form-control::placeholder,
.portal-container textarea::placeholder,
.modal-content .form-control::placeholder,
.modal-content input::placeholder,
.modal-content textarea::placeholder,
#recadosModal .form-control::placeholder,
#pedidosMusicaModal .form-control::placeholder,
#chat-nickname::placeholder,
#chat-message::placeholder,
.newsletter-input::placeholder,
.form-custom-input::placeholder,
input::placeholder,
textarea::placeholder,
::placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

:-moz-placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

::-moz-placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

/* Micro-animations and Utilities */
.img-lazy-fade {
    transition: opacity 0.3s ease-in-out;
}

/* ==========================================================================
   WIDGETS DE NOTÍCIAS, EVENTOS & PROMOÇÕES NA COLUNA CENTRAL (Imagens Maiores)
   ========================================================================== */
#themeCenterColumn .portal-card#noticias .news-widget-thumb,
#themeCenterColumn .portal-card#noticias_dinamicas .news-widget-thumb,
#themeCenterColumn .portal-card#eventos .news-widget-thumb,
#themeCenterColumn .portal-card#promocoes .news-widget-thumb,
.theme-center-column .portal-card#noticias .news-widget-thumb,
.theme-center-column .portal-card#noticias_dinamicas .news-widget-thumb,
.theme-center-column .portal-card#eventos .news-widget-thumb,
.theme-center-column .portal-card#promocoes .news-widget-thumb,
.col-lg-6 .portal-card#noticias .news-widget-thumb,
.col-lg-6 .portal-card#noticias_dinamicas .news-widget-thumb,
.col-lg-6 .portal-card#eventos .news-widget-thumb,
.col-lg-6 .portal-card#promocoes .news-widget-thumb {
    width: 180px;
    height: 130px;
    min-width: 180px;
    border-radius: 8px;
}

#themeCenterColumn .portal-card#noticias .news-widget-title,
#themeCenterColumn .portal-card#noticias_dinamicas .news-widget-title,
#themeCenterColumn .portal-card#eventos .news-widget-title,
#themeCenterColumn .portal-card#promocoes .news-widget-title,
.theme-center-column .portal-card#noticias .news-widget-title,
.theme-center-column .portal-card#noticias_dinamicas .news-widget-title,
.theme-center-column .portal-card#eventos .news-widget-title,
.theme-center-column .portal-card#promocoes .news-widget-title,
.col-lg-6 .portal-card#noticias .news-widget-title,
.col-lg-6 .portal-card#noticias_dinamicas .news-widget-title,
.col-lg-6 .portal-card#eventos .news-widget-title,
.col-lg-6 .portal-card#promocoes .news-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 4px;
    -webkit-line-clamp: 2;
}

#themeCenterColumn .portal-card#noticias .news-widget-summary,
#themeCenterColumn .portal-card#noticias_dinamicas .news-widget-summary,
#themeCenterColumn .portal-card#eventos .news-widget-summary,
#themeCenterColumn .portal-card#promocoes .news-widget-summary,
.theme-center-column .portal-card#noticias .news-widget-summary,
.theme-center-column .portal-card#noticias_dinamicas .news-widget-summary,
.theme-center-column .portal-card#eventos .news-widget-summary,
.theme-center-column .portal-card#promocoes .news-widget-summary,
.col-lg-6 .portal-card#noticias .news-widget-summary,
.col-lg-6 .portal-card#noticias_dinamicas .news-widget-summary,
.col-lg-6 .portal-card#eventos .news-widget-summary,
.col-lg-6 .portal-card#promocoes .news-widget-summary {
    font-size: 0.85rem;
    line-height: 1.45;
    opacity: 0.85;
    margin-top: 4px;
    -webkit-line-clamp: 3;
}

#themeCenterColumn .portal-card#noticias .news-widget-date,
#themeCenterColumn .portal-card#noticias_dinamicas .news-widget-date,
#themeCenterColumn .portal-card#eventos .news-widget-date,
#themeCenterColumn .portal-card#promocoes .news-widget-date,
.theme-center-column .portal-card#noticias .news-widget-date,
.theme-center-column .portal-card#noticias_dinamicas .news-widget-date,
.theme-center-column .portal-card#eventos .news-widget-date,
.theme-center-column .portal-card#promocoes .news-widget-date,
.col-lg-6 .portal-card#noticias .news-widget-date,
.col-lg-6 .portal-card#noticias_dinamicas .news-widget-date,
.col-lg-6 .portal-card#eventos .news-widget-date,
.col-lg-6 .portal-card#promocoes .news-widget-date {
    font-size: 0.76rem;
}

#themeCenterColumn .portal-card#noticias a.hover-opacity,
#themeCenterColumn .portal-card#noticias_dinamicas a.hover-opacity,
#themeCenterColumn .portal-card#eventos a.hover-opacity,
#themeCenterColumn .portal-card#promocoes a.hover-opacity,
.theme-center-column .portal-card#noticias a.hover-opacity,
.theme-center-column .portal-card#noticias_dinamicas a.hover-opacity,
.theme-center-column .portal-card#eventos a.hover-opacity,
.theme-center-column .portal-card#promocoes a.hover-opacity,
.col-lg-6 .portal-card#noticias a.hover-opacity,
.col-lg-6 .portal-card#noticias_dinamicas a.hover-opacity,
.col-lg-6 .portal-card#eventos a.hover-opacity,
.col-lg-6 .portal-card#promocoes a.hover-opacity {
    gap: 16px !important;
}

@media (max-width: 768px) {
    #themeCenterColumn .portal-card#noticias .news-widget-thumb,
    #themeCenterColumn .portal-card#noticias_dinamicas .news-widget-thumb,
    #themeCenterColumn .portal-card#eventos .news-widget-thumb,
    #themeCenterColumn .portal-card#promocoes .news-widget-thumb,
    .theme-center-column .portal-card#noticias .news-widget-thumb,
    .theme-center-column .portal-card#noticias_dinamicas .news-widget-thumb,
    .theme-center-column .portal-card#eventos .news-widget-thumb,
    .theme-center-column .portal-card#promocoes .news-widget-thumb,
    .col-lg-6 .portal-card#noticias .news-widget-thumb,
    .col-lg-6 .portal-card#noticias_dinamicas .news-widget-thumb,
    .col-lg-6 .portal-card#eventos .news-widget-thumb,
    .col-lg-6 .portal-card#promocoes .news-widget-thumb {
        width: 110px;
        height: 85px;
        min-width: 110px;
    }

    #themeCenterColumn .portal-card#noticias .news-widget-title,
    #themeCenterColumn .portal-card#noticias_dinamicas .news-widget-title,
    #themeCenterColumn .portal-card#eventos .news-widget-title,
    #themeCenterColumn .portal-card#promocoes .news-widget-title,
    .theme-center-column .portal-card#noticias .news-widget-title,
    .theme-center-column .portal-card#noticias_dinamicas .news-widget-title,
    .theme-center-column .portal-card#eventos .news-widget-title,
    .theme-center-column .portal-card#promocoes .news-widget-title,
    .col-lg-6 .portal-card#noticias .news-widget-title,
    .col-lg-6 .portal-card#noticias_dinamicas .news-widget-title,
    .col-lg-6 .portal-card#eventos .news-widget-title,
    .col-lg-6 .portal-card#promocoes .news-widget-title {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   PÁGINA E CARDS DE ÁLBUNS DE FOTOS (Harmonia de Cores & Alto Contraste)
   ========================================================================== */
.album-grid-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.album-grid-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--color-accent, #00b8e6) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

.album-cover-wrap {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.album-cover-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
}

.album-grid-card:hover .album-cover-wrap img {
    transform: scale(1.06) !important;
}

.album-photo-count {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.album-grid-body {
    padding: 16px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.album-card-date {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: var(--color-accent, #00b8e6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.album-grid-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary, #ffffff) !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.album-grid-desc {
    font-size: 0.82rem !important;
    color: var(--text-secondary, rgba(255, 255, 255, 0.72)) !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.album-single-photo {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.album-single-photo .gallery-item-single {
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.album-full-img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    display: inline-block !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease;
}

.album-full-img:hover {
    transform: scale(1.01);
}

.gallery-item {
    aspect-ratio: unset !important;
    height: auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
    cursor: pointer !important;
    background: transparent !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-item:hover {
    transform: translateY(-4px) !important;
    border-color: var(--color-accent, #00b8e6) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.gallery-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.35s ease !important;
}

.gallery-item:hover img {
    transform: scale(1.03) !important;
}

/* ==========================================================================
   FOOTER NAVIGATION INSTITUTIONAL LINKS
   ========================================================================== */
.c-footer-nav {
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    max-width: 680px !important;
}

.c-footer-nav a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.85rem !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

.c-footer-nav a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   DYNAMIC NAVBAR LINKS (Exibe todas as páginas cadastradas no banco)
   ========================================================================== */
.c-nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 14px !important;
}

.c-nav-links a,
.c-nav-links a.nav-mobile-only {
    display: inline-flex !important;
    align-items: center !important;
    opacity: 0.88;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.c-nav-links a:hover,
.c-nav-links a.active {
    opacity: 1 !important;
}




