/* ==================== MULTI-CHAMPION MATCHUPS STYLES ==================== */

/* Force vertical layout for matchups page */
.matchups-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.matchups-filters-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);
  width: 100% !important;
  flex-shrink: 0;
}

.matchups-results-container {
  width: 100% !important;
}

.matchups-teams-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.matchups-team-selection {
  flex: 1;
}

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

.matchups-champions-input-wrapper {
  position: relative;
}

.matchups-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;
}

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

.matchups-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;
}

.matchups-suggestions.active {
  display: block;
}

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

.matchups-suggestion-option:hover,
.matchups-suggestion-item:hover {
  background: rgba(74, 144, 226, 0.2);
}

.matchups-suggestion-option.highlighted {
  background: rgba(74, 144, 226, 0.3);
}

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

.matchups-champion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  min-height: 40px;
}

.matchups-champion-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 6px;
  color: #e4e6eb;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.matchups-champion-tag:hover {
  background: rgba(74, 144, 226, 0.25);
  border-color: rgba(74, 144, 226, 0.5);
}

.matchups-tag-icon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.matchups-tag-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 0.25rem;
}

.matchups-tag-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.synergy-tag-role {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #9ca3af;
  font-size: 0.7rem;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%239ca3af' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 14px;
}

.synergy-tag-role:focus {
  border-color: rgba(74, 144, 226, 0.5);
  color: #e4e6eb;
}

.synergy-tag-role option {
  background: #1a1d23;
  color: #e4e6eb;
}

.matchups-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #9ca3af;
  padding-top: 2.5rem;
  min-width: 60px;
}

.matchups-filters-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.matchups-search-btn {
  padding: 0.75rem 2rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

.matchups-results-container {
  margin-top: 1.5rem;
}

.matchups-summary {
  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-summary-header {
  margin-bottom: 0;
}

.matchups-summary-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.matchups-summary-champions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.matchups-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

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

.matchups-summary-score {
  font-size: 2rem;
  font-weight: 700;
  color: #9ca3af;
  min-width: 80px;
  text-align: center;
}

.matchups-summary-score.winning {
  color: #10b981;
}

.matchups-summary-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.matchups-summary-total {
  font-size: 1rem;
  font-weight: 600;
  color: #e4e6eb;
}

.matchups-summary-winrate {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
}

.matchups-games-list {
  width: 100%;
  overflow-x: auto;
}

.matchups-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

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

.matchups-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);
}

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

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

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

.vs-cell {
  text-align: center;
  color: #9ca3af;
  font-weight: 700;
}

.champion-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champion-cell.searched {
  background: rgba(74, 144, 226, 0.15);
  border: 2px solid rgba(74, 144, 226, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

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

.win-cell {
  color: #10b981;
  font-weight: 700;
}

.lose-cell {
  color: #ef4444;
  font-weight: 700;
}

.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);
}

.item-slot.empty {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.champions-mini {
  display: flex;
  gap: 0.25rem;
}

.champion-icon-tiny {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-icon {
  padding: 0.25rem 0.75rem;
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 4px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 500;
  white-space: nowrap;
}

.btn-icon:hover {
  background: rgba(74, 144, 226, 0.25);
  border-color: rgba(74, 144, 226, 0.5);
  transform: translateY(-1px);
}

/* Early Game Stats Block */
.matchup-early-stats {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}

.matchup-early-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.matchup-early-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.matchup-early-table th {
  padding: 4px 12px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.matchup-early-table td {
  padding: 6px 12px;
  text-align: center;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #d1d5db;
}

.matchup-early-label {
  text-align: left !important;
  font-family: inherit !important;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.75rem;
}

.matchup-diff-pos { color: #34d399; font-weight: 600; }
.matchup-diff-neg { color: #f87171; font-weight: 600; }

.matchup-early-sample {
  font-size: 0.65rem;
  color: #4b5563;
  text-align: right;
  margin-top: 6px;
}
