/* lazy-hands.css — LazyHands voice notes module styles */

.lh-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.lh-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lh-header__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.lh-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fa-primary);
  margin: 0 0 0.5rem;
}

.lh-header__subtitle {
  color: var(--fa-text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ── Dictation Panel ──────────────────────────────────────────────────────── */

.lh-dictation {
  background: var(--fa-bg);
  border: 1px solid var(--fa-primary-20);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(40, 54, 85, 0.06);
}

.lh-dictation--active {
  border-color: var(--fa-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.lh-mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  background: var(--fa-primary);
  color: #fff;
}

.lh-mic-btn:active { transform: scale(0.98); }

.lh-mic-btn--active {
  background: var(--fa-error);
  animation: lh-pulse 1.5s ease-in-out infinite;
}

@keyframes lh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.lh-mic-btn:hover:not(.lh-mic-btn--active) { background: var(--fa-primary-hover); }

.lh-mic-icon { font-size: 1.4rem; }

.lh-transcript-area {
  margin-top: 1rem;
  min-height: 80px;
  padding: 0.75rem 1rem;
  background: var(--fa-bg-alt);
  border: 1.5px solid var(--fa-primary-10);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fa-text-primary);
  white-space: pre-wrap;
}

.lh-transcript-area--empty {
  color: var(--fa-text-muted);
  font-style: italic;
}

.lh-dictation-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

.lh-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lh-btn--save {
  background: var(--fa-accent);
  color: #fff;
}

.lh-btn--save:hover { background: var(--fa-accent-hover); }

.lh-btn--discard {
  background: transparent;
  border: 1.5px solid var(--fa-primary-20);
  color: var(--fa-text-secondary);
}

.lh-btn--discard:hover {
  border-color: var(--fa-error);
  color: var(--fa-error);
}

.lh-no-speech {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--fa-warning-bg);
  border-radius: 6px;
  font-size: 0.83rem;
  color: #92400e;
}

/* ── Notes list ──────────────────────────────────────────────────────────── */

.lh-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lh-notes-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fa-primary);
  margin: 0;
}

.lh-notes-count {
  font-size: 0.83rem;
  color: var(--fa-text-muted);
}

.lh-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lh-note {
  background: var(--fa-bg);
  border: 1px solid var(--fa-primary-10);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.lh-note__text {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--fa-text-primary);
  margin: 0 0 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.lh-note__text--editing {
  width: 100%;
  border: 1.5px solid var(--fa-primary);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  min-height: 80px;
  font-family: inherit;
}

.lh-note__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lh-note__date {
  font-size: 0.75rem;
  color: var(--fa-text-muted);
}

.lh-note__actions {
  display: flex;
  gap: 0.35rem;
}

.lh-note__action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--fa-text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.lh-note__action:hover { background: var(--fa-primary-surface); color: var(--fa-primary); }

.lh-note__action--delete:hover { background: var(--fa-error-bg); color: var(--fa-error); }

.lh-note__action--save-edit { color: var(--fa-success); }

/* ── Empty / states ──────────────────────────────────────────────────────── */

.lh-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--fa-text-muted);
}

.lh-empty__icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .lh-page { padding: 1rem 0.75rem 3rem; }
  .lh-header__title { font-size: 1.4rem; }
}
