/* World Cup Injury Impact Assessor - Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #212529;
  background-color: #f8f9fa;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  padding: 24px 0;
  border-bottom: 3px solid #e63946;
}
.site-header h1 { font-size: 2rem; margin-bottom: 8px; }
.site-header .tagline { font-size: 1rem; opacity: 0.9; margin-bottom: 16px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: white; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 0.8; }
.main-content { padding: 32px 0; }
.hero-section { background: white; border-radius: 12px; padding: 32px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hero-section h2 { font-size: 1.75rem; margin-bottom: 12px; color: #1d3557; }
.hero-section p { color: #6c757d; margin-bottom: 24px; }
.controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-group label { font-size: 0.875rem; font-weight: 500; color: #495057; }
.control-group select { padding: 10px 12px; border: 2px solid #e9ecef; border-radius: 6px; background: white; font-size: 1rem; cursor: pointer; }
.control-group select:focus { border-color: #457b9d; outline: none; }
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary { background: #e63946; color: white; }
.btn-primary:hover { background: #d62828; transform: translateY(-1px); }
.btn-secondary { background: #f1faee; color: #1d3557; border: 2px solid #a8dadc; }
.btn-secondary:hover { background: #e9f5db; }
.results-section { background: #f8f9fa; padding: 24px; border-radius: 12px; margin-bottom: 24px; }
.results-section h3 { color: #1d3557; margin-bottom: 20px; font-size: 1.5rem; }
.results-hidden { display: none; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.impact-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.impact-card h4 { color: #457b9d; font-size: 1rem; margin-bottom: 12px; }
.metric { font-size: 1.1rem; margin: 8px 0; }
.metric span { font-weight: 600; color: #1d3557; }
.explanation-box { background: #e9f5db; border-left: 4px solid #2a9d8f; padding: 16px; border-radius: 0 8px 8px 0; margin-bottom: 16px; }
.explanation-box h4 { color: #264653; margin-bottom: 8px; font-size: 1rem; }
.explanation-box p { color: #264653; }
.export-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.comparison-section { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 24px; }
.comparison-section h3 { color: #1d3557; margin-bottom: 20px; font-size: 1.5rem; }
.comparison-table { width: 100%; border-collapse: collapse; overflow-x: auto; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e9ecef; }
.comparison-table th { background: #f8f9fa; font-weight: 600; color: #495057; }
.comparison-table tr:hover { background: #f8f9fa; }
.comparison-table td strong { color: #1d3557; }
.table-note { font-size: 0.875rem; color: #6c757d; margin-top: 12px; font-style: italic; }
.support-section { background: #e8f4f8; border-radius: 12px; padding: 24px; }
.support-section h3 { color: #1d3557; margin-bottom: 16px; font-size: 1.5rem; }
.support-section p { margin-bottom: 12px; color: #2c3e50; }
.support-section ul { margin-left: 24px; margin-bottom: 12px; }
.support-section li { margin-bottom: 8px; }
.ad-reserve { min-height: 120px; background: #e9ecef; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6c757d; font-size: 0.875rem; margin-bottom: 20px; }
.site-footer {
  background: #1d3557;
  color: #a8dadc;
  padding: 20px 0;
  border-top: 3px solid #e63946;
  font-size: 0.875rem;
}
.site-footer a { color: #457b9d; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .site-header h1 { font-size: 1.5rem; }
  .hero-section { padding: 20px; }
  .controls-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; flex-wrap: wrap; }
  .site-nav a { padding: 8px; }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .site-header { padding: 16px 0; }
  .hero-section { padding: 16px; }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 8px 12px; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
