/* ==================== JUNGLE PROXIMITY PAGE ==================== */

.jungle-prox-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  background: #0a0b0e;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ==================== HEADER ==================== */

.jungle-prox-header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.98) 0%, rgba(10, 11, 14, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jungle-prox-header .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 200px;
}

.jungle-prox-header .filter-group label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.jungle-prox-header .filter-select {
  padding: 0.5rem 0.75rem;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jungle-prox-header .filter-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.jungle-prox-header .filter-select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ==================== CONTENT LAYOUT ==================== */

.jungle-prox-content {
  display: flex;
  flex: 1;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* ==================== STATS PANEL (LEFT) ==================== */

.jungle-prox-stats-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(15, 17, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
}

.jungle-prox-stats-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jungle-prox-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.75rem 0;
}

/* ==================== PROXIMITY TABLE ==================== */

.jungle-prox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.jungle-prox-table th {
  text-align: left;
  padding: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.jungle-prox-table td {
  padding: 0.75rem;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.jungle-prox-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.jungle-prox-table .prox-cell {
  font-weight: 600;
  color: #9ca3af;
}

/* Proximity color coding based on percentage */
.jungle-prox-table .prox-cell.prox-very-low {
  color: #ef4444;  /* Red - 0-15% */
}

.jungle-prox-table .prox-cell.prox-low {
  color: #f97316;  /* Orange - 15-25% */
}

.jungle-prox-table .prox-cell.prox-medium {
  color: #eab308;  /* Yellow - 25-35% */
}

.jungle-prox-table .prox-cell.prox-good {
  color: #84cc16;  /* Light green - 35-45% */
}

.jungle-prox-table .prox-cell.prox-high {
  color: #22c55e;  /* Green - 45%+ */
}

.jungle-prox-table .no-data {
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* ==================== OBJECTIVES SECTION ==================== */

.jungle-prox-objectives {
  display: flex;
  gap: 1rem;
}

.jungle-prox-objective-card {
  flex: 1;
  background: rgba(20, 22, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1rem;
}

.jungle-prox-objective-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.objective-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.8rem;
}

.stat-row span:first-child {
  color: #9ca3af;
}

.stat-row span:last-child {
  color: #e5e7eb;
  font-weight: 600;
}

/* ==================== GAMES PANEL (RIGHT) ==================== */

.jungle-prox-games-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(15, 17, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  max-height: calc(100vh - 200px);
}

.jungle-prox-games-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jungle-prox-games-panel h3 span {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.games-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
}

/* ==================== GAMES TABLE ==================== */

.jungle-prox-games-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

.jungle-prox-games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.jungle-prox-games-table th {
  text-align: left;
  padding: 0.5rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.jungle-prox-games-table td {
  padding: 0.4rem;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.jungle-prox-games-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.jungle-prox-games-table .checkbox-cell {
  width: 30px;
  text-align: center;
}

.jungle-prox-games-table .game-checkbox {
  width: 14px;
  height: 14px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* Team cells - same as match history */
.jungle-prox-games-table .team-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jungle-prox-games-table .team-name {
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
}

.jungle-prox-games-table .blue-team .team-name {
  color: #60a5fa;
}

.jungle-prox-games-table .red-team .team-name {
  color: #f87171;
}

.jungle-prox-games-table .winner .team-name {
  font-weight: 700;
}

/* Result badge - same as match history */
.jungle-prox-games-table .match-result {
  text-align: center;
}

.jungle-prox-games-table .result-badge {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
}

/* Champions cell - same as match history */
.jungle-prox-games-table .champions-cell {
  display: flex;
  gap: 2px;
}

.jungle-prox-games-table .champion-icon-small {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jungle-prox-games-table .match-date-cell {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
}

.no-games {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
  font-style: italic;
}

/* ==================== LOADING & ERRORS ==================== */

.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.error-message {
  text-align: center;
  color: #ef4444;
  padding: 2rem;
}

/* ==================== PROXIMITY TABLE CHAMPION ICONS ==================== */

.champions-icons-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.champions-icons-cell .champion-icon-tiny {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1200px) {
  .jungle-prox-content {
    flex-direction: column;
  }

  .jungle-prox-games-panel {
    max-height: 400px;
  }

  .jungle-prox-objectives {
    flex-direction: column;
  }
}
