/* me.lagrue.ca — loaded only by the "me" layout. iOS look, light only, with blue/violet accents: grouped background,
   system font, large title, segmented control, rounded cards. */

:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --label: #14142b;
  --secondary: rgba(40, 40, 80, 0.55);
  --separator: rgba(60, 60, 110, 0.14);
  --fill: rgba(100, 100, 170, 0.1);
  --segment: #ffffff;
  --blue: #3b6cff;
  --violet: #8b5cf6;
  --gradient: linear-gradient(135deg, var(--blue), var(--violet));
  --accent: var(--violet);
  --shadow: 0 12px 32px -12px rgba(91, 80, 220, 0.35), 0 2px 6px rgba(20, 20, 60, 0.06);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(50rem 28rem at -20% 10%, rgba(59, 108, 255, 0.14), transparent 60%),
    var(--bg);
  color: var(--label);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  max-width: 34rem;
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

/* ---------- title ---------- */

.large-title { margin: 1.5rem 0 0.25rem; font-size: 2.125rem; font-weight: 700; letter-spacing: -0.02em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0 0 1.25rem; color: var(--secondary); font-size: 0.95rem; }
.subtitle::first-letter { text-transform: uppercase; }

/* ---------- segmented control ---------- */

.segments {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill);
}

.segments a {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  color: var(--label);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.segments a[aria-current="page"] {
  background: var(--segment);
  font-weight: 600;
  color: var(--violet);
  box-shadow: 0 4px 12px -2px rgba(91, 80, 220, 0.25), 0 1px 2px rgba(20, 20, 60, 0.06);
}

/* ---------- cards and lists ---------- */

.card { padding: 1.1rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }

.section-title {
  margin: 1.5rem 1rem 0.4rem;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Square tile with the show's slot, in place of artwork. */
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9px;
  background: var(--gradient);
  box-shadow: 0 6px 14px -6px rgba(91, 80, 220, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.tile-large { width: 4.5rem; height: 4.5rem; border-radius: 14px; font-size: 1.35rem; }

/* ---------- player ---------- */

.now { display: flex; align-items: center; gap: 1rem; }
.now-show { margin: 0; color: var(--secondary); font-size: 0.85rem; }
.now-title { margin: 0.1rem 0 0; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }

.progress { margin-top: 1.25rem; }
.progress input {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  appearance: none;
  background: var(--gradient) 0 / var(--played, 0%) 100% no-repeat, var(--fill);
}
.progress input::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20, 20, 60, 0.3); }
.progress input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20, 20, 60, 0.3); }
.times { display: flex; justify-content: space-between; margin-top: 0.35rem; color: var(--secondary); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; justify-content: center; gap: 2.25rem; margin-top: 0.75rem; }
.controls button { border: 0; background: none; color: var(--label); cursor: pointer; padding: 0.25rem; }
.controls svg { display: block; }
.skip { position: relative; }
.skip span { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font-size: 0.6rem; font-weight: 700; }
.controls .play { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -8px rgba(91, 80, 220, 0.7); }
.play svg { width: 1.9rem; height: 1.9rem; }
.play .icon-play { margin-left: 3px; }
.play .icon-pause, .is-playing .play .icon-play { display: none; }
.is-playing .play .icon-pause { display: block; }

.empty { color: var(--secondary); text-align: center; padding: 2rem 1rem; }
.empty strong { display: block; color: var(--label); font-size: 1.05rem; margin-bottom: 0.25rem; }


.button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 0;
  border-radius: 14px;
  background: var(--gradient);
  box-shadow: 0 10px 22px -10px rgba(91, 80, 220, 0.7);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.button-plain { background: none; box-shadow: none; color: var(--accent); font-weight: 400; margin-top: 2rem; }

.alert { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--card); color: var(--accent); font-size: 0.95rem; }

/* ---------- stock ---------- */

.list { margin: 0; padding: 0; list-style: none; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.list li + li { border-top: 0.5px solid var(--separator); }

.quote { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
.quote-text, .quote-figures { display: flex; flex-direction: column; }
.quote-text { flex: 1; min-width: 0; }
.quote-figures { align-items: flex-end; font-variant-numeric: tabular-nums; }
.quote-name { font-weight: 600; }
.quote-date { color: var(--secondary); font-size: 0.85rem; }
.quote-price { font-weight: 600; }
.quote-change { margin-top: 0.15rem; padding: 0.05rem 0.4rem; border-radius: 6px; color: #fff; font-size: 0.8rem; font-weight: 600; }
.quote-change.is-up { background: #34c759; }
.quote-change.is-down { background: #ff3b30; }
.tile-dark { width: 3rem; font-size: 0.7rem; }

/* ---------- sign in: its own layout, nothing but the form ---------- */

body.sign-in { display: grid; place-items: center; background: #fff; }

.sign-in-form { display: grid; gap: 0.75rem; width: min(20rem, 100% - 3rem); }
.sign-in-form input {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--separator);
  border-radius: 0;
  outline: 0;
  background: none;
  color: var(--label);
  font: inherit;
}
.sign-in-form input:focus { border-bottom-color: var(--violet); }
.sign-in-form input::placeholder { color: var(--secondary); }
.sign-in-form input[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.sign-in-alert { margin: 0.5rem 0 0; color: var(--secondary); font-size: 0.9rem; text-align: center; }
