/*
Theme Name: Astra Child - BBS Portal
Theme URI: https://miembros.bullsandbears.school
Description: Child theme del portal Bulls and Bears School. Hereda de Astra.
Author: Bulls and Bears School
Template: astra
Version: 1.4.0
Text Domain: astra-child
*/

/* Importar estilos del tema padre */
@import url("../astra/style.css");

/* ================================================
   BBS Portal - Estilos personalizados
   ================================================ */

/* Ocultar footer nativo de Astra */
.site-footer {
    display: none !important;
}

/* Footer Elementor - ancho completo */
.elementor-location-footer {
    width: 100%;
}

/* Fix footer centrado - pagina login */
.elementor-50 .e-con:last-child .elementor-widget,
.elementor-50 .e-con:last-child .elementor-widget-container {
    width: 100% !important;
    text-align: center !important;
}
.elementor-50 .e-con:last-child p {
    width: 100% !important;
    text-align: center !important;
}

/* Ocultar titulo de pagina Mi Cuenta y Mi Perfil */
.page-id-95 .entry-header,
.page-id-95 .entry-title,
.page-id-95 .ast-breadcrumbs-wrapper,
.page-id-132 .entry-header,
.page-id-132 .entry-title,
.page-id-132 .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* Eliminar padding superior en Mi Cuenta y Mi Perfil */
.page-id-95 .entry-content,
.page-id-95 .ast-container,
.page-id-132 .entry-content,
.page-id-132 .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.page-id-95 .elementor,
.page-id-132 .elementor {
    margin-top: 0 !important;
}
.elementor-95 .e-con > .e-con-inner,
.elementor-132 .e-con > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* === Barra dorada de miembro === */
.elementor-element-f4636be {
    background-color: #EFB810 !important;
    width: 100% !important;
}
.elementor-element-f4636be .elementor-shortcode {
    width: 100%;
}

/* === BBS Member Bar === */
.bbs-member-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
    height: 100%;
    min-height: 42px;
    position: relative;
}
.bbs-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #0d2240;
    text-transform: uppercase;
    flex-shrink: 0;
}
.bbs-welcome {
    font-size: 16px;
    font-weight: 600;
    color: #0d2240;
    letter-spacing: 0.04em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.bbs-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.bbs-date {
    font-size: 13px;
    font-weight: 500;
    color: #0d2240;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}
.bbs-logout-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    color: #0d2240 !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    border: 1.5px solid rgba(13,34,64,0.35);
    border-radius: 4px;
    padding: 4px 10px;
    transition: opacity 0.2s, background 0.2s;
    background: rgba(13,34,64,0.06);
}
.bbs-logout-link:hover {
    opacity: 1 !important;
    background: rgba(13,34,64,0.15) !important;
    color: #0d2240 !important;
}
.bbs-logout-icon {
    width: 15px;
    height: 15px;
    stroke: #0d2240;
    flex-shrink: 0;
}
.bbs-logout-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ================================================
   ACCESIBILIDAD: Tamanios de texto aumentados
   ================================================ */
.bbs-sl { font-size: 13px !important; letter-spacing: 0.1em !important; font-weight: 700 !important; }
.bbs-sv { font-size: 26px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.bbs-ss { font-size: 14px !important; line-height: 1.5 !important; }
.bbs-tt { font-size: 22px !important; font-weight: 700 !important; letter-spacing: 0.02em !important; margin-bottom: 16px !important; }
.bbs-na { font-size: 38px !important; font-weight: 800 !important; opacity: 0.15 !important; line-height: 1 !important; }
.bbs-nt { font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0.05em !important; text-transform: uppercase !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
.bbs-nd { font-size: 14px !important; line-height: 1.6 !important; }
.bbs-rl { font-size: 15px !important; font-weight: 600 !important; }
.bbs-rv { font-size: 15px !important; }
.bbs-lo { font-size: 16px !important; padding: 12px 28px !important; }
.bbs-lb { font-size: 15px !important; }
.bbs-db { font-size: 15px !important; line-height: 1.6 !important; }
.page-id-95 .elementor-heading-title { font-size: 22px !important; }

/* ================================================
   MI PERFIL - Estilos de la pagina de perfil
   ================================================ */
.bbs-profile-page {
    max-width: 720px;
    margin: 40px auto 60px;
    padding: 0 20px;
    font-family: inherit;
}

/* Hero */
.bbs-profile-hero {
    background: linear-gradient(135deg, #023260 0%, #0d2240 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.bbs-profile-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(239,184,16,0.08);
}
.bbs-profile-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -20px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(239,184,16,0.05);
}
.bbs-profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}
.bbs-avatar-wrap img,
.bbs-avatar-wrap .avatar {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 4px solid #EFB810 !important;
    object-fit: cover !important;
    display: block !important;
}
.bbs-profile-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #EFB810;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.bbs-profile-name {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    border: none !important;
}
.bbs-profile-username {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}

/* Cuerpo */
.bbs-profile-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bbs-profile-section {
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.bbs-profile-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.bbs-profile-rows {
    display: flex;
    flex-direction: column;
}
.bbs-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bbs-profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.bbs-profile-row:first-child {
    padding-top: 0;
}
.bbs-profile-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #777 !important;
}
.bbs-profile-value {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0d2240 !important;
    text-align: right !important;
}
.bbs-profile-level {
    background: rgba(239,184,16,0.12) !important;
    color: #7a5500 !important;
    font-weight: 700 !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    border: 1px solid rgba(239,184,16,0.3) !important;
}

/* Botones de acciones */
.bbs-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bbs-profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
.bbs-profile-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.bbs-profile-btn-secondary {
    background: #EFB810 !important;
    color: #0d2240 !important;
    border: 2px solid #EFB810 !important;
}
.bbs-profile-btn-secondary:hover {
    background: #d4a00e !important;
    border-color: #d4a00e !important;
    color: #0d2240 !important;
}
.bbs-profile-btn-outline {
    background: transparent !important;
    color: #023260 !important;
    border: 2px solid #023260 !important;
}
.bbs-profile-btn-outline:hover {
    background: #023260 !important;
    color: #ffffff !important;
}
.bbs-profile-btn-ghost {
    background: #f5f7fa !important;
    color: #555 !important;
    border: 2px solid #e8eaf0 !important;
}
.bbs-profile-btn-ghost:hover {
    background: #e8eaf0 !important;
    color: #333 !important;
}

@media (max-width: 768px) {
    .bbs-member-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 15px;
        gap: 6px;
        min-height: auto;
    }
    .bbs-welcome {
        position: relative;
        left: auto;
        transform: none;
    }
    .bbs-bar-right { gap: 12px; }
    .bbs-sv { font-size: 22px !important; }
    .bbs-na { font-size: 30px !important; }
    .bbs-nt { font-size: 15px !important; }
    .bbs-nd { font-size: 13px !important; }
    .bbs-profile-hero { padding: 24px 20px; }
    .bbs-profile-avatar-section { flex-direction: column; text-align: center; gap: 16px; }
    .bbs-profile-section { padding: 20px 18px; }
    .bbs-profile-name { font-size: 22px !important; }
    .bbs-profile-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .bbs-profile-value { text-align: left !important; }
}


/* ===================================================
   BBS AVATAR UPLOAD MODAL (v1.6.0)
   =================================================== */

/* Botón principal */
.bbs-btn-upload-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: #EFB810;
    color: #0A1A2E;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    justify-content: center;
    letter-spacing: 0.5px;
}
.bbs-btn-upload-avatar:hover {
    background: #d4a20e;
    transform: translateY(-1px);
}

/* Overlay del modal */
.bbs-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,26,46,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Caja del modal */
.bbs-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    text-align: center;
}

/* Botón cerrar */
.bbs-modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.bbs-modal-close:hover { color: #0A1A2E; }

/* Título y hint */
.bbs-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0A1A2E;
    margin: 0 0 6px;
}
.bbs-modal-hint {
    font-size: 12px;
    color: #888;
    margin: 0 0 24px;
}

/* Preview circular */
.bbs-avatar-preview-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    cursor: pointer;
}
.bbs-avatar-preview-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #EFB810;
    display: block;
}
.bbs-avatar-preview-label {
    position: absolute;
    bottom: 0; right: 0;
    background: #0A1A2E;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.bbs-avatar-preview-wrap:hover .bbs-avatar-preview-img {
    opacity: 0.85;
}

/* Feedback */
.bbs-avatar-feedback {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.bbs-feedback-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.bbs-feedback-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Botones del modal */
.bbs-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}
.bbs-btn-save-avatar {
    padding: 12px 28px;
    background: #EFB810;
    color: #0A1A2E;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.bbs-btn-save-avatar:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}
.bbs-btn-save-avatar:not(:disabled):hover { background: #d4a20e; }

.bbs-btn-cancel-avatar {
    padding: 12px 24px;
    background: transparent;
    color: #0A1A2E;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #0A1A2E;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.bbs-btn-cancel-avatar:hover {
    background: #0A1A2E;
    color: #fff;
}

/* BBS Avatar Modal CSS Fix - v1.4.1 */
body .bbs-btn-upload-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: #EFB810;
    color: #0A1A2E;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    justify-content: center;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}
body .bbs-btn-upload-avatar:hover {
    background: #d4a20e;
}
body .bbs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,26,46,0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
body .bbs-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    text-align: center;
}
body .bbs-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
body .bbs-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0A1A2E;
    margin: 0 0 6px;
}
body .bbs-modal-hint {
    font-size: 12px;
    color: #888888;
    margin: 0 0 24px;
}
body .bbs-avatar-preview-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    cursor: pointer;
}
body .bbs-avatar-preview-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #EFB810;
    display: block;
}
body .bbs-avatar-preview-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0A1A2E;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}
body .bbs-avatar-feedback {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
body .bbs-feedback-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
body .bbs-feedback-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
body .bbs-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}
body .bbs-btn-save-avatar {
    padding: 12px 28px;
    background: #EFB810;
    color: #0A1A2E;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
body .bbs-btn-save-avatar:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
}
body .bbs-btn-cancel-avatar {
    padding: 12px 24px;
    background: transparent;
    color: #0A1A2E;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #0A1A2E;
    border-radius: 8px;
    cursor: pointer;
}