/* LinkedIn Headline Counter — Tool-specific styles */
.page { padding: 40px 20px; max-width: 800px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.card label {
  display: block; font-size: 13px; color: #aaa;
  margin: 0 0 8px; font-weight: 500;
}
#headline-input {
  width: 100%; padding: 14px;
  background: #0d0d0d; color: #eee;
  border: 1px solid #2a2a2a; border-radius: 8px;
  font-size: 15px;
}
#headline-input:focus { border-color: #ff4444; outline: none; }

.counter-bar {
  height: 6px; background: #1a1a1a; border-radius: 3px;
  overflow: hidden; margin-top: 10px;
}
.counter-fill {
  height: 100%; background: #4caf50; transition: width 0.15s, background 0.15s;
}
.counter-fill.near { background: #ff9800; }
.counter-fill.over { background: #ff6666; }
.counter-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.char-count { color: #aaa; font-family: 'SF Mono', monospace; }
.remaining { color: #888; }
.remaining.warn { color: #ff9800; }
.remaining.err { color: #ff6666; }

.preview-card { margin-top: 18px; }
.preview-label { font-size: 12px; color: #888; margin-bottom: 10px; }

/* Profile preview (mimics LinkedIn profile header) */
.profile-preview {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: #fff; color: #000;
  border-radius: 8px; border: 1px solid #2a2a2a;
}
.prof-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: #0a66c2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; flex-shrink: 0;
}
.prof-meta { min-width: 0; flex: 1; }
.prof-name { font-weight: 700; font-size: 20px; color: #000; }
.prof-headline {
  font-size: 14px; color: #444;
  margin-top: 2px;
  white-space: pre-wrap; word-break: break-word;
}
.prof-location { font-size: 13px; color: #666; margin-top: 6px; }

/* Search result preview */
.search-preview {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: #fff; color: #000;
  border-radius: 8px; border: 1px solid #2a2a2a;
}
.search-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #0a66c2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.search-meta { flex: 1; min-width: 0; }
.search-name { font-weight: 600; font-size: 15px; color: #0a66c2; }
.search-degree { color: #888; font-weight: 400; font-size: 12px; }
.search-headline {
  font-size: 13px; color: #333; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-location { font-size: 12px; color: #666; margin-top: 2px; }
.search-connect {
  background: #fff; color: #0a66c2;
  border: 1px solid #0a66c2; border-radius: 999px;
  padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: 13px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
  .profile-preview, .search-preview { flex-wrap: wrap; }
  .search-connect { margin-top: 8px; }
}
