/**
 * admin_forum_moderation.css - Styles pour modération forum
 * Préfixe : blx-* pour éviter les conflits
 */

/* ============================================================
   CORRECTIONS LAYOUT
   ============================================================ */

.forum-container {
  padding-top: 80px !important;
}

/* ============================================================
   CROIX SUPPRESSION SUR LES TOPIC CARDS
   ============================================================ */

.blx-delete-topic-cross {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(229, 62, 62, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  pointer-events: auto;
}

.blx-delete-topic-cross:hover {
  background: rgba(197, 48, 48, 1);
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 3px 10px rgba(229, 62, 62, 0.5);
}

.blx-delete-topic-cross:active {
  transform: scale(0.95);
}

/* Empêcher le lien parent de capturer les clics */
.topic-card-nexus:has(.blx-delete-topic-cross),
.topic-card:has(.blx-delete-topic-cross) {
  pointer-events: auto;
}

.topic-card-nexus .blx-delete-topic-cross,
.topic-card .blx-delete-topic-cross {
  pointer-events: auto !important;
}

/* ============================================================
   CROIX SUPPRESSION SUR LES POSTS
   ============================================================ */

.blx-delete-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin-left: 10px;
  background: rgba(229, 62, 62, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0.85;
  vertical-align: middle;
}

.blx-delete-post-btn:hover {
  background: rgba(197, 48, 48, 1);
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 3px 10px rgba(229, 62, 62, 0.5);
}

.blx-delete-post-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   ASSURER LA POSITION RELATIVE
   ============================================================ */

.post-header {
  position: relative;
}

.forum-post,
.post,
.message-post {
  position: relative;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .blx-delete-post-btn {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .blx-delete-topic-cross {
    width: 24px;
    height: 24px;
    font-size: 12px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .blx-delete-post-btn {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  
  .blx-delete-topic-cross {
    width: 22px;
    height: 22px;
    font-size: 11px;
    top: 6px;
    right: 6px;
  }
}

/* ============================================================
   ANIMATION D'APPARITION
   ============================================================ */

@keyframes blx-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.blx-delete-topic-cross,
.blx-delete-post-btn {
  animation: blx-fade-in 0.3s ease-out;
}
