/* ==================== DRAFT ANALYZER ==================== */
/* Matches SK Gaming Dashboard Design System */

.draft-analyzer-container {
  padding: 20px;
  max-width: 1800px;
  margin: 0 auto;
}

/* ==================== FILTERS SECTION ==================== */

.da-filters-section {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.da-filters-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.da-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.da-filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.da-select,
.da-date-input {
  padding: 10px 14px;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  min-width: 180px;
  transition: all 0.2s ease;
}

.da-select:focus,
.da-date-input:focus {
  outline: none;
  border-color: #5b7fff;
}

.da-select option {
  background: #0f1115;
  color: #fff;
}

.da-btn-apply {
  padding: 10px 24px;
  background: #5b7fff;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.da-btn-apply:hover {
  background: #4a6ae8;
  transform: translateY(-1px);
}

.da-btn-clear {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.da-btn-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==================== AUTOCOMPLETE ==================== */

.da-autocomplete-wrapper {
  position: relative;
}

.da-team-input,
.da-league-input {
  padding: 10px 14px;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  min-width: 250px;
  width: 100%;
  transition: all 0.2s ease;
}

.da-team-input:focus,
.da-league-input:focus {
  outline: none;
  border-color: #5b7fff;
}

.da-team-input::placeholder,
.da-league-input::placeholder {
  color: #6b7280;
}

.da-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 17, 21, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin-top: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.da-autocomplete-dropdown.active {
  display: block;
}

.da-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e4e6eb;
}

.da-autocomplete-item:last-child {
  border-bottom: none;
}

.da-autocomplete-item:hover {
  background: rgba(91, 127, 255, 0.15);
}

.da-autocomplete-empty {
  padding: 15px;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* ==================== LEAGUE CHIPS ==================== */

.da-leagues-filter {
  min-width: 300px;
}

.da-selected-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.da-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: rgba(91, 127, 255, 0.2);
  border: 1px solid rgba(91, 127, 255, 0.4);
  border-radius: 16px;
  font-size: 0.75rem;
  color: #a8c0ff;
}

.da-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.da-chip-remove:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
}

/* ==================== STATS SUMMARY ==================== */

.da-stats-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.da-stat-card {
  background: rgba(15, 17, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px 30px;
  text-align: center;
}

.da-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.da-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* ==================== LOADING STATE ==================== */

.da-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #6b7280;
}

.da-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #5b7fff;
  border-radius: 50%;
  animation: da-spin 0.8s linear infinite;
  margin-bottom: 15px;
}

@keyframes da-spin {
  to { transform: rotate(360deg); }
}

/* ==================== STATS SECTIONS ==================== */

.da-stats-section {
  background: rgba(15, 17, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.da-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== DRAFT INTERFACE ==================== */

.da-draft-interface {
  margin-top: 15px;
}

.da-draft-container {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 25px;
  align-items: start;
}

.da-team-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.da-team-header {
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.da-blue-team .da-team-header {
  background: rgba(91, 127, 255, 0.15);
  border: 1px solid rgba(91, 127, 255, 0.3);
  color: #5b7fff;
}

.da-red-team .da-team-header {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.da-draft-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding-top: 45px;
}

.da-vs-indicator {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 2px;
}

/* ==================== PICKS CONTAINER ==================== */

.da-picks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.da-pick-slot {
  background: rgba(15, 17, 21, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 15px;
  transition: border-color 0.2s ease;
}

.da-pick-slot:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.da-blue-team .da-pick-slot {
  border-left: 3px solid rgba(91, 127, 255, 0.6);
}

.da-red-team .da-pick-slot {
  border-left: 3px solid rgba(239, 68, 68, 0.6);
}

.da-pick-title {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
}

.da-blue-team .da-pick-title {
  color: rgba(91, 127, 255, 0.8);
}

.da-red-team .da-pick-title {
  color: rgba(239, 68, 68, 0.8);
}

/* ==================== CHAMPION LIST ==================== */

.da-champion-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.da-champion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.da-champion-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.da-champion-row.da-no-data {
  color: #4b5563;
  justify-content: center;
  font-style: italic;
  font-size: 0.8rem;
}

.da-champion-rank {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5b7fff;
  min-width: 18px;
  text-align: center;
}

.da-champion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
  overflow: hidden;
}

.da-champion-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.da-champion-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e4e6eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.da-champion-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.da-champion-count {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}

.da-champion-percentage {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 36px;
  text-align: right;
}

.da-champion-winrate {
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

/* ==================== BAN INTERFACE ==================== */

.da-ban-interface {
  margin-top: 15px;
}

.da-ban-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.da-ban-rotation {
  background: rgba(15, 17, 21, 0.4);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.da-rotation-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.da-ban-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.da-ban-team {
  padding: 15px;
  border-radius: 6px;
}

.da-blue-bans {
  background: rgba(91, 127, 255, 0.08);
  border: 1px solid rgba(91, 127, 255, 0.2);
}

.da-red-bans {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.da-ban-team-title {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.da-blue-bans .da-ban-team-title {
  color: #5b7fff;
}

.da-red-bans .da-ban-team-title {
  color: #ef4444;
}

/* Ban lists - no winrate */
.da-ban-team .da-champion-winrate {
  display: none;
}

/* ==================== SCROLLBAR ==================== */

.da-champion-list::-webkit-scrollbar {
  width: 4px;
}

.da-champion-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.da-champion-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.da-champion-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1400px) {
  .da-draft-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .da-draft-center {
    display: none;
  }

  .da-team-side {
    margin-bottom: 15px;
  }
}

@media (max-width: 900px) {
  .da-ban-grid {
    grid-template-columns: 1fr;
  }

  .da-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .da-filter-group {
    width: 100%;
  }

  .da-select,
  .da-date-input {
    width: 100%;
  }

  .da-btn-apply {
    width: 100%;
    margin-top: 10px;
  }
}
