/* Styles pour les compétences */

.benefits-list,
.drawbacks-list,
.prerequisites-list {
  list-style: none;
  margin: 0;
  padding: 0;
  
  li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    
    input {
      flex: 1;
    }
    
    a {
      margin-left: 5px;
      color: #aa0000;
    }
  }
}

.form-group {
  &.stacked {
    margin-bottom: 15px;
    
    label {
      display: flex;
      justify-content: space-between;
      
      a {
        color: #0066aa;
      }
    }
  }
}

.item-grade {
  display: flex;
  justify-content: space-between;
  width: 80px;
  margin-right: 10px;
  
  i.fa-circle {
    color: $c-gold;
  }
  
  i.fa-circle-o {
    color: $c-light;
  }
}

/* Style pour les pips de grade cliquables */
.grade-pips {
  display: flex;
  align-items: center;
  
  .grade-pip {
    margin-right: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.1s, color 0.2s;
    
    &.active {
      color: $c-gold;
    }
    
    &.inactive {
      color: transparent;
      text-shadow: 0 0 0 $c-light;
    }
    
    &:hover {
      transform: scale(1.2);
      
      &.active {
        color: darken($c-gold, 10%);
      }
      
      &.inactive {
        text-shadow: 0 0 0 lighten($c-light, 20%);
      }
    }
  }
  
  .grade-value {
    margin-left: 10px;
    font-weight: bold;
    color: $c-gold;
    font-size: 14px;
  }
}

.add-benefit,
.add-drawback,
.add-prerequisite {
  margin-left: 5px;
  color: #0066aa;
  cursor: pointer;
}

/* Style pour les pips de grade dans la fiche de personnage */
.item-list {
  .item {
    .item-grade {
      display: flex;
      align-items: center;
      margin: 0 10px;
      
      .grade-pip {
        font-size: 12px;
        margin-right: 4px;
        
        &.active {
          color: $c-gold;
        }
        
        &.inactive {
          color: $c-light;
        }
      }
    }
  }
  
  .item-passive {
    margin-top: 5px;
    font-style: italic;
    color: $c-text-light;
  }
  
  .item-prerequisites {
    margin-top: 10px;
    
    h4 {
      font-size: 14px;
      margin-bottom: 5px;
      color: $c-text;
    }
    
    ul {
      margin: 0;
      padding-left: 20px;
      
      li {
        font-size: 12px;
      }
    }
  }
}

/* Affichage des avantages et inconvénients dans la feuille de personnage */
.item-benefits,
.item-drawbacks,
.item-constraints,
.item-prerequisites {
  margin-top: 10px;
  
  h4 {
    font-size: 14px;
    margin-bottom: 5px;
    border-bottom: 1px solid $c-faint;
  }
  
  ul {
    margin: 0;
    padding-left: 20px;
    
    li {
      margin-bottom: 3px;
      font-size: 13px;
    }
  }
}
