/* Anthill Construction Simulator Styles */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a1a1a; background: #ffffff;}
a {color: #2563eb; text-decoration: none;}
a:hover {text-decoration: underline;}
.container {max-width: 1200px; margin: 0 auto; padding: 0 1rem;}
header {background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1rem 0;}
header h1 {font-size: 1.5rem; margin-bottom: 0.5rem;}
nav {display: flex; gap: 1.5rem; flex-wrap: wrap;}
nav a {color: #e0e0e0; font-size: 0.9rem;}
nav a:hover {color: #fff;}
.hero {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem 0; margin-bottom: 2rem;}
.hero h2 {font-size: 2rem; margin-bottom: 1rem;}
.hero p {font-size: 1.1rem; margin-bottom: 1.5rem;}
.presets {display: flex; gap: 0.5rem; flex-wrap: wrap;}
.preset-btn {background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.2s;}
.preset-btn:hover {background: rgba(255,255,255,0.3);}
.preset-btn.active {background: white; color: #667eea;}
.simulation-controls {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem;}
.control-group {display: flex; flex-direction: column; gap: 0.5rem;}
.control-group label {font-weight: 500; font-size: 0.9rem;}
.control-group input[type="range"] {width: 100%;}
.control-group select {padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; background: white;}
.primary-btn {background: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; font-size: 1rem; cursor: pointer; width: 100%; margin-top: 0.5rem;}
.primary-btn:hover {background: #1d4ed8;}
.secondary-btn {background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; width: 100%; margin-top: 0.5rem;}
.secondary-btn:hover {background: #e5e7eb;}
#simulation-results {display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;}
.visualization {background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; min-height: 300px; position: relative;}
.visualization .empty-state {display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;}
.placeholder-svg {width: 200px; height: 150px;}
.analysis-panel {background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem;}
.analysis-panel h3 {font-size: 1rem; margin-bottom: 1rem; color: #1e293b;}
.metric {display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9;}
.metric:last-of-type {border-bottom: none;}
.metric-value {font-size: 1.5rem; font-weight: bold; color: #2563eb;}
.metric-label {color: #64748b; font-size: 0.85rem;}
.export-controls {display: flex; gap: 0.5rem; margin-top: 1rem;}
.icon-btn {background: #e2e8f0; border: none; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover {background: #cbd5e1;}
.educational-content {background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem;}
.educational-content h3 {font-size: 1.25rem; margin-bottom: 1rem; color: #1e293b;}
.educational-content h4 {font-size: 1rem; margin: 1.5rem 0 0.75rem; color: #334155;}
.educational-content p {margin-bottom: 0.75rem;}
.educational-content ul {margin-left: 1.5rem; margin-bottom: 1rem;}
.educational-content li {margin-bottom: 0.5rem;}
.educational-content strong {color: #1e293b;}
.sidebar {position: sticky; top: 2rem; align-self: start; background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; max-width: 300px; height: fit-content;}
.sidebar h4 {font-size: 0.95rem; margin-bottom: 1rem; color: #1e293b;}
.sidebar p {font-size: 0.85rem; margin-bottom: 1rem; color: #555;
}
footer {background: #f1f5f9; padding: 1rem 0; margin-top: 2rem; border-top: 1px solid #e2e8f0;}
footer p {font-size: 0.85rem; color: #64748b;}
@media (max-width: 768px) {
#simulation-results {grid-template-columns: 1fr;}
sidebar {position: static; margin-top: 2rem;}
.hero h2 {font-size: 1.5rem;}
header h1 {font-size: 1.25rem;}
}
@media (max-width: 480px) {
header {text-align: center;}
presets {justify-content: center;}
}


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