/* Word Counter — Theme: Coral (#F97316) */
:root { --accent: #F97316; --accent-dim: rgba(249,115,22,0.15); --accent-glow: rgba(249,115,22,0.3); }
.accent-text { color: var(--accent); }

.stats-bar { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.stat-item { text-align: center; min-width: 80px; }
.stat-val { display: block; font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 800; color: var(--accent); }
.stat-name { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.text-editor {
  width: 100%; min-height: 300px; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.8;
  padding: var(--space-5); background: var(--bg-secondary); border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg); color: var(--text-primary); resize: vertical; outline: none;
}
.text-editor:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.text-editor::placeholder { color: var(--text-muted); }

.case-buttons { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.btn--sm { font-size: var(--text-xs); padding: var(--space-1) var(--space-3); }

.keyword-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.keyword-list { display: flex; flex-direction: column; gap: var(--space-2); max-height: 300px; overflow-y: auto; }
.keyword-row { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.keyword-word { font-weight: 600; min-width: 100px; }
.keyword-bar { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: var(--radius-full); overflow: hidden; }
.keyword-bar-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width var(--duration-fast); }
.keyword-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); min-width: 60px; text-align: right; }
.placeholder-msg { color: var(--text-muted); font-size: var(--text-sm); font-style: italic; }

.readability-scores { display: flex; flex-direction: column; gap: var(--space-3); }
.readability-item { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.r-label { color: var(--text-secondary); }
.r-value { font-weight: 600; color: var(--accent); font-family: var(--font-mono); }

.char-limits { display: flex; flex-direction: column; gap: var(--space-2); }
.limit-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); padding: var(--space-1) 0; }
.limit-name { color: var(--text-secondary); }
.limit-val { font-family: var(--font-mono); font-size: var(--text-xs); }
.limit-ok { color: #22C55E; }
.limit-over { color: #EF4444; }

@media (max-width: 768px) { .stats-bar { gap: var(--space-3); } .stat-val { font-size: var(--text-xl); } }
