/* Storm vs Fever Prediction Matrix Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #3a3a5a;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

.main-content {
  padding: 2rem 0;
}

.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6e9ff 100%);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.site-tagline {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.control-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.control-select, .toggle-button {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.control-select {
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 35px;
}

.toggle-button {
  min-width: 100px;
  text-align: center;
  font-weight: 600;
}

toggle-button[aria-pressed="true"] {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.generate-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.generate-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,70,229,0.3); }

.generate-btn:active { transform: translateY(0); }

.results-section {
  margin: 2rem 0;
}

.matrix-display {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  opacity: 0.7;
}

.empty-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.empty-text {
  color: #777;
  font-size: 0.95rem;
}

.export-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.action-btn {
  background: #fff;
  border: 1px solid #cbd5e0;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: #333;
}

.action-btn:hover { background: #f0f4ff; border-color: #93c5fd; }

.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.examples-section, .stats-section, .guide-section {
  margin: 2.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.example-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.example-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #4f46e5;
}

.example-card h3 { color: #1a1a2e; margin-bottom: 0.5rem; font-size: 1.1rem; }

.example-summary { color: #666; font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.4; }

.example-matrix {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 6px;
  display: grid;
  gap: 0.25rem;
}

.matrix-row { display: flex; justify-content: space-between; }

.matrix-label { color: #666; }

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

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6e9ff 100%);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #cbd5e0;
}

.stat-value { font-size: 1.8rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.25rem; }

.stat-label { font-size: 0.85rem; color: #666; font-weight: 500; margin-bottom: 0.5rem; }

.stat-detail { font-size: 0.8rem; color: #777; }

.guide-content {
  display: grid;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.guide-content h3 { color: #1a1a2e; margin: 1rem 0 0.5rem; font-size: 1.1rem; }

.guide-content ul { margin-left: 1.25rem; line-height: 1.6; }

.guide-content li { margin-bottom: 0.5rem; }

.footer-notes {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.last-updated, .assumptions-note {
  color: #777;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.site-footer {
  background: #1a1a2e;
  color: #cbd5e0;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid #3a3a5a;
}

.footer-text { font-size: 0.85rem; }

.footer-text a { color: #93c5fd; text-decoration: none; }

.footer-text a:hover { text-decoration: underline; }

.ad-placeholder { padding: 1rem 0; }

@media (max-width: 600px) {
  .site-header { text-align: center; padding: 0.75rem 0; }
  .site-nav { justify-content: center; }
  .control-panel { flex-direction: column; align-items: stretch; }
  .generate-btn { width: 100%; }
  .export-actions { flex-direction: column; }
  .example-card { padding: 1.25rem; }
  .matrix-display { padding: 1.5rem; border-radius: 8px; min-height: 150px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .site-title { font-size: 1.3rem; }
  .section-title { font-size: 1.3rem; }
}


/* 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;
}
