/* ==================== CHAMP DRAFTS PAGE STYLES ==================== */

.champ-drafts-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.champ-drafts-filters {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champ-drafts-filters-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.champ-drafts-filters-row:last-child {
  margin-bottom: 0;
}

/* Champion selector */
.champ-drafts-champion-selector {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.champ-drafts-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.champ-drafts-champion-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e4e6eb;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.champ-drafts-champion-input:focus {
  outline: none;
  border-color: rgba(74, 144, 226, 0.5);
  background: rgba(15, 17, 21, 0.95);
}

.champ-drafts-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 32, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: 0.25rem;
}

.champ-drafts-suggestions.active {
  display: block;
}

.champ-drafts-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #e4e6eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.champ-drafts-suggestion-item:hover,
.champ-drafts-suggestion-item.highlighted {
  background: rgba(74, 144, 226, 0.2);
}

.champ-drafts-suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Selected champion display */
.champ-drafts-selected-champion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.champ-drafts-selected-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid rgba(74, 144, 226, 0.5);
}

.champ-drafts-selected-name {
  font-weight: 600;
  color: #e4e6eb;
  flex: 1;
}

.champ-drafts-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.champ-drafts-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

/* Results container */
.champ-drafts-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Summary section */
.champ-drafts-summary {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champ-drafts-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.champ-drafts-summary-champion {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.champ-drafts-summary-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 3px solid rgba(74, 144, 226, 0.5);
}

.champ-drafts-summary-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e4e6eb;
  margin: 0 0 0.25rem 0;
}

.champ-drafts-summary-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.champ-drafts-stat-box {
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 17, 21, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.champ-drafts-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
}

.champ-drafts-stat-value.win {
  color: #10b981;
}

.champ-drafts-stat-value.counter {
  color: #f59e0b;
}

.champ-drafts-stat-value.blind {
  color: #8b5cf6;
}

.champ-drafts-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Matchups sections */
.champ-drafts-matchups-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .champ-drafts-matchups-container {
    grid-template-columns: 1fr;
  }
}

.champ-drafts-matchups-section {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champ-drafts-matchups-section.counter-pick {
  border-left: 3px solid #f59e0b;
}

.champ-drafts-matchups-section.blind-pick {
  border-left: 3px solid #8b5cf6;
}

.champ-drafts-matchups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.champ-drafts-matchups-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e4e6eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champ-drafts-matchups-title .counter-icon {
  color: #f59e0b;
}

.champ-drafts-matchups-title .blind-icon {
  color: #8b5cf6;
}

.champ-drafts-matchups-count {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Matchups table */
.champ-drafts-matchups-table {
  width: 100%;
  border-collapse: collapse;
}

.champ-drafts-matchups-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(15, 17, 21, 0.6);
}

.champ-drafts-matchups-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.champ-drafts-matchups-table tbody tr:hover {
  background: rgba(25, 27, 33, 0.8);
}

.champ-drafts-matchups-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #e4e6eb;
  vertical-align: middle;
}

.champ-drafts-opponent-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champ-drafts-opponent-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.champ-drafts-winrate-cell {
  font-weight: 600;
}

.champ-drafts-winrate-cell.high {
  color: #10b981;
}

.champ-drafts-winrate-cell.medium {
  color: #f59e0b;
}

.champ-drafts-winrate-cell.low {
  color: #ef4444;
}

/* Games list */
.champ-drafts-games-section {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champ-drafts-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.champ-drafts-games-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e4e6eb;
}

.champ-drafts-games-table {
  width: 100%;
  border-collapse: collapse;
}

.champ-drafts-games-table thead {
  background: rgba(15, 17, 21, 0.8);
}

.champ-drafts-games-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.champ-drafts-games-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.champ-drafts-games-table tbody tr:hover {
  background: rgba(25, 27, 33, 0.8);
}

.champ-drafts-games-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #e4e6eb;
  vertical-align: middle;
}

.champ-drafts-pick-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.champ-drafts-pick-type.counter {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.champ-drafts-pick-type.blind {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.champ-drafts-result {
  font-weight: 700;
}

.champ-drafts-result.win {
  color: #10b981;
}

.champ-drafts-result.loss {
  color: #ef4444;
}

/* Role badge */
.champ-drafts-role-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #60a5fa;
  text-transform: uppercase;
  font-weight: 600;
}

/* Loading and empty states */
.champ-drafts-loading,
.champ-drafts-empty {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 8px;
}

.champ-drafts-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Buttons */
.champ-drafts-search-btn {
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
}

.champ-drafts-reset-btn {
  padding: 0.75rem 1.5rem !important;
}

/* ==================== RESULTS DISPLAY ==================== */

/* Summary card */
.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.summary-champion {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-champ-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid rgba(74, 144, 226, 0.5);
}

.summary-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(15, 17, 21, 0.6);
  border-radius: 6px;
  min-width: 80px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  display: block;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tables common styles */
.matchups-table,
.games-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 17, 21, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.matchups-table th,
.games-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(15, 17, 21, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matchups-table td,
.games-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #e4e6eb;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.matchups-table tbody tr:hover,
.games-table tbody tr:hover {
  background: rgba(25, 27, 33, 0.8);
}

/* Champion cell with icon */
.champion-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champ-icon-small {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Winrate colors */
.positive {
  color: #10b981;
}

.negative {
  color: #ef4444;
}

/* Pick type badges */
.pick-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.counter-pick-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.blind-pick-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

/* Result badges */
.result-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-badge.win {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.result-badge.loss {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Items display */
.items-display {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.item-icon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-icon:hover {
  transform: scale(1.2);
  border-color: rgba(74, 144, 226, 0.5);
}

/* Runes display */
.runes-display {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.rune-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rune-icon:hover {
  transform: scale(1.2);
  border-color: rgba(74, 144, 226, 0.5);
}

.rune-icon-small {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* VOD button */
.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-vod {
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: #60a5fa;
}

.btn-vod:hover {
  background: rgba(74, 144, 226, 0.25);
  border-color: rgba(74, 144, 226, 0.5);
}

/* No data message */
.no-data {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-style: italic;
}

/* Sections styling */
.matchups-section,
.games-section {
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matchups-section h3,
.games-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e4e6eb;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.matchups-section.counter h3 {
  color: #f59e0b;
}

.matchups-section.blind h3 {
  color: #8b5cf6;
}

.matchups-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .matchups-container {
    grid-template-columns: 1fr;
  }
}
