/* ============================================
   COLLABORATION - Styles minimalistes
   ============================================ */

/* Toggle Button */
.collab-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.collab-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Édition inline - outline simple */
.subtitle-text[contenteditable="true"] {
  outline: 2px solid #c9a961;
  outline-offset: 2px;
  position: relative;
}

/* Placeholder pour indiquer qu'on peut laisser vide pour supprimer */
.subtitle-text[contenteditable="true"][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(201, 169, 97, 0.5);
  font-style: italic;
  font-size: 14px;
  pointer-events: none;
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  text-align: center;
}

/* Proposition au-dessus - style identique aux sous-titres */
.proposal-display {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffc107;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  z-index: 100;
  cursor: pointer;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.proposal-display:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-50%) scale(1.02);
}

.proposal-display--voted {
  color: #fff;
  cursor: default;
}

/* Draft display */
.proposal-display--draft {
  color: #ffc107;
  cursor: default;
  border: 1px solid rgba(201, 169, 97, 0.5);
}

.proposal-display--draft:hover {
  transform: translateX(-50%);
}

/* Pastille bleue dans le carousel (pending proposals) */
.carousel-item--has-proposal::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3498db;
  box-shadow: 0 0 4px rgba(52, 152, 219, 0.6);
}

/* Pastille orange dans le carousel (draft proposals - creator only) */
.carousel-item--has-draft::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e67e22;
  box-shadow: 0 0 4px rgba(230, 126, 34, 0.6);
}

/* Indicateur de suppression dans le carousel */
.carousel-item__text--delete {
  color: #e74c3c;
  font-size: 20px;
  font-weight: bold;
}

/* Pastille rouge pour proposition de suppression */
.carousel-item--has-proposal[data-action="delete"]::after {
  background: #e74c3c;
  box-shadow: 0 0 4px rgba(231, 76, 60, 0.6);
}

/* Sous-titre voté (jaune en bas) */
.subtitles-current.subtitles-current--proposal-voted {
  color: #ffc107 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important; /* Override le pointer-events: none par défaut */
}

/* Force la couleur du texte en jaune */
.subtitles-current.subtitles-current--proposal-voted .subtitle-text {
  color: #ffc107 !important;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    0 2px 0 #000;
  pointer-events: auto;
}

.subtitles-current--proposal-voted:hover .subtitle-actions {
  display: flex;
}

/* Boutons d'action - overlay complet au centre du sous-titre */
.subtitle-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  background: rgba(0, 0, 0, 0.85);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: auto; /* S'assurer que les boutons sont cliquables */
}

.subtitle-action-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #aaa;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  pointer-events: auto; /* S'assurer que chaque bouton est cliquable */
  position: relative; /* Pour le z-index */
  z-index: 1003;
}

.subtitle-action-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  transform: scale(1.1);
}

.subtitle-action-btn:active {
  transform: scale(0.95);
}
