/*
Theme Name: Avada Child 2
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 2.0.0
Text Domain:  Avada
*/


/* --- AMAGAR ELEMENTS INNECESSARIS --- */
#buddypress #item-header,
#buddypress .bp-screen-reader-text {
    display: none !important;
}

/* --- FONS PRINCIPAL --- */
#buddypress {
    background-color: #f7f7f7; /* Fons gris clar exterior */
    /* padding: 20px; */
    font-family: sans-serif;
}

/* --- PESTANYES SUPERIORS (ITEM-NAV) --- */
#buddypress #item-nav .item-list-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#buddypress #item-nav .item-list-tabs ul li {
    margin: 0;
}

#buddypress #item-nav .item-list-tabs ul li a {
    display: block;
    padding: 12px 25px;
    background-color: #d6d6d6; /* Gris fosc per pestanyes inactives */
    color: #333;
    text-decoration: none;
    border-right: 1px solid #dcdcdc;
}

/* Pestanya activa superior */
#buddypress #item-nav .item-list-tabs ul li.current a,
#buddypress #item-nav .item-list-tabs ul li.selected a {
    background-color: #ebebeb; /* S'integra amb el bloc blanc */
}

/* --- COS PRINCIPAL (LAYOUT 2 COLUMNES) --- */
#buddypress #item-body {
    /*display: flex;*/
    background-color: #fff;
    min-height: 500px;
    box-shadow: 0 0 10px rgba(0,0,0,0.02);
}

/* --- MENÚ LATERAL (SUBNAV) --- */
#buddypress #item-body #subnav {
    /*width: 220px;*/
    background-color: #d6d6d6; /* Fons lleugerament gris pel menú */
    margin: 0px;
}

#buddypress #item-body #subnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#buddypress #item-body #subnav ul li {
    margin: 0;
}

#buddypress #item-body #subnav ul li a {
    display: block;
    padding: 20px;
    color: #333;
    text-decoration: none;
}

/* Pestanya activa lateral */
#buddypress #item-body #subnav ul li.current a,
#buddypress #item-body #subnav ul li.selected a {
    background-color: #ebebeb; /* Fons blanc per fondre's amb el formulari */
}

/* --- ÀREA DEL FORMULARI --- */
#buddypress #settings-form {
    flex: 1; /* Ocupa la resta de l'espai */
    padding: 40px;
    background: #f7f7f7;
}

#buddypress #settings-form label {
    display: block;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

#buddypress #settings-form label span {
    font-weight: 400; /* Per al text d'ajuda (leave blank...) */
    color: #333;
}

#buddypress #settings-form input.settings-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    color: #777;
    border-radius: 2px;
    box-sizing: border-box; /* Evita que el padding trenqui el 100% */
}

/* --- BOTÓ D'ENVIAR --- */
#buddypress #settings-form .submit {
    margin-top: 10px;
}

#buddypress #settings-form input[type="submit"] {
    background-color: #990000; /* Vermell fosc */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#buddypress #settings-form input[type="submit"]:hover {
    background-color: #7a0000;
}


form#acf-form {
    padding: 20px;
    background: #f7f7f7;
}






/* BUDDYPRESS LLISTA  */
/* ==========================================================================
   LLISTAT DE BANNERS (FRONTEND BUDDYPRESS)
   ========================================================================== */

/* --- BOTÓ CREAR NOU BANNER --- */
#buddypress a.button[href="?action=new"],
input.acf-button.button.button-primary.button-large {
    display: inline-block;
    background-color: #990000 !important; /* Vermell corporatiu */
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 14px;
    transition: background 0.3s ease;
    margin-bottom: 5px;
}

#buddypress a.button[href="?action=new"]:hover {
    background-color: #7a0000 !important;
    color: #fff !important;
}

/* --- TAULA PRINCIPAL --- */
#buddypress table.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; /* Manté els bordes arrodonits */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-top: 10px;
}

/* --- CAPÇALERA DE LA TAULA --- */
#buddypress table.wp-list-table thead {
    background-color: #f9f9f9;
    border-bottom: 2px solid #eee;
}

#buddypress table.wp-list-table th {
    text-align: left;
    padding: 15px;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FILES I CEL·LES --- */
#buddypress table.wp-list-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
}

/* Efecte zebra (files alternades) i Hover */
#buddypress table.wp-list-table.striped tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

#buddypress table.wp-list-table tbody tr:hover {
    background-color: #f4f4f4;
}

/* --- MINIATURES (BANNERS) --- */
#buddypress table.wp-list-table td img:not(.emoji) {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    transition: transform 0.2s ease-in-out;
}

#buddypress table.wp-list-table td img:not(.emoji):hover {
    transform: scale(1.05); /* Efecte zoom suau al passar el ratolí */
}

/* Emoji (Icona actiu) */
#buddypress table.wp-list-table td img.emoji {
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
    margin-right: 4px;
}

/* --- ENLLAÇOS D'ACCIÓ (EDITAR / BORRAR) --- */
#buddypress table.wp-list-table td a {
    text-decoration: none;
    font-weight: 600;
    color: #0073aa; /* Blau estil WordPress */
    transition: color 0.2s ease;
}

#buddypress table.wp-list-table td a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Botó Borrar específicament */
#buddypress table.wp-list-table td a[href*="action=trash"] {
    color: #dc3232 !important; /* Vermell perill */
}

#buddypress table.wp-list-table td a[href*="action=trash"]:hover {
    color: #b32d2e !important;
}




/* paginacio buddypress perfil*/

div#item-body {display:flex;}

.aet-noticies-container { width: 100%; }
/* Estils pels botons de paginació inferiors */
.aet-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.aet-pagination .page-numbers.current {
    background: #990000;
    color: #fff;
    border-color: #990000;
}
.aet-pagination a.page-numbers:hover {
    background: #e0e0e0;
}



.grecaptcha-badge {
    display: none !important;
}


.mailpoet_page .fusion-sharing-box.fusion-theme-sharing-box.fusion-single-sharing-box {
    display: none;
}

li#notifications-personal-li {
    display: none;
}

li#profile-personal-li {
    display: none;
}

li#data-personal-li {
    display: none;
}

span.fusion-imageframe {
    border-radius: 5px !important;
}


.bp-feedback {
    position: absolute !important;
    right: 0 !important;
}

form#settings-form a {
    display: none;
}