/* Codex AI Capability Calculator Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1e1e1e;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #2563eb;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

header h1 { font-size: 1.25rem; font-weight: 600; }

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a:hover, nav a[aria-current] { background: rgba(255,255,255,0.1); }

main { flex: 1; max-width: 800px; width: 100%; padding: 2rem; margin: 0 auto; }

section { margin-bottom: 2rem; }

section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: #1e1e1e; }

section h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #2d3748; }

.intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid #2563eb;
}

.intro p { margin-bottom: 1rem; }

.field-group { margin-bottom: 1.25rem; }

.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.field-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.field-group select:hover { border-color: #2563eb; }

#calculate-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#calculate-btn:hover { background: #1d4ed8; }

#calculate-btn:active { transform: scale(0.98); }

#calculate-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.results { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.score-card {
  display: flex;
  flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem;
  background: #f0f9ff; border-radius: 8px;
  margin-bottom: 1.5rem;
}

.score-value { font-size: 3rem; font-weight: 700; color: #2563eb; margin-bottom: 0.5rem; }

.score-label { font-size: 1rem; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }

.score-description { font-size: 0.875rem; color: #64748b; margin-top: 0.5rem; }

.recommendations, .complexity { margin: 1.5rem 0; }

.recommendations ul { list-style: none; padding-left: 0; }

.recommendations li { padding: 0.75rem 1rem; background: #f8fafc; border-radius: 6px; margin-bottom: 0.5rem; border-left: 3px solid #2563eb; }

.recommendations li:first-child { border-left-color: #10b981; }

.recommendations li:nth-child(2) { border-left-color: #8b5cf6; }

.recommendations li:nth-child(3) { border-left-color: #f59e0b; }

.complexity-meter {
  display: flex; height: 24px; border-radius: 12px; overflow: hidden;
  background: #e2e8f0; margin-bottom: 0.75rem;
  max-width: 300px;
}

.complexity-meter div { height: 100%; width: var(--complexity-percent, 50%); }

.actions { display: flex; gap: 0.75rem; margin: 1.5rem 0; flex-wrap: wrap; }

.actions button { flex: 1; min-width: 120px; padding: 0.75rem 1rem; border: 1px solid #cbd5e1; border-radius: 6px; background: white; cursor: pointer; transition: all 0.2s; }

.actions button:hover { background: #f1f5f9; border-color: #94a3b8; }

.actions button.primary { background: #2563eb; color: white; border-color: #2563eb; }

.actions button.primary:hover { background: #1d4ed8; }

.presets { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

#presets-list { margin-top: 1rem; }

.preset-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: #f8fafc; border-radius: 6px; margin-bottom: 0.5rem; }

.preset-item button { background: none; border: none; color: #64748b; cursor: pointer; font-size: 0.875rem; }

.preset-item button:hover { color: #ef4444; }

#clear-presets { margin-top: 1rem; background: none; border: 1px solid #cbd5e1; color: #64748b; }

footer { background: #f1f5f9; padding: 1.5rem 2rem; margin-top: auto; }

footer p { font-size: 0.875rem; color: #64748b; }

footer a { color: #2563eb; text-decoration: none; }

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

@media (max-width: 600px) {
  header { flex-direction: column; text-align: center; }
  main { padding: 1rem; }
  .score-value { font-size: 2.5rem; }
  .actions button { flex: none; }
}



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