/* F1 Tyre Selection Interface Styles */
.f1-ts-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 20px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: auto;
}

.f1-ts-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ff1e1e;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(255, 30, 30, 0.3);
}

.f1-ts-tyre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.f1-ts-tyre-card {
  background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
  border-radius: 12px;
  padding: 20px;
  border: 3px solid;
  position: relative;
  overflow: hidden;
}

/* Make fitted tyres have underglow only */
.f1-ts-tyre-card.f1-ts-fitted-card {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Count badge for grouped tyres */
.f1-ts-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 30, 30, 0.9);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Tyre Compound Colors */
.f1-ts-compound-soft {
  border-color: #ff1e1e;
}

.f1-ts-compound-medium {
  border-color: #ffd700;
}

.f1-ts-compound-hard {
  border-color: #ffffff;
}

.f1-ts-compound-inters {
  border-color: #00ff00;
}

.f1-ts-compound-wet {
  border-color: #0066ff;
}

.f1-ts-tyre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.f1-ts-compound-name {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.f1-ts-compound-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.f1-ts-badge-soft {
  background-color: #ff1e1e;
  color: white;
}

.f1-ts-badge-medium {
  background-color: #ffd700;
  color: black;
}

.f1-ts-badge-hard {
  background-color: #ffffff;
  color: black;
}

.f1-ts-badge-inters {
  background-color: #00ff00;
  color: black;
}

.f1-ts-badge-wet {
  background-color: #0066ff;
  color: white;
}

.f1-ts-status-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.f1-ts-status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.f1-ts-available {
  background-color: #28a745;
  color: white;
}

.f1-ts-unavailable {
  background-color: #dc3545;
  color: white;
}

.f1-ts-fitted {
  background-color: #ff6b35;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.f1-ts-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.f1-ts-info-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}

.f1-ts-info-label {
  font-size: 0.7rem;
  color: #ccc;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.f1-ts-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.f1-ts-delta-time-good {
  color: #10e71b;
  font-weight: 700;
}

.f1-ts-delta-time-bad {
  color: #ffd700;
  font-weight: 700;
}

.f1-ts-summary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.f1-ts-summary-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.f1-ts-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.f1-ts-summary-item {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

@media (max-width: 768px) {
  .f1-ts-tyre-grid {
    grid-template-columns: 1fr;
  }

  .f1-ts-title {
    font-size: 1.5rem;
  }

  .f1-ts-info-grid {
    grid-template-columns: 1fr;
  }
}

.f1-ts-not-available {
  opacity: 0.6;
  filter: grayscale(30%);
}

.f1-ts-tyre-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

.f1-ts-tyre-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
}
