/*
Theme Name: 	BuddyBoss Child
Theme URI: 		https://www.buddyboss.com/
Description: 	A child theme of BuddyBoss Theme. To ensure easy updates, make your own edits in this theme.
Author: 		BuddyBoss.com
Author URI: 	https://www.buddyboss.com/
License: 		GNU General Public License v3 or later
License URI: 	http://www.gnu.org/licenses/gpl-3.0.html
Template: 		buddyboss-theme
Version: 		1.0.1
*/

/*

-- Stylesheet locations --

Add your own customizations into /css/custom.css in this child theme.

Parent styles are called from /buddyboss-theme/inc/theme/functions.php in the 
parent theme and are located in /buddyboss-theme/assets/css/ in the parent theme.


--- If you are editing CSS via the WordPress admin, do the following ---

1. Install the plugin WP Editor: http://wordpress.org/plugins/wp-editor/
2. Navigate to Appearance > Theme Editor in the WordPress admin.
3. Navigate into the /css/ folder of your child theme to edit custom.css.

*/
/* Pour stabiliser l'espace même quand le contenu charge */
#primary.bs-bp-container {
    min-height: 600px; /* Ajuste selon ton besoin */
    transition: none !important;
}

#post-11 > .entry-header {
    display: none;
}
#post-12 > .entry-header {
    display: none;
}
#post-91 > .entry-header {
    display: none;
}
/* Optionnel : squelette loading pour éviter le saut */
#primary.bs-bp-container:empty::before {
    content: "";
    display: block;
    height: 600px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: loading 1.2s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.activity-list .activity-item .activity-actions a.reply-nestia.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
}

/* wrapper */
.reply-nestia .nestia-icon-wrap {
    display: inline-flex;
    align-items: center;
}

/* image libre */
.reply-nestia .nestia-icon-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* texte */
.reply-nestia .nestia-label {
    font-size: 14px;
    font-weight: 550;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}
.reply-nestia:hover::after {
    content: "Répondre avec NestIA";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0.9;
}

/* Optionnel : squelette loading pour éviter le saut */
#primary.bs-bp-container:empty::before {
    content: "";
    display: block;
    height: 600px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: loading 1.2s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Masquer le nom du fichier dans l'activité */
.bb-rl-activity-media-elem.bb-rl-document-activity .bb-rl-document-detail-wrap {
    display: none!important;
}
.bb-rl-activity-media-elem.bb-rl-document-activity .bb-rl-document-description-wrap {
    display: none!important;
}


.bb-template-v2 .buddypanel {
    padding-left: 10px!important;
    padding-right: 0px!important;
}



 /* Affiche toujours le texte dans les notifications on-screen */
.bb-notifications-web .bb-notification-content {
    display: block !important;
    white-space: normal !important;
}
  
.no-articles-message {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #f9f9f9;
    max-width: 600px;
}

.no-articles-message p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.no-articles-message .publish-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff5252;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.no-articles-message .publish-btn:hover {
    background: #e04848;
}


.mce-notification-error {
    display: none !important;
}

.wpuf-form-add.wpuf-form-layout2 ul.wpuf-form li .wpuf-fields .wpuf-help {
    color: #ffffff!important;
}
/* Appliquer du style au formulaire avec la classe wpuf-form-add */
.wpuf-form-add.wpuf-form-layout1 {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style des champs de texte et textarea */
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields input[type="text"],
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: #fff;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Effet de barre de progression qui se remplit sur focus */
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields input[type="text"]:focus + .progress-bar,
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields textarea:focus + .progress-bar {
    width: 100%;
    transition: width 0.5s ease;
}

.wpuf-form-add.wpuf-form-layout1 .progress-bar {
    height: 4px;
    background-color: #0073e6;
    width: 0%;
    transition: width 0.5s ease;
}

/* Animation d'effet de focus avec glow (effet lumineux) */
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields input[type="text"]:focus,
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields textarea:focus {
    border-color: #0073e6;
    box-shadow: 0 0 8px rgba(0, 115, 230, 0.5);
    transform: scale(1.05);
}

/* Effet "néon" sur les champs de saisie */
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields input[type="text"]:focus,
.wpuf-form-add.wpuf-form-layout1 .wpuf-fields textarea:focus {
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 115, 230, 0.8), 0 0 10px rgba(0, 115, 230, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 115, 230, 1), 0 0 20px rgba(0, 115, 230, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 115, 230, 0.8), 0 0 10px rgba(0, 115, 230, 0.6);
    }
}

/* Bouton de soumission avec effet de survol */
.wpuf-form-add.wpuf-form-layout1 .wpuf-submit-button {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    transform: scale(1);
}

.wpuf-form-add.wpuf-form-layout1 .wpuf-submit-button:hover {
    background-color: #005bb5;
    transform: scale(1.1); /* Le bouton devient légèrement plus grand */
}

/* Pour les champs de sélection (menus déroulants) */
.wpuf-form-add.wpuf-form-layout1 select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%230073e6' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    z-index: 2;
    position: relative;
    overflow: visible !important;
}
.wpuf-form-add.wpuf-form-layout1 select:focus {
    transform: none !important;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
    border-color: #0073e6;
}
/* Label avec animation de défilement */
.wpuf-form-add.wpuf-form-layout1 .wpuf-label label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

.wpuf-form-add.wpuf-form-layout1 .wpuf-label label::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0073e6;
    margin-top: 5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wpuf-form-add.wpuf-form-layout1 .wpuf-label label:focus-within::after {
    transform: scaleX(1);
}

/* Effet pour les messages d'erreur */
.wpuf-form-add.wpuf-form-layout1 .wpuf-error {
    color: #ff0000;
    font-size: 14px;
    margin-top: 10px;
    background-color: #ffd1d1;
    padding: 5px;
    border-radius: 5px;
}

/* Style pour les messages d'erreur sur le champ tags */
.wpuf-form-add.wpuf-form-layout1 .wpuf-tags_480 {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpuf-form-add.wpuf-form-layout1 .wpuf-tags_480:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}


/* Le label radio stylé */
.wpuf-form-add.wpuf-form-layout1 .wpuf-radio-block {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 30px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* cible le label si le radio est checked */
.wpuf-form-add.wpuf-form-layout1 .wpuf-radio-block input[type="radio"] {
    accent-color: #0073e6;
    transform: scale(1.3);
    margin-right: 6px;
}



/******** *******************/
/* ✅ Conteneur global transformé en grille */

body .wpuf-dashboard-container table.items-table {
    border: none !important;
}

.wpuf-dashboard-container .items-table-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/*  Force les cartes à s'afficher côte à côte */
.wpuf-dashboard-container .items-table.post tbody {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}


/* ✅ Chaque ligne devient une carte */
.wpuf-dashboard-container .items-table.post tbody tr {
    display: flex;
    flex-direction: column;
    width: 23%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.wpuf-dashboard-container .items-table.post tbody tr:hover {
    transform: scale(1.02);
}

/* ✅ Supprimer les contraintes du tableau */
.wpuf-dashboard-container table.items-table {
    display: block;
}

.wpuf-dashboard-container table.items-table thead {
    display: none !important;
}

.wpuf-dashboard-container .items-table.post tbody {
    display: contents;
}

/* ✅ Miniature de l’article */
.wpuf-dashboard-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ✅ Titre sous l’image */
.wpuf-dashboard-container table.items-table tbody tr td:first-child {
    padding: 10px;
    background: #ffffff;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* ✅ Options de gestion (crayon / corbeille) */
.wpuf-dashboard-container table.items-table tbody tr td[data-label="Options: "] {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* ✅ Icônes */
.wpuf-posts-options img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.wpuf-posts-options:hover img {
    transform: scale(1.2);
}

/* ✅ Cacher statut */
.wpuf-dashboard-container table.items-table tbody tr td[data-label="Status: "] {
    display: none !important;
}

/* ✅ Cacher flèche ▾ */
.wpuf-dashboard-container .post-edit-icon {
    display: none !important;
}

/* Clivy+ */
.blurred {
    filter: blur(5px);         /* effet visuel */
    user-select: none;         /* empêche sélection */
    pointer-events: none;      /* pas cliquable */
    display: inline-block;
    min-width: 40px;
    text-align: center;
    color: #ccc;               /* grisé */
}

.locked {
    position: relative;
}

.unlock-btn {
    margin-left: 6px;
    font-size: 12px;
    color: #fbc02d;
    text-decoration: none;
}

.unlock-btn:hover {
    text-decoration: underline;
}



/* Animation rebond + rotation sur l'emoji */
.emoji.animate {
    animation: pulse-emoji 0.5s ease;
    display: inline-block;
    position: relative;
}

@keyframes pulse-emoji {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.5) rotate(20deg); }
    60% { transform: scale(0.95) rotate(-20deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.emoji-orbit-wrapper {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: 0; height: 0;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 99;
}

.emoji-orbit {
    position: absolute;
    top: 50%; left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    /* point de rotation = coin supérieur gauche = centre du wrapper */
    transform-origin: 0 0;
    /* on démarre l’animation avec notre délai personnalisé */
    animation: orbit-emoji 2s linear var(--delay) forwards;
}

@keyframes orbit-emoji {
    0% {
        /* d’abord on place le span à l’angle de départ, 
           puis on l’éloigne de 30px : */
        transform: rotate(var(--start-angle)) 
                   translateX(30px) 
                   rotate(calc(-1 * var(--start-angle)));
        opacity: 0;
    }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% {
        /* on ajoute 720° au début pour obtenir 2 tours */
        transform: rotate(calc(var(--start-angle) + 720deg)) 
                   translateX(30px) 
                   rotate(calc(-1 * (var(--start-angle) + 720deg)));
        opacity: 0;
    }
}

.nfs-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}
.nfs-stats-table th,
.nfs-stats-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.nfs-stats-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#nfs-show-list{
    background: transparent !important;
}

#nfs-show-chart{
    background: transparent !important;
}

#nfs-show-list:hover{
    background: transparent !important;
}

#nfs-show-chart:hover{
    background: transparent !important;
}

.nfs-chart {
    width: 100%;
    max-height: 300px;       /* hauteur max fixe */
    height: auto;            /* laisse le navigateur décider en dessous */
    display: block;
  }
  @media (max-width:1024px) {
    .nfs-chart { max-height:250px; }
  }
  @media (max-width:600px) {
    .nfs-chart { max-height:180px; }
  }
  


/* ✅ Responsive : 2 colonnes sur tablette */
@media (max-width: 1024px) {
    .wpuf-dashboard-container .items-table.post tbody tr {
        width: calc(50% - 15px);
    }
}

/* ✅ Responsive : 1 colonne sur mobile */
@media (max-width: 600px) {
    .wpuf-dashboard-container .items-table.post tbody tr {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
  .article-preview-image {
    transition: none !important;
  }
}
@media (hover: none) {
  .article-preview-image {
    display: none;
  }
}




.chat-link {
    background: #f1f1f1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

.chat-link a {
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}

.chat-link a:hover {
    text-decoration: underline;
}

#trigger {
    display: none !important;
}

.panel__top {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	background-color: #f3f3f3;
	border-bottom: 1px solid #ddd;
}
.panel__devices {
	display: flex;
}
.panel__devices button {
	margin-right: 10px;
}
#blocks {
	background: #f3f3f3;
	padding: 10px;
	border-right: 1px solid #ddd;
}

.nfs-reward-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.nfs-reward-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff; /* à ajuster selon ton fond */
}

.nfs-reward-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nfs-reward-card {
    flex: 1 1 300px;
    background: linear-gradient(135deg, #2b2f77, #1c1f3a);
    color: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.nfs-reward-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.nfs-reward-card span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 🚫 Cacher le bloc MyCred natif uniquement sur les profils membres */
body.buddypress.bp-user #mycred-my-ranks {
  display: none !important;
}

.e-n-tabs-content {
  height: auto;
  width: 100%;
  align-self: center;
  display: flex;
  justify-content: center;
}

/* Grille principale 
.e-n-tabs-content > div:first-child .elementor-shortcode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
  width: 90%;
  text-align: center;
}
*/
/* Animation d'apparition fluide 
.e-n-tabs-content > div:first-child .elementor-shortcode p {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 0.6s ease forwards;
}
@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
*/
/* --- Effet glow doré uniquement sur l'image au survol --- */
.e-n-tabs-content > div:first-child .elementor-shortcode img:hover {
  transform: scale(1.08);
  transition: all 0.3s ease;
}

/* --- Transition smooth pour toutes les images --- */
.e-n-tabs-content > div:first-child .elementor-shortcode img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* --- Effet pulsation subtile plus fine --- */
.e-n-tabs-content > div:first-child .elementor-shortcode p:nth-child(1) img {
  animation: pulseGlowViolet 3s ease-in-out infinite;
}

.e-n-tabs-content > div:first-child .elementor-shortcode p:nth-child(2) img {
  animation: pulseGlowGold 3s ease-in-out infinite;
}

/* Glow violet – plus fin et précis */
@keyframes pulseGlowViolet {
  0%, 100% { filter: drop-shadow(0 0 3px #b84dff) drop-shadow(0 0 6px #b84dff); }
  50% { filter: drop-shadow(0 0 6px #d18cff) drop-shadow(0 0 10px #d18cff); }
}

/* Glow doré – affiné aussi */
@keyframes pulseGlowGold {
  0%, 100% { filter: drop-shadow(0 0 3px #ffd700) drop-shadow(0 0 6px #ffd700); }
  50% { filter: drop-shadow(0 0 6px #ffcc33) drop-shadow(0 0 10px #ffcc33); }
}

/* --- Rotation 3D simulée pour le 1er rang --- */
.e-n-tabs-content > div:first-child .elementor-shortcode p:nth-child(1) img {
  animation: spinBadge 8s linear infinite;
  transform-style: preserve-3d;
}

@keyframes spinBadge {
  0% {
    transform: rotateY(0deg);
    filter: drop-shadow(0 0 4px #b84dff) drop-shadow(0 0 8px #b84dff);
  }
  50% {
    transform: rotateY(180deg);
    filter: brightness(0.8) drop-shadow(0 0 12px #a23bff);
  }
  100% {
    transform: rotateY(360deg);
    filter: drop-shadow(0 0 4px #b84dff) drop-shadow(0 0 8px #b84dff);
  }
}

.nfs-mycred-rank {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.nfs-mycred-rank .nfs-rank-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 4px;
}