/* -- Job Title Inflator — tool.css (halftone) ----------- */

body {
  background: transparent;
  color: var(--ht-ink);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.container {
  max-width: 640px;
  margin: 2rem auto 1rem;
  padding: 0 1.25rem;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 1.75rem;
}

header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-transform: uppercase;
  color: var(--ht-ink);
  letter-spacing: 0px;
  line-height: 1;
  margin: 0 0 10px;
}

header p {
  color: var(--ht-ink);
  opacity: 0.65;
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.5;
  margin: 0;
}

/* -- Main panel ------------------------------------------- */
.panel {
  background: rgba(var(--ht-ink-raw),0.04);
  border: 2px solid var(--ht-ink);
  padding: 1.6rem;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 7px;
  background-image: radial-gradient(circle, var(--ht-ink) var(--ht-dot-md), transparent var(--ht-dot-md));
  background-size: var(--ht-cell) var(--ht-cell);
  opacity: 0.5;
}

/* -- Input area ------------------------------------------- */
.input-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ht-accent);
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

#title-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid rgba(var(--ht-ink-raw),0.25);
  background: var(--ht-bg);
  color: var(--ht-ink);
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}

#title-input::placeholder {
  color: rgba(var(--ht-ink-raw),0.35);
  font-style: italic;
}

#title-input:focus {
  border-color: var(--ht-ink);
}

.btn-inflate {
  padding: 14px 22px;
  background: var(--ht-ink);
  color: var(--ht-bg);
  border: 2px solid var(--ht-ink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-inflate:hover {
  background: var(--ht-accent);
  border-color: var(--ht-accent);
}

.btn-inflate:active {
  transform: translateY(1px);
}

/* -- Output section --------------------------------------- */
.output-section {
  margin-top: 1.75rem;
  border-top: 2px solid rgba(var(--ht-ink-raw),0.12);
  padding-top: 1.5rem;
}

.output-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ht-ink);
  opacity: 0.5;
  margin-bottom: 10px;
}

.inflated-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-transform: uppercase;
  color: var(--ht-ink);
  line-height: 1.15;
  letter-spacing: 0px;
  padding: 18px 18px 18px 22px;
  background: rgba(var(--ht-ink-raw),0.05);
  border-left: 4px solid var(--ht-accent);
  margin-bottom: 1.25rem;
  word-break: break-word;
}

/* -- Buzzword-o-Meter ------------------------------------- */
.meter-section {
  margin-bottom: 1.25rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.meter-key {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ht-ink);
  opacity: 0.5;
}

.meter-score-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ht-accent);
}

.meter-bar {
  height: 8px;
  background: rgba(var(--ht-ink-raw),0.1);
  border: 1px solid rgba(var(--ht-ink-raw),0.2);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--ht-accent);
  transition: width 0.5s ease;
  width: 0;
}

.meter-fill.level-1 { background: #5a7a6e; }
.meter-fill.level-2 { background: #8a7a2e; }
.meter-fill.level-3 { background: #c96a1e; }
.meter-fill.level-4 { background: var(--ht-accent); }

/* -- Action row ------------------------------------------- */
.action-row {
  display: flex;
  gap: 10px;
}

.btn-copy-title {
  flex: 1;
  padding: 12px;
  background: var(--ht-ink);
  color: var(--ht-bg);
  border: 2px solid var(--ht-ink);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-copy-title:hover { background: var(--ht-accent); border-color: var(--ht-accent); }
.btn-copy-title.copied { background: #1a8f4e; border-color: #1a8f4e; }

.btn-again {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: var(--ht-ink);
  border: 2px solid var(--ht-ink);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-again:hover { background: var(--ht-ink); color: var(--ht-bg); }

/* -- Hint ------------------------------------------------- */
.panel-hint {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--ht-ink);
  opacity: 0.45;
  text-align: center;
  font-family: var(--font-body);
}

@media (max-width: 500px) {
  .input-row { flex-direction: column; }
  .btn-inflate { width: 100%; }
  .action-row { flex-direction: column; }
}
