/*
 * Copyright (c) 2025 Davide Guerri <davide.guerri@gmail.com>
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial 4.0
 * International License. To view a copy of this license, visit
 * http://creativecommons.org/licenses/by-nc/4.0/
 */

/* ========================================
   EVALUATIONS PAGE STYLES
   ======================================== */

/* Search container styling */
.search-container {
  position: relative;
}

#searchInput {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

#searchInput:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  outline: none;
}

#searchInput:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

#searchResults {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Pairing cards styling */
.pairing-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 1rem;
  position: relative !important;
  width: 100% !important;
  transition: all 0.2s ease;
}

.pairing-card .card-body {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
}

#pairingsList {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  width: 100% !important;
  min-height: 50px;
}

/* Button styling for evaluations */
.pairing-card .btn-group-vertical {
  gap: 0.5rem;
}

.pairing-card .action-btn {
  min-width: 120px;
}

/* Evaluation Scores Styling */
.evaluation-scores {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.score-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.score-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: normal;
}

.score-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
}

/* Affinity Color Coding: Red (0) -> Yellow (1) -> Green (2) */
.score-badge.affinity-0 {
  background-color: #dc3545;
  color: white;
}

.score-badge.affinity-1 {
  background-color: #ffc107;
  color: #333;
}

.score-badge.affinity-2 {
  background-color: #28a745;
  color: white;
}

/* Harmony Color Coding: Red (0) -> Yellow (1) -> Green (2) */
.score-badge.harmony-0 {
  background-color: #dc3545;
  color: white;
}

.score-badge.harmony-1 {
  background-color: #ffc107;
  color: #333;
}

.score-badge.harmony-2 {
  background-color: #28a745;
  color: white;
}

/* Mobile responsive */
@media screen and (max-width: 767px) {
  .pairing-card .d-flex {
    flex-direction: column;
  }

  .pairing-card .ms-3 {
    margin-left: 0 !important;
    margin-top: 1rem;
    width: 100%;
  }

  .pairing-card .btn-group-vertical {
    flex-direction: row;
    width: 100%;
  }

  .pairing-card .action-btn {
    flex: 1;
    min-width: unset;
  }

  .evaluation-scores {
    gap: 0.25rem;
  }

  .score-item {
    gap: 0.25rem;
  }

  .score-label {
    font-size: 0.7rem;
  }

  .score-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}
