/* Sentence Flow Analyzer Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fafafa; }
a { color: #0066cc; text-decoration: none; }a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }

top { background: white; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 100; }
header { background: #fff; border-bottom: 1px solid #e0e0e0; }
.tagline { color: #666; font-size: 1.1rem; margin-top: 0.25rem; }
nav a { margin-left: 1.5rem; font-size: 0.95rem; }

main { padding: 2rem 0; }
section { margin-bottom: 2.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #222; }

.input-section { background: #fff; border-radius: 8px; padding: 1.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
#inputText { width: 100%; padding: 0.75rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; resize: vertical; margin-bottom: 1rem; font-family: inherit; }
#inputText:focus { outline: 2px solid #0066cc; border-color: #0066cc; }
.controls { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.primary-btn { background: #0066cc; color: white; border: none; padding: 0.6rem 1.25rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.primary-btn:hover { background: #0052a3; }
.secondary-btn { background: #f0f0f0; color: #333; border: 1px solid #ccc; padding: 0.6rem 1.25rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.secondary-btn:hover { background: #e0e0e0; }
.presets { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.presets span { font-size: 0.9rem; color: #555; }
.preset-btn { background: #e8f0fe; color: #0066cc; border: 1px solid #b3d4ff; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; cursor: pointer; }
.preset-btn:hover { background: #d2e3ff; }

.results-section { display: none; }
.results-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; padding: 1rem; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); text-align: center; }
.stat-card .value { font-size: 1.8rem; font-weight: bold; color: #0066cc; }
.stat-card .label { font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

.sentence-display { margin-bottom: 1.5rem; }
.sentence-item { padding: 0.75rem; margin-bottom: 0.5rem; border-radius: 4px; border-left: 4px solid #0066cc; background: #fff; }
.sentence-long { border-left-color: #e04444; background: #fff5f5; }
.sentence-repetitive { border-left-color: #ff9800; background: #fff8e6; }
.highlight-long { color: #e04444; font-weight: 500; }
.highlight-bad { color: #cc0000; }
.highlight-good { color: #2e7d32; }

.suggestions-panel { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.suggestions-panel h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #333; }
.suggestion-item { padding: 0.5rem 0; border-bottom: 1px solid #e0e0e0; }
.suggestion-item:last-child { border-bottom: none; }
.action-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }

.examples-section { background: #f5f7fa; padding: 1.75rem; border-radius: 8px; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.example-card { background: white; padding: 1rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.example-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #0066cc; }
.tips-section { background: #fff; padding: 1.75rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tips-list { list-style: none; padding-left: 0; }
.tips-list li { margin-bottom: 1rem; }
.tips-list li strong { color: #0066cc; }

footer { background: #222; color: #ccc; padding: 1.5rem 0; font-size: 0.9rem; }
footer a { color: #999; }

@media (max-width: 600px) {
.tagline { font-size: 1rem; }
.controls { flex-direction: column; }
.presets { flex-wrap: nowrap; overflow-x: auto; }
.stats-grid { grid-template-columns: 1fr 1fr; }
.example-grid { grid-template-columns: 1fr; }
.action-bar { flex-direction: column; }
}
@media (max-width: 400px) {
.container { padding: 0.75rem; }
.input-section { padding: 1.25rem; }
h2 { 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;
}
