/* docs/styles.css — shared by index.html and admin.html */
*, *::before, *::after { box-sizing: border-box; }

body { font-family: system-ui, sans-serif; max-width: 520px; margin: 0 auto; padding: 16px; }
h1 { margin: 0 0 12px 0; }
h2 { margin: 18px 0 10px; }
.page-admin h2 { margin: 0 0 6px 0; }

a { color: #2563eb; word-break: break-all; }
hr { border: none; border-top: 1px solid #e5e7eb; margin: 14px 0; }

.card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; margin-bottom: 16px; }
.muted { color: #6b7280; font-size: 13px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: white;
}
textarea { min-height: 72px; resize: vertical; }

button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }

.btnSmall { width: auto; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.btnGray { background: #334155; }
.btnRed { background: #e11d48; }
.btnBlue { background: #2563eb; }
.btnPurple { background: #7c3aed; }

.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.rowBtns { display: flex; gap: 8px; }
.rowBtns button { flex: 1; font-size: 14px; padding: 10px; }

#installCard { display: none; }

#debugBox {
  white-space: pre-wrap;
  background: #0b1220;
  color: #d1d5db;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
  margin-top: 10px;
}

/* ----- index.html ----- */
#startBtn { background: #22c55e; }
#stopBtn { background: #e11d48; }
.recordBtns button { font-size: 16px; padding: 12px; }
#refreshBtn { background: #2563eb; margin-top: 8px; }

/* ----- shared footer + about page ----- */
.pageFooter { margin: 28px 0 8px; text-align: center; font-size: 13px; }
.pageFooter a, .authAbout a { color: #6b7280; text-decoration: none; }
.pageFooter a:hover, .authAbout a:hover { text-decoration: underline; }
.authAbout { margin: 4px 0 0; font-size: 13px; }

.about h2 { margin: 18px 0 6px; font-size: 18px; }
.about h2:first-child { margin-top: 0; }
.about ul { margin: 0; padding-left: 20px; }
.about li { margin: 4px 0; }
.aboutQuote { font-style: italic; color: #475569; }

.topRow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.topRow .mutedLink { font-size: 13px; color: #6b7280; text-decoration: none; }
.topRow button { width: auto; padding: 6px 10px; border-radius: 10px; background: #334155; color: white; font-size: 13px; }

.episode { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; margin-bottom: 12px; background: #f9fafb; }
.episode.latest { border-color: #22c55e; background: #ecfdf3; }
.episode-title { font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.episode-meta { font-size: 12px; color: #6b7280; margin-bottom: 6px; }

.badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-weight: 700;
}
.badge.latest { background: #22c55e; color: white; }

audio { width: 100%; margin-top: 6px; }

.commentBox { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.commentItem { border: 1px solid #e5e7eb; background: white; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.commentMeta { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.commentBody { font-size: 14px; white-space: pre-wrap; }

.shareCircleRow { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.shareCircleRow input[type="checkbox"] { width: auto; margin: 0; }
.shareCircleRow label { margin: 0; font-weight: 400; }

/* ----- admin.html ----- */
.inviteItem { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; background: #f9fafb; margin-top: 10px; }
.inviteEmail { font-weight: 700; }
.inviteMeta { font-size: 12px; color: #6b7280; margin-top: 4px; }
