/* Game Setup Helper Styles */

.game-setup-helper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.game-setup-helper h1 {
  margin-bottom: 15px;
}

.game-setup-helper > p {
  margin-bottom: 30px;
  color: #666;
}

/* No JavaScript warning */
.noJavascript {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Input Section */
.input-section {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.input-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Game Parameters Grid */
.game-parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  flex: inherit !important;
  margin-bottom: 0 !important;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group small {
  color: #666;
  display: block;
  margin-top: 5px;
}

/* Calculate Button */
#calculateBtn {
  width: 100%;
  padding: 15px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

#calculateBtn:hover {
  background: #0052a3;
}

/* Results Section */
#results {
  display: none;
}

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

.results-section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

#gameDescription {
  margin-bottom: 20px;
  font-weight: 500;
}

.results-divider {
  border-top: 2px solid #eee;
  padding-top: 20px;
}

.results-section h3 {
  color: #333;
  margin-bottom: 15px;
}

.results-section h3 i {
  margin-right: 8px;
}

/* Stats Grid - Responsive */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
}

/* Individual stat colors */
#totalIslands {
  color: #0066cc;
}
#homeIslands {
  color: #28a745;
}
#wildIslands {
  color: #dc3545;
}
#totalCoins {
  color: #ffc107;
}
#totalTreasure {
  color: #ff9800;
}
#avgCoinsPerIsland {
  color: #17a2b8;
}

/* Coin Distribution */
#coinDistribution {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
}

.coin-distribution-table {
  width: 100%;
  border-collapse: collapse;
}

.coin-distribution-table thead tr {
  background: #dee2e6;
}

.coin-distribution-table th,
.coin-distribution-table td {
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
}

.coin-distribution-table th:first-child,
.coin-distribution-table td:first-child {
  text-align: left;
}

.coin-distribution-table th:last-child,
.coin-distribution-table td:last-child {
  text-align: right;
}

.coin-distribution-table td:first-child {
  font-weight: 600;
}

.coin-distribution-table td:last-child {
  font-size: 18px;
  color: #0066cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .game-setup-helper {
    padding: 15px;
    margin: 20px auto;
  }

  .input-section,
  .results-section {
    padding: 20px;
  }

  .game-parameters-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card .stat-value {
    font-size: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
