/*
Theme Name:   BuddyX Child - Plétora Network
Theme URI:    https://pletnet.io
Description:  Tema hijo de BuddyX para Plétora Network. 5º Aniversario.
Author:       Plétora Network
Author URI:   https://pletnet.io
Template:     buddyx
Version:      2.0.0
Text Domain:  buddyx-child-pletora
*/

/* ============================================
   ESTILOS BASE DEL BODY
   ============================================ */

body {
    font-family: 'Baloo 2', sans-serif !important;
    background: #001724 !important;
    color: #E0E0E0 !important;
}

/* ============================================
   FONDOS PERSONALIZADOS PARA ACTIVIDAD (BuddyPress)
   ============================================ */

.activity-list.bp-list {
    background: #001724 !important;
    border: 1px solid #eee !important;
}

.activity-list.bp-list .activity-item {
    background: #001724 !important;
    border: 1px solid #b7b7b7 !important;
    box-shadow: 0 0 6px #d2d2d2 !important;
    margin: 20px 0 !important;
}

.activity-list .activity-item .activity-content .activity-inner,
.activity-list .activity-item .activity-content blockquote {
    background: #001724 !important;
    margin: 15px 0 10px !important;
    overflow: hidden !important;
    padding: 1em !important;
}

.activity-list .activity-item .activity-meta.action {
    border: 1px solid transparent !important;
    background: #001724 !important;
    padding: 2px !important;
    position: relative !important;
    text-align: left !important;
}

.activity-list .activity-item .activity-meta.action .button span {
    background: 0 0 !important;
    color: #001724 !important;
    font-weight: 700 !important;
}

.activity-list li .activity-content .activity-inner a.buddyx-post-img-link {
    background: #001724 !important;
    border-radius: 4px !important;
    flex-flow: wrap !important;
    margin: 0 0 15px !important;
    display: flex !important;
}

/* ============================================
   FOROS BBPRESS (Activo)
   ============================================ */

#bbpress-forums li.bbp-header,
#bbpress-forums fieldset.bbp-form,
#bbpress-forums div.even,
#bbpress-forums ul.even,
#bbpress-forums div.odd,
#bbpress-forums ul.odd,
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header,
.widgetable .bbp-login-form,
.widgetable .bbp-logged-in {
    background-color: #001724 !important;
}

#bbpress-forums li.bbp-header {
    background: #001724 !important;
}

#bbpress-forums div.even,
#bbpress-forums ul.even {
    background-color: #001724 !important;
}

/* ============================================
   GRUPOS Y PERFILES (BuddyPress)
   ============================================ */

body.bp-nouveau.media #buddypress #item-header-cover-image .user-nicename,
#buddypress div#item-header-cover-image h2 a,
#buddypress div#item-header-cover-image h2 {
    color: #999900 !important;
    text-rendering: inherit !important;
    text-shadow: none !important;
    margin: 0 0 15px !important;
    font-size: 200% !important;
}

.single-headers .group-status {
    font-size: 18px !important;
    color: #999900 !important;
    padding-right: 1em !important;
}

.groups-header .desc-wrap {
    background: #001724 !important;
    border: 1px solid #999900 !important;
    margin: 0 0 15px !important;
    padding: 1em !important;
    text-align: center !important;
}

.groups-header .desc-wrap .group-description {
    background: #001724 !important;
    box-shadow: inset 0 0 9px #ccc !important;
    padding: 1em !important;
    text-align: left !important;
}

.bp-single-vert-nav .item-body:not(#group-create-body) {
    background: #001724 !important;
    border-left: 1px solid #d6d6d6 !important;
    float: right !important;
    margin: 0 !important;
    min-height: 400px !important;
    padding: 0 0 0 1em !important;
    width: calc(75% + 1px) !important;
}

@media screen and (min-width: 46.8em) {
    nav#object-nav.vertical {
        float: left !important;
        border-radius: var(--global-border-radius) 0 0 var(--global-border-radius) !important;
        border: 0 !important;
        border-right: 1px solid var(--global-border-color) !important;
        background: #001724 !important;
        flex: 0 0 230px !important;
        width: 100% !important;
        min-height: 50vh !important;
        margin: 0 !important;
        padding: 20px 0 !important;
    }
}

/* ============================================
   SUBCABECERA (SITE SUB HEADER)
   ============================================ */

.site-sub-header {
    color: var(--color-subheader-title);
    background: #001718;
    width: 100vw;
    margin-bottom: 1rem;
    margin-left: -50vw;
    padding: 30px 0;
    position: relative;
    left: 50%;
    background-color: #001724;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    color: var(--color-footer-content);
    border-top: 1px solid var(--global-border-color);
    background: #001724;
    margin: 1em 0 0;
}

/* ============================================
   MAILPOET (Activo)
   ============================================ */

form.mailpoet-manage-subscription .mailpoet_text_label, 
form.mailpoet-manage-subscription .mailpoet_select_label {
    display: block;
    font-weight: bold;
}

form.mailpoet-manage-subscription .mailpoet_text {
    width: 50%;
    padding: 12px;
}

/* ============================================
   COMENTARIOS VERBUM (Jetpack)
   ============================================ */

#respond.comment-respond form#commentform .comment-form__verbum .verbum-footer .verbum-footer__user a {
    font-size: 14px;
    color: #999900;
}

/* ============================================
   EMBEDS RESPONSIVOS
   ============================================ */

.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
    padding-top: 2% !important;
}

.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before {
    padding-top: 2%;
}

/* ============================================
   OCULTAR IMAGEN DESTACADA EN PÁGINAS (no en posts)
   ============================================ */

body.page figure.featured-media,
body.page figure.featured-media .featured-media-inner,
body.page figure.featured-media img.attachment-post-thumbnail,
body.page figure.featured-media img.wp-post-image {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forzar thumbnails en bloques de noticias (Newspack, si está presente) */
.wp-block-newspack-blocks-homepage-articles .post-thumbnail,
.wp-block-newspack-blocks-homepage-articles img.attachment-newspack-article-block-uncropped,
.attachment-newspack-article-block-uncropped.wp-post-image,
.news-block .post-thumbnail,
.news-block img.wp-post-image {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    margin: 0 0 0.25em !important;
}

/* ============================================
   AJUSTES DE LOGO Y MENÚ - PLÉTORA NETWORK
   ============================================ */

.site-branding img {
    object-fit: contain;
    width: auto;
    max-height: 44px;
    height: auto;
    transition: all 0.3s ease;
}


/* ============================================
   ESTILOS DE BOTONES (Shortcode)
   ============================================ */

.plet-container {
    width: 100%;
    padding: 1px;
    margin: 0;
}

.plet-main-btn {
    display: block;
    background: #B3B300;
    color: #ffff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 12px;
    text-decoration: none;
    border: 2px solid #990;
    font-size: 16px;
    width: 100%;
    min-height: 44px;
    transition: all 0.2s ease;
}

.plet-actions-bar {
    display: flex;
    gap: 8px;
    width: 100%;
}

.plet-action-btn {
    flex: 1;
    border: none;
    padding: 12px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    min-height: 44px;
    transition: all 0.2s ease;
}

.plet-like-btn { background: #005F73; }
.plet-like-btn.active { background: #B3B300; }
.plet-share-btn { background: #0A9396; }
.plet-report-btn { background: #E09F3E; }

.plet-like-count {
    margin-left: 6px;
    font-weight: bold;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 12px;
}

.plet-share-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.plet-popup-content {
    background: #001724;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    position: relative;
    border: 1px solid #CCCCCC;
}

.plet-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #A0A0A0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.plet-social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.plet-social-btn {
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.plet-fb { background: #1877F2; }
.plet-tw { background: #1DA1F2; }
.plet-th { background: #000000; }
.plet-li { background: #0077B5; }
.plet-ma { background: #6364FF; }

/* ============================================
   BARRA DE RADIO CON SCROLL
   ============================================ */

.pletora-radio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #001724;
    border-top: 3px solid #B3B300;
    padding: 8px 15px;
    z-index: 9998;
    box-shadow: 0 -4px 25px rgba(0,0,0,0.7);
    transition: transform 0.3s ease;
}

.pletora-radio-bar.hidden {
    transform: translateY(100%);
}

.radio-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
}

.radio-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.radio-bar-title {
    font-weight: bold;
    font-size: 15px;
    color: #B3B300;
    white-space: nowrap;
}

.radio-bar-status {
    font-size: 13px;
    color: #CCCCCC;
    white-space: nowrap;
}

.radio-bar-track {
    font-size: 13px;
    color: #CCCCCC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: inline-block;
    vertical-align: middle;
}

.radio-bar-track:hover {
    animation: scrollText 8s linear infinite;
    background: rgba(0, 23, 36, 0.95);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    max-width: none;
}

@media (max-width: 768px) {
    .radio-bar-track {
        animation: scrollText 10s linear infinite;
        max-width: 150px;
    }
    .radio-bar-track:active {
        animation-play-state: paused;
    }
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    10% { transform: translateX(0); }
    90% { transform: translateX(calc(-100% + 250px)); }
    100% { transform: translateX(calc(-100% + 250px)); }
}

.radio-bar-listeners {
    font-size: 13px;
    color: #CCCCCC;
    white-space: nowrap;
}

.live-pulse {
    color: #E09F3E;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.radio-bar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 20px;
}

.radio-bar-btn {
    background: transparent;
    border: 1px solid #555;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn {
    background: #B3B300 !important;
    border-color: #B3B300 !important;
    color: #001724 !important;
}

.close-btn {
    background: #E09F3E !important;
    border-color: #E09F3E !important;
}

.volume-slider {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: #555;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E09F3E;
    cursor: pointer;
}

/* ============================================
   FUTURE THUMBNAILS
   ============================================ */

.pletora-future-thumbnails-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
    margin: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: #B3B300 #001724;
}

.pletora-future-thumbnails-grid::-webkit-scrollbar {
    height: 8px;
}
.pletora-future-thumbnails-grid::-webkit-scrollbar-track {
    background: #001724;
    border-radius: 10px;
}
.pletora-future-thumbnails-grid::-webkit-scrollbar-thumb {
    background: #B3B300;
    border-radius: 10px;
}

.pletora-future-item {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(179, 179, 0, 0.2);
}

.pletora-future-item:hover {
    transform: translateY(-5px);
    border-color: rgba(179, 179, 0, 0.5);
}

.pletora-future-thumbnail {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #B3B300;
    margin: 0 auto 1rem auto;
    display: block;
}

.pletora-future-no-thumb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #B3B300;
}

.pletora-future-no-thumb span {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.pletora-future-title {
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 700;
    color: #FFFFFF;
}

.pletora-future-badge {
    display: inline-block;
    background: #B3B300;
    color: #001724;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.pletora-future-none {
    text-align: center;
    padding: 2.5rem;
    background: rgba(179, 179, 0, 0.05);
    border-radius: 16px;
    margin: 2rem 0;
    color: #FFFFFF;
}

@media (min-width: 1200px) {
    .pletora-future-thumbnails-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        overflow-x: visible;
    }
    .pletora-future-item {
        width: auto;
    }
}

@media (max-width: 768px) {
    .radio-bar-track { max-width: 150px; }
    .pletora-future-item { width: 150px; }
    .pletora-future-thumbnail, .pletora-future-no-thumb { width: 120px; height: 120px; }
}

/* ============================================
   PROTECCIÓN DE VIDEOS
   ============================================ */

video::-webkit-media-controls-download-button,
audio::-webkit-media-controls-download-button {
    display: none !important;
}

video, audio {
    user-select: none;
    max-width: 100%;
}

/* ============================================
   BIENVENIDA PARA USUARIOS LOGUEADOS
   ============================================ */

.welcome-back {
    animation: welcomeGlow 2s ease-in-out;
}

@keyframes welcomeGlow {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        box-shadow: 0 0 0 rgba(224, 159, 62, 0);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(224, 159, 62, 0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(224, 159, 62, 0);
    }
}

@media (max-width: 768px) {
    .welcome-back {
        font-size: 0.85rem;
        padding: 8px 15px !important;
        margin: 15px auto !important;
        max-width: 90% !important;
    }
}