/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light dark;
  --gap: 1rem;
  --radius: 0.75rem;
  --accent: #3a6ea5;
  --practice-accent: #d1495b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: var(--gap);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1 {
  font-size: 1.5rem;
}

button,
.start-session,
a {
  font-size: 1.1rem;
}

button {
  padding: 0.9em 1.4em;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 3rem;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.session-intro {
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-size: 0.95rem;
}

.practice-link {
  font-weight: 600;
}

.recorder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.playback {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--gap);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: var(--radius);
}

.playback audio {
  width: 100%;
}

ol#recordings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: var(--radius);
}

.recording-label {
  font-weight: 600;
  min-width: 4.5rem;
}

.recording audio {
  flex: 1;
  min-width: 12rem;
}

button.discard-recording {
  background: transparent;
  color: #b3261e;
  border: 1px solid #b3261e;
  padding: 0.5em 1em;
  min-height: 2.5rem;
}

/* Practice view (child-facing) — big, playful, icon-only controls. */

.practice {
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.practice h1 {
  font-size: 2rem;
  color: var(--practice-accent);
}

.practice audio {
  display: none;
}

.practice-position {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.practice-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.practice-done {
  font-size: 1.5rem;
  font-weight: 600;
}

.practice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: var(--practice-accent);
  color: white;
}

.practice-button svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
}

.practice-button.play-button {
  width: 6rem;
  height: 6rem;
  min-height: 6rem;
}

.practice-button.next-button {
  width: 5rem;
  height: 5rem;
  min-height: 5rem;
}
