/* Start List Custom Styles */

/* Header Styles */
.start-header {
  background: #fff;
  border-bottom: 1px solid var(--light-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 101; /* Must be higher than the tab nav so the nav scrolls under it */
}

.start-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.start-logo {
  max-width: 140px;
}

.start-logo img {
  width: 100%;
  height: auto;
}

.start-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.start-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-color);
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.start-nav a:hover {
  color: var(--accent-color);
}

/* Banner / Hero style for Start List page */
.start-hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e2027 100%);
  color: #fff;
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.start-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(112, 163, 177, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.start-hero .container {
  position: relative;
  z-index: 2;
}

.start-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.start-hero h1 span {
  color: var(--accent-color);
}

.start-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Sticky Navigation (Mobile tab-bar) */
.sticky-nav-bar {
  position: sticky;
  top: 0; /* Changed to 0 as the header is removed */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--light-color);
  padding: 8px 0;
  transition: top 0.3s ease;
}

.sticky-nav-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: var(--light-color);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--dark-color);
  transition: var(--transition);
  cursor: pointer;
}

.sticky-nav-btn span.dist {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.sticky-nav-btn span.label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 2px;
}

.sticky-nav-btn:hover {
  background: rgba(112, 163, 177, 0.1);
  color: var(--accent-color);
}

.sticky-nav-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(112, 163, 177, 0.3);
}

/* Sections styling */
.race-section {
  padding: 60px 0;
  scroll-margin-top: 80px; /* Adjusted offset since header is removed */
}

.race-section:nth-of-type(even) {
  background-color: var(--light-color);
}

.race-header {
  margin-bottom: 30px;
  text-align: center;
}

.race-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-color);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.race-header h2 span.badge {
  background-color: var(--accent-color);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
}

/* Category header styling (1000m and 500m) */
.category-subheader {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 40px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-subheader span.count {
  font-size: 0.85rem;
  color: rgba(40, 43, 55, 0.6);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Athlete List/Row Design (Mobile First) */
.athlete-list {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.athlete-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-color);
  transition: var(--transition);
}

.athlete-row:last-child {
  border-bottom: none;
}

.athlete-row:hover {
  background-color: rgba(112, 163, 177, 0.03);
}

.athlete-bib {
  width: 36px;
  height: 36px;
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1.5px solid rgba(0, 0, 0, 0.05);
}

.athlete-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.athlete-name {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.95rem;
  word-break: break-word;
  text-transform: uppercase;
}

.athlete-team {
  font-size: 0.75rem;
  color: rgba(40, 43, 55, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.athlete-team i {
  color: var(--accent-color);
  font-size: 0.7rem;
}

/* Empty state */
.no-athletes {
  padding: 30px;
  text-align: center;
  color: rgba(40, 43, 55, 0.5);
  font-weight: 500;
}

/* Media query overrides */
@media (max-width: 600px) {
  .start-header {
    padding: 12px 0;
  }
  .start-header .container {
    padding: 0 16px;
  }
  .start-logo {
    max-width: 120px;
  }
  .start-nav {
    gap: 12px;
  }
  .start-nav a {
    font-size: 0.85rem;
  }
  .start-hero {
    padding: 40px 0 30px;
  }
  .start-hero h1 {
    font-size: 2.2rem;
  }
  .start-hero p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .sticky-nav-bar {
    top: 0; /* Sticky to very top */
    padding: 6px 0;
  }
  .race-section {
    scroll-margin-top: 65px; /* Spacing for the sticky tabs on mobile */
    padding: 40px 0;
  }
  .sticky-nav-container {
    width: 95%;
    gap: 5px;
  }
  .sticky-nav-btn {
    border-radius: 8px;
    padding: 8px 2px;
  }
  .sticky-nav-btn span.dist {
    font-size: 0.9rem;
  }
  .sticky-nav-btn span.label {
    font-size: 0.55rem;
    margin-top: 1px;
  }
  .athlete-row {
    padding: 10px 12px;
    gap: 10px;
  }
  .athlete-name {
    font-size: 0.9rem;
  }
  .category-subheader {
    font-size: 1.1rem;
    margin: 30px 0 12px 0;
  }
  .race-header h2 {
    font-size: 1.8rem;
  }
}
