/* =============================================
   NIGHT ACTIONS - POWER VISUAL OVERHAUL 
   ============================================= */

/* %% Generic improvements %% */
.legacy-action-form .action-guide-text {
  font-family: var(--hybrid-font-body);
  font-size: 0.93rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  color: var(--hybrid-ink);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* %% Mayor candidacy %% */
.mayor-candidates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.mayor-candidate-chip {
  background: var(--hybrid-bg-panel-soft);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.9rem;
  color: var(--text-color);
}

[data-action-type] .action-target-grid {
  gap: 8px;
  padding: 4px;
}
[data-action-type] .action-target-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(4px);
}

/* 1. LOUPS-GAROUS (Sang, griffes, brutal) */
[data-action-type="werewolf"] .action-target-card,
[data-action-type="whiteWerewolf"] .action-target-card,
[data-action-type="infectFather"] .action-target-card {
  background: rgba(45, 10, 10, 0.4);
  border-color: rgba(180, 30, 30, 0.3);
}
[data-action-type="werewolf"] .action-target-card:hover,
[data-action-type="whiteWerewolf"] .action-target-card:hover,
[data-action-type="infectFather"] .action-target-card:hover {
  background: rgba(90, 15, 15, 0.6);
  border-color: rgba(220, 40, 40, 0.5);
  transform: translateY(-3px) scale(1.02);
}
[data-action-type="werewolf"] .action-target-card.is-selected,
[data-action-type="whiteWerewolf"] .action-target-card.is-selected,
[data-action-type="infectFather"] .action-target-card.is-selected {
  background: rgba(180, 20, 20, 0.6);
  border-color: #ff3333;
  box-shadow: 0 0 20px rgba(255, 20, 20, 0.5), inset 0 0 15px rgba(200, 0, 0, 0.3);
}
[data-action-type="werewolf"] .action-target-card.is-selected .action-target-avatar,
[data-action-type="whiteWerewolf"] .action-target-card.is-selected .action-target-avatar,
[data-action-type="infectFather"] .action-target-card.is-selected .action-target-avatar {
  background: #ff3333;
  color: #fff;
  box-shadow: 0 0 10px #ff3333;
  text-shadow: 0 0 8px #fff;
}

/* 2. VOYANTE (Mystique, clair, yeux, violet) */
[data-action-type="seer"] .action-target-card {
  background: rgba(20, 10, 45, 0.4);
  border-color: rgba(130, 80, 200, 0.3);
}
[data-action-type="seer"] .action-target-card:hover {
  background: rgba(35, 15, 75, 0.6);
  border-color: rgba(160, 100, 235, 0.6);
}
[data-action-type="seer"] .action-target-card.is-selected {
  background: rgba(70, 30, 130, 0.6);
  border-color: #b17aff;
  box-shadow: 0 0 20px rgba(177, 122, 255, 0.5), inset 0 0 15px rgba(130, 60, 220, 0.4);
}
[data-action-type="seer"] .action-target-card.is-selected .action-target-avatar {
  box-shadow: 0 0 0 2px #b17aff, 0 0 15px #b17aff;
  background: #6a2abf;
}

/* 3. SALVATEUR (Bouclier, protecteur, bleu cyan/or) */
[data-action-type="guard"] .action-target-card {
  background: rgba(10, 35, 45, 0.4);
  border-color: rgba(60, 160, 200, 0.3);
}
[data-action-type="guard"] .action-target-card:hover {
  background: rgba(15, 55, 70, 0.6);
  border-color: rgba(80, 200, 240, 0.6);
}
[data-action-type="guard"] .action-target-card.is-selected {
  background: rgba(25, 90, 120, 0.6);
  border-color: #5ce1e6;
  box-shadow: 0 0 25px rgba(92, 225, 230, 0.4), inset 0 0 20px rgba(50, 150, 180, 0.4);
}
[data-action-type="guard"] .action-target-card.is-selected .action-target-avatar {
  box-shadow: 0 0 0 3px #5ce1e6;
  background: #238596;
}

/* 4. SORCIERE (Fiole de vie = vert, Mort = violet/rouge poison) */
/* This one uses legacy-action-form[data-action-type="witch"] inside the custom panel */
[data-action-type="witch"] .action-target-card {
  border-radius: 50px;
  padding: 4px 10px 4px 4px;
}
[data-action-type="witch"] .witch-section {
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(145deg, rgba(30,30,40,0.6) 0%, rgba(10,10,15,0.8) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* 5. COUPABLE / DEATH / ANKOU (Squelette, pale, noir et blanc) */
[data-action-type="death"] .action-target-card,
[data-action-type="ankouVote"] .action-target-card {
  background: rgba(30, 30, 30, 0.5);
  border-color: rgba(150, 150, 150, 0.3);
  filter: grayscale(0.8);
}
[data-action-type="death"] .action-target-card:hover,
[data-action-type="ankouVote"] .action-target-card:hover {
  filter: grayscale(0.3);
  background: rgba(50, 50, 50, 0.7);
  border-color: rgba(200, 200, 200, 0.6);
}
[data-action-type="death"] .action-target-card.is-selected,
[data-action-type="ankouVote"] .action-target-card.is-selected {
  filter: grayscale(0);
  background: rgba(80, 80, 80, 0.7);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* 6. LAPIN BLANC & CUPIDON (Double target rose/bleu) */
[data-action-type="whiteRabbit"] .action-target-grid,
[data-action-type="cupid"] .action-target-grid {
  background: rgba(20, 10, 30, 0.3);
  border-radius: 12px;
  padding: 8px;
}
[data-action-type="whiteRabbit"] .action-target-card.is-first,
[data-action-type="cupid"] .action-target-card.is-first {
  background: rgba(232, 127, 160, 0.25);
  border-width: 2px;
  border-color: #ff9fb9;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(232, 127, 160, 0.3);
}
[data-action-type="whiteRabbit"] .action-target-card.is-second,
[data-action-type="cupid"] .action-target-card.is-second {
  background: rgba(126, 184, 224, 0.25);
  border-width: 2px;
  border-color: #9cd5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(126, 184, 224, 0.3);
}

/* 7. PYROMANE (Feu, orange, jaune, explosions) */
[data-action-type="pyromancer"] .action-target-card {
  background: rgba(50, 20, 0, 0.4);
  border-color: rgba(200, 90, 10, 0.3);
}
[data-action-type="pyromancer"] .action-target-card:hover {
  background: rgba(80, 35, 0, 0.6);
  border-color: rgba(250, 120, 20, 0.6);
}
[data-action-type="pyromancer"] .action-target-card.is-selected {
  background: rgba(150, 50, 0, 0.6);
  border-color: #ff8800;
  box-shadow: 0 0 25px rgba(255, 100, 0, 0.5), inset 0 0 15px rgba(200, 60, 0, 0.4);
}
[data-action-type="pyromancer"] .action-target-card.is-selected .action-target-avatar {
  background: linear-gradient(135deg, #ffcc00, #ff4400);
  box-shadow: 0 0 10px #ff6600;
  color: #220;
}

/* 8. PETITE FILLE / NOCTAMBULE (Marron, doux, discret) */
[data-action-type="sleepwalker"] .action-target-card {
  background: rgba(30, 20, 10, 0.4);
  border-color: rgba(130, 100, 70, 0.3);
}
[data-action-type="sleepwalker"] .action-target-card.is-selected {
  background: rgba(80, 50, 20, 0.6);
  border-color: #dda570;
  box-shadow: 0 0 15px rgba(221, 165, 112, 0.4);
}


/* %% Action Submit Button Styling per Role %% */
.legacy-action-card[data-action-type="werewolf"] .legacy-submit-btn,
.legacy-action-card[data-action-type="whiteWerewolf"] .legacy-submit-btn,
.legacy-action-card[data-action-type="infectFather"] .legacy-submit-btn {
  background: linear-gradient(135deg, #aa0000 0%, #440000 100%);
  border-color: #ff3333;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}
.legacy-action-card[data-action-type="werewolf"] .legacy-submit-btn:hover {
  background: linear-gradient(135deg, #dd0000 0%, #660000 100%);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.legacy-action-card[data-action-type="seer"] .legacy-submit-btn {
  background: linear-gradient(135deg, #6a2abf 0%, #2b0b5c 100%);
  border-color: #b17aff;
  color: #e5ccff;
}
.legacy-action-card[data-action-type="seer"] .legacy-submit-btn:hover {
  background: linear-gradient(135deg, #8b3cff 0%, #461499 100%);
  box-shadow: 0 0 15px rgba(177, 122, 255, 0.4);
}

.legacy-action-card[data-action-type="guard"] .legacy-submit-btn {
  background: linear-gradient(135deg, #238596 0%, #0d3b45 100%);
  border-color: #5ce1e6;
  color: #c9f5f7;
}

.legacy-action-card[data-action-type="pyromancer"] .legacy-submit-btn {
  background: linear-gradient(135deg, #ff6600 0%, #882200 100%);
  border-color: #ffaa00;
  color: #ffeecc;
}
.legacy-action-card[data-action-type="pyromancer"] .legacy-submit-btn:hover {
  background: linear-gradient(135deg, #ff8833 0%, #aa3300 100%);
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.5);
}


/* %% Default styling for non-specified powres %% */
.legacy-action-form[data-action-type] .action-target-card:not([class*="werewolf"]):not([class*="seer"]):not([class*="guard"]):not([class*="death"]):not([class*="pyro"]) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.legacy-action-form[data-action-type] .action-target-card:not([class*="werewolf"]):not([class*="seer"]):not([class*="guard"]):not([class*="death"]):not([class*="pyro"]):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.legacy-action-form[data-action-type] .action-target-card.is-selected {
  background: rgba(216, 188, 121, 0.22);
  border-color: #d8bc79;
}

