/* Tour of Bright Teams UI - Main Stylesheet */

/* Base Styles */
:root {
  --tob-navy: #002147;
  --tob-yellow: #FFD700;
  --tob-light-gray: #f4f4f4;
  --tob-dark-gray: #333;
  --tob-white: #ffffff;
  --tob-error: #d32f2f;
  --tob-success: #388e3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--tob-dark-gray);
  background-color: var(--tob-light-gray);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--tob-navy);
  color: var(--tob-white);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 15px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--tob-white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--tob-yellow);
}

/* Main Content */
main {
  padding: 40px 0;
}

.page-title {
  color: var(--tob-navy);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

.card {
  background-color: var(--tob-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--tob-navy);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

.radio-group {
  margin: 10px 0;
}

.radio-group label {
  display: inline;
  margin-right: 15px;
  font-weight: normal;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 6px;
}

.checkbox-group label {
  font-weight: normal;
}

.error-message {
  color: var(--tob-error);
  font-size: 14px;
  margin-top: 5px;
}

.success-message {
  color: var(--tob-success);
  font-size: 14px;
  margin-top: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--tob-navy);
  color: var(--tob-white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: #001a38;
}

.btn-yellow {
  background-color: var(--tob-yellow);
  color: var(--tob-navy);
}

.btn-yellow:hover {
  background-color: #e6c200;
}

.btn-commit {
  background-color: #388e3c;
  color: var(--tob-white);
}

.btn-commit:hover {
  background-color: #2e7d32;
}

.btn-kit {
  background-color: #0277bd;
  color: var(--tob-white);
}

.btn-kit:hover {
  background-color: #01579b;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Team Cards */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-card {
  background-color: var(--tob-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s;
}

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

.team-card h3 {
  color: var(--tob-navy);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--tob-yellow);
  padding-bottom: 8px;
}

.team-card .riders {
  margin-top: 15px;
}

.team-card .rider {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.team-card .rider:last-child {
  border-bottom: none;
}

/* Grade Section */
.grade-section {
  margin-bottom: 40px;
}

.grade-section h2 {
  color: var(--tob-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--tob-yellow);
}

/* Sponsor Strip */
.sponsor-strip {
  background-color: var(--tob-navy);
  color: var(--tob-white);
  padding: 15px 0;
  text-align: center;
  margin: 40px 0;
}

.sponsor-strip a {
  color: var(--tob-yellow);
  text-decoration: none;
  font-weight: 600;
}

.sponsor-strip a:hover {
  text-decoration: underline;
}

/* Team Dashboard */
.team-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.roster-slot {
  background-color: var(--tob-light-gray);
  border-radius: 6px;
  padding: 15px;
  position: relative;
  border: 2px dashed #ddd;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.roster-slot.filled {
  background-color: var(--tob-white);
  border: 2px solid var(--tob-navy);
}

.slot-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: var(--tob-navy);
  color: var(--tob-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.roster-slot.filled .slot-number {
  background-color: var(--tob-yellow);
  color: var(--tob-navy);
}

.slot-role {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 5px;
}

.roster-slot.filled .slot-role {
  color: var(--tob-navy);
  font-weight: 600;
}

.slot-content {
  font-size: 1rem;
  color: #999;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.roster-slot.filled .slot-content {
  color: var(--tob-dark-gray);
  font-weight: 500;
}

#team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

#team-status {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
  border-left: 4px solid var(--tob-navy);
}

.warning {
  color: #d32f2f;
  font-weight: 500;
}

/* Team Code Display */
.team-code {
  background-color: var(--tob-navy);
  color: var(--tob-yellow);
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 4px;
  display: inline-block;
  margin: 10px 0;
  letter-spacing: 1px;
}

.join-link-section {
  margin-top: 20px;
}

.join-link {
  width: 100%;
  padding: 10px;
  font-family: monospace;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.sponsor-logo {
  height: 30px;
  vertical-align: middle;
  margin-left: 10px;
}

/* Footer */
footer {
  background-color: var(--tob-navy);
  color: var(--tob-white);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--tob-white);
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--tob-yellow);
}

.footer-copyright {
  font-size: 14px;
  margin-top: 20px;
}

.powered-by {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .team-cards {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    margin-bottom: 10px;
  }
}
