/* Team Page Styles */

.team-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.team-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.team-info h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.team-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(255,255,255,0.1);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.stat-value {
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.stat-value-small {
  font-size: 1.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #2253aa;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #1a4188;
  transform: translateX(-5px);
}

.results-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2253aa;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #2253aa;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-left: auto;
}

.results-grid {
  display: grid;
  gap: 20px;
}

.result-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-card:hover {
  border-color: #2253aa;
  box-shadow: 0 5px 20px rgba(34,83,170,0.15);
  transform: translateY(-2px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.result-event {
  flex: 1;
  min-width: 200px;
}

.result-event-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.result-event-type {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-points {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2253aa 0%, #1a4188 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 700;
}

.points-value {
  font-size: 2rem;
}

.points-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.result-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.athlete-name {
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 6px;
  color: #2253aa;
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-block;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-results-icon svg {
  color: #999;
  opacity: 0.5;
}

.loading {
  text-align: center;
  padding: 80px 20px;
  font-size: 1.2rem;
  color: #666;
}

.error {
  background: #ffebee;
  color: #c62828;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
}
/* Mobile Responsive */
@media (max-width: 1032px) {
  .team-info {
  flex-direction: column;
}
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .team-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .team-info h1 {
    font-size: 2rem;
  }

  .team-stats {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .stat-box {
    width: 100%;
  }

  .result-header {
    flex-direction: column;
  }

  .result-points {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-subtitle {
    margin-left: 0;
  }
}

/* Point Adjustments - Subtle Styling */
.adjustments-section {
  margin-top: 40px;
  opacity: 0.85;
}

.adjustments-title {
  font-size: 1.5rem;
  color: #666;
  border-bottom-color: #ccc;
  border-bottom-width: 2px;
}

.adjustment-card {
  background: #fafafa;
  border-color: #d0d0d0;
  opacity: 0.9;
}

.adjustment-card:hover {
  border-color: #999;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.adjustment-event {
  font-size: 1.1rem;
  color: #555;
}

.adjustment-type {
  color: #888;
  font-size: 0.85rem;
}

.adjustment-description {
  background: #e8e8e8;
  padding: 6px 12px;
  border-radius: 5px;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  font-size: 0.9rem;
}

.adjustment-points {
  background: linear-gradient(135deg, #888 0%, #666 100%);
}

.adjustment-points.negative {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.adjustment-points.positive {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

/* Team Logos Row (Landing Page) */
.team-logos-section {
  padding: 0 0 50px 0;
}

.team-logos-inner {
  margin: 0 auto;
}

.team-logos-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-logos-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 30px;
}

.team-logos-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.team-logos-scroll::-webkit-scrollbar {
  display: none;
}

.team-logos-track {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 10px 2px 20px;
}

.team-logo-card {
  flex: 0 0 auto;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0;
  background: white;
  cursor: pointer;
  height: 100%;
}

.team-logo-card:hover {
  transform: translateY(-8px);
}

.team-logo-card-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: transparent;
  padding: 15px;
}

.team-logo-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-logo-card-meta {
  width: 100%;
  text-align: center;
  border-top: 2px solid #2253aa;
  margin-top: auto;
}

.team-logo-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-card-points {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2253aa 0%, #1a4188 100%);
  color: white;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.team-logo-card-pts {
  font-size: 0.75rem;
  opacity: 0.9;
}

.team-logos-controls {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.team-logos-btn {
  background: #ffffff;
  border: 1px solid rgba(34,83,170,0.25);
  color: #2253aa;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.team-logos-btn:nth-of-type(1) {
  border-radius: 10px 0 0 10px;
}

.team-logos-btn:nth-of-type(2) {
  border-radius: 0 10px 10px 0;
}

.team-logos-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34,83,170,0.45);
  box-shadow: 0 8px 20px rgba(34,83,170,0.12);
}

.team-logos-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.team-logos-search input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
}

.team-logos-search input:focus {
  border-color: #2253aa;
  box-shadow: 0 0 0 3px rgba(34, 83, 170, 0.1);
}

.team-logos-search i {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.team-logos-empty {
  flex: 0 0 auto;
  padding: 18px 14px;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 260px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .team-logos-title { font-size: 1.8rem; }
  .team-logo-card { width: 160px; }
  .team-logo-card-logo { width: 105px; height: 105px; }
  .team-logos-search { min-width: 220px; }
}

