/* OneWord Voice Recorder — front-end styles
   Tuned to the podcast site: dark ground, cream text, teal "go". */

.owr-app {
	--owr-bg: transparent;
	--owr-text: #e9e4d8;
	--owr-muted: #a9a397;
	--owr-teal: #7fb0aa;
	--owr-teal-dark: #5f938d;
	--owr-purple: #7a5c86;
	--owr-error: #e0857f;
	--owr-line: rgba(233, 228, 216, 0.16);

	max-width: 620px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	color: var(--owr-text);
	text-align: center;
	font-family: inherit;
}

.owr-app *,
.owr-app *::before,
.owr-app *::after { box-sizing: border-box; }

.owr-screen { display: none; animation: owr-fade 0.35s ease; }
.owr-screen.is-active { display: block; }

@keyframes owr-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- go button ---- */
.owr-go {
	width: 128px; height: 128px; border-radius: 50%;
	border: none; cursor: pointer;
	background: var(--owr-teal);
	color: #1c2b2a;
	font-size: 34px; font-weight: 700; letter-spacing: 0.5px;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 0 rgba(127, 176, 170, 0.5);
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.3s ease;
}
.owr-go:hover { background: #8fbdb7; transform: translateY(-2px); }
.owr-go:active { transform: translateY(0); }
.owr-go span { pointer-events: none; }

.owr-hint { color: var(--owr-muted); margin-top: 22px; font-size: 16px; line-height: 1.5; }
.owr-hint strong { color: var(--owr-text); }

/* ---- word ---- */
.owr-word-label { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--owr-muted); margin: 0 0 6px; }
.owr-word {
	font-size: clamp(40px, 9vw, 68px);
	font-weight: 700; margin: 0 0 18px; line-height: 1.05;
	color: var(--owr-text);
	word-break: break-word;
}
.owr-hint-sub {
	max-width: 500px; margin: 12px auto 0;
	font-size: 15px;
}

/* ---- timer + meter ---- */
.owr-timer { font-variant-numeric: tabular-nums; font-size: 30px; margin-bottom: 14px; }
.owr-max { color: var(--owr-muted); font-size: 18px; margin-left: 6px; }
.owr-timer.is-warning #owr-timer { color: var(--owr-error); }

.owr-meter {
	height: 8px; border-radius: 6px; background: var(--owr-line);
	overflow: hidden; margin: 0 auto 26px; max-width: 320px;
}
.owr-meter span {
	display: block; height: 100%; width: 0%;
	background: linear-gradient(90deg, var(--owr-teal), var(--owr-purple));
	transition: width 0.08s linear;
}

.owr-rec-status { margin-top: 20px; color: var(--owr-muted); font-size: 14px; }
.owr-rec-status .owr-dot {
	display: inline-block; width: 10px; height: 10px; border-radius: 50%;
	background: var(--owr-error); margin-right: 7px; vertical-align: middle;
	animation: owr-pulse 1.1s infinite ease-in-out;
}
.owr-rec-status.is-paused .owr-dot { background: var(--owr-muted); animation: none; }
@keyframes owr-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- buttons ---- */
.owr-btn {
	font: inherit; font-size: 16px; font-weight: 600;
	padding: 12px 22px; border-radius: 999px; cursor: pointer;
	border: 1px solid transparent; transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}
.owr-btn:active { transform: translateY(1px); }
.owr-btn-primary { background: var(--owr-teal); color: #1c2b2a; }
.owr-btn-primary:hover { background: #8fbdb7; }
.owr-btn-ghost { background: transparent; color: var(--owr-text); border-color: var(--owr-line); }
.owr-btn-ghost:hover { border-color: var(--owr-teal); color: var(--owr-teal); }
.owr-btn-pause { background: transparent; color: var(--owr-text); border-color: var(--owr-line); }
.owr-btn-pause:hover { border-color: var(--owr-teal); }
.owr-btn-stop { background: var(--owr-teal); color: #1c2b2a; }
.owr-btn-stop:hover { background: #8fbdb7; }
.owr-btn:disabled { opacity: 0.5; cursor: default; }

.owr-rec-controls, .owr-review-controls, .owr-form-controls {
	display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px;
}

/* ---- review ---- */
.owr-playback { width: 100%; max-width: 420px; margin: 8px auto 6px; display: block; }
.owr-length { color: var(--owr-muted); font-size: 14px; margin: 0 0 20px; }

/* ---- form ---- */
.owr-form-title { font-size: 22px; margin: 4px 0 22px; font-weight: 600; }
.owr-field {
	display: block; text-align: left; max-width: 420px; margin: 0 auto 16px;
	color: var(--owr-muted); font-size: 14px;
}
.owr-field input {
	display: block; width: 100%; margin-top: 6px;
	padding: 12px 14px; font-size: 16px;
	background: rgba(255,255,255,0.04); color: var(--owr-text);
	border: 1px solid var(--owr-line); border-radius: 10px;
}
.owr-field input:focus { outline: none; border-color: var(--owr-teal); }

/* ---- progress / spinner / done ---- */
.owr-progress { height: 10px; border-radius: 6px; background: var(--owr-line); overflow: hidden; max-width: 360px; margin: 18px auto 0; }
.owr-progress span { display: block; height: 100%; width: 0%; background: var(--owr-teal); transition: width 0.2s ease; }

.owr-spinner {
	width: 44px; height: 44px; margin: 10px auto 6px; border-radius: 50%;
	border: 4px solid var(--owr-line); border-top-color: var(--owr-teal);
	animation: owr-spin 0.9s linear infinite;
}
@keyframes owr-spin { to { transform: rotate(360deg); } }

.owr-check {
	width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
	background: var(--owr-teal); color: #1c2b2a; font-size: 34px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.owr-done h3 { font-size: 26px; margin: 6px 0 8px; }
.owr-done .owr-btn { margin-top: 18px; }

.owr-error { color: var(--owr-error); font-size: 14px; margin-top: 14px; }
