/* ==========================================
   SERVME - PAGES AUTHENTICATED DESKTOP PROFILE SKILLS
   Profile skills page desktop - DESKTOP uniquement
   Extrait de profile-skills.css (hors @media mobile)
   ========================================== */

/**
 * Profile Skills & Languages Styles
 */

.skills-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.skills-subsection {
  min-width: 0;
}

.empty-state-small {
  padding: var(--space-6) 0;
  text-align: center;
}

.empty-state-small .text-muted {
  color: var(--gray-400);
  font-size: var(--font-sm);
}

/* Skills List */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  transition: all var(--transition);
}

.skill-badge:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.skill-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.skill-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-md);
}

.skill-stars {
  display: flex;
  gap: 2px;
}

.skill-stars i {
  color: #FFB800;
  font-size: var(--font-sm);
}

/* Languages List */
.languages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.language-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gray-50);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--secondary);
  transition: all var(--transition);
}

.language-badge:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.language-flag {
  font-size: 24px;
  line-height: 1;
}

.language-name {
  flex: 1;
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-md);
}

.language-level {
  color: var(--gray-600);
  font-size: var(--font-sm);
  background: var(--gray-200);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

/* Remove Button */
.btn-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-1);
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Star Rating in Modal */
.star-rating {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.star-label {
  position: relative;
  cursor: pointer;
  font-size: 28px;
  color: var(--gray-300);
  transition: all var(--transition);
}

.star-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-label .star-icon {
  position: relative;
  display: inline-block;
}

.star-label .fa-star {
  transition: all 0.2s ease;
}

.star-label .fa-star.far {
  display: inline;
  color: var(--gray-300);
}

.star-label .fa-star.fas {
  display: none;
  color: #FFB800;
}

/* Étoile sélectionnée et toutes celles avant */
.star-label input:checked ~ .star-icon .fa-star.far {
  display: none !important;
}

.star-label input:checked ~ .star-icon .fa-star.fas {
  display: inline !important;
}

/* Toutes les étoiles avant celle sélectionnée (inversé car flex-direction: row-reverse) */
.star-rating .star-label:has(input:checked) ~ .star-label .fa-star.far {
  display: none !important;
}

.star-rating .star-label:has(input:checked) ~ .star-label .fa-star.fas {
  display: inline !important;
}

/* Pour les navigateurs sans support :has(), utiliser les classes active */
.star-rating.active .star-label.active .fa-star.far,
.star-rating.active .star-label.active ~ .star-label .fa-star.far {
  display: none !important;
}

.star-rating.active .star-label.active .fa-star.fas,
.star-rating.active .star-label.active ~ .star-label .fa-star.fas {
  display: inline !important;
}

/* Hover effect */
.star-label:hover .fa-star.far,
.star-label:hover ~ .star-label .fa-star.far {
  display: none;
}

.star-label:hover .fa-star.fas,
.star-label:hover ~ .star-label .fa-star.fas {
  display: inline;
  color: #FFB800;
  opacity: 0.7;
}

/* Fallback pour navigateurs sans support :has() */
.star-rating.active .star-label.active .fa-star.far,
.star-rating.active .star-label.active ~ .star-label .fa-star.far {
  display: none;
}

.star-rating.active .star-label.active .fa-star.fas,
.star-rating.active .star-label.active ~ .star-label .fa-star.fas {
  display: inline;
}

