.game-details {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 20px;
}

.game-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.game-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.info-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.info-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.bgg-link {
  display: inline-block;
  background-color: #ff5900;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.bgg-link:hover {
  background-color: #e04900;
}

.action-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.back-link {
  color: #007bff;
  text-decoration: none;
  margin-left: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

.rating-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.rating-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.rating-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-select {
  width: 140px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
}

.rating-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.rating-button:hover {
  background-color: #0056b3;
}

.rating-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.current-rating {
  color: #28a745;
  font-weight: bold;
}

.rating-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

.rating-success {
  background-color: #d4edda;
  color: #155724;
}

.rating-error {
  background-color: #f8d7da;
  color: #721c24;
}

.login-prompt {
  color: #666;
  font-style: italic;
}

.extreme-features-section {
  margin-top: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.extreme-features-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.extreme-features-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.extreme-features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.extreme-feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-link {
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.feature-link:hover {
  text-decoration: underline;
}

.feature-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
}

.feature-direction.positive {
  color: #28a745;
  font-weight: bold;
}

.feature-direction.negative {
  color: #dc3545;
  font-weight: bold;
}

.z-score {
  color: #666;
}

.feature-values {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.value-item {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  font-size: 12px;
}

.value-label {
  color: #666;
}

.value {
  font-weight: bold;
  color: #333;
}

.similar-game-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 20px;
}

.similar-game-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.similar-game-card {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  border-left: 4px solid #007bff;
}

.similar-game-name {
  margin-bottom: 10px;
}

.similar-game-link {
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.similar-game-link:hover {
  text-decoration: underline;
}

.similar-game-details {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.similar-game-rating {
  background-color: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.similarity-score {
  background-color: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Game Analysis Section */
.game-analysis-section {
  margin-top: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.analysis-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.analysis-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.radar-chart-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-chart-side #game-radar-chart {
  height: 400px;
  width: 100%;
  max-width: 450px;
}

.radar-chart-side #game-radar-chart canvas {
  cursor: pointer;
}

.similar-games-side {
  display: flex;
  flex-direction: column;
}

.similar-games-side .similar-games-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.similar-games-side .similar-games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.similar-games-side .similar-game-card {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
  font-size: 14px;
}

.similar-games-side .similar-game-rank {
  font-size: 12px;
  color: #666;
  font-weight: bold;
  min-width: 30px;
}

.similar-games-side .similar-game-name {
  flex: 1;
  margin: 0 10px;
}

.similar-games-side .similar-game-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.similar-games-side .similar-game-link:hover {
  text-decoration: underline;
}

.similar-games-side .similar-game-details {
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.similar-games-side .similar-game-rating {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
  .analysis-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .radar-chart-side #game-radar-chart {
    height: 300px;
  }
}
