/* MyKidScore v003 — 2026-07-18 00:00 UTC */
/* v003: added inline comments next to every font-size and text-color
   declaration, noting what each value is/does. No values changed. */
/* ============================================================
   mykidscore.com — shared stylesheet
   Same dark theme as piano-guide.app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:          #0B0E11;              /* base page background — near-black */
  --panel:       #13171B;              /* card/table-header background — dark slate */
  --panel2:      #1A1F25;              /* hover/alt panel background — slightly lighter slate */
  --text:        #E8E6E1;              /* primary text color — off-white */
  --muted:       #9AA3A0;              /* secondary/label text color — muted grey-green */
  --accent:      #7C5CFF;              /* accent text/background color — purple */
  --accent-soft: rgba(124,92,255,0.12); /* accent background, low opacity */
  --accent-mid:  rgba(124,92,255,0.3);  /* accent border, mid opacity */
  --line:        #222A2E;              /* border/divider color — dark grey */
  --success:     #3DDC84;              /* success text/background color — green */
  --danger:      #FF5050;              /* error text/background color — red */
  --warning:     #F5A623;              /* warning text/background color — amber */
  --info:        #06B6D4;              /* info color — cyan */
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html, body {
  background: var(--bg);               /* page background — near-black */
  color: var(--text);                  /* default text color — off-white */
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Layout ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.wrap-sm { max-width: 480px; margin: 0 auto; padding: 64px 24px; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px,5vw,36px); font-weight: 700; margin-bottom: 12px; } /* 26–36px responsive, page title size */
h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }                   /* 20px, section heading size */
h3 { font-size: 16px; font-weight: 700; }                                      /* 16px, card heading size */
.sub  { font-size: 15px; color: var(--muted); max-width: 54ch; margin-bottom: 28px; } /* 15px, muted grey-green — subtitle text */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;  /* 12px, small label size */
  color: var(--accent); margin-bottom: 10px;                          /* accent purple text */
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width:6px; height:6px; background:var(--accent); border-radius:50%; } /* accent purple dot */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; } /* 13px, muted grey-green — breadcrumb text */
.crumb a { color: var(--accent); text-decoration: none; }             /* accent purple link */
.crumb a:hover { text-decoration: underline; }

/* ---- Cards / Panels ---- */
.card {
  background: var(--panel);            /* dark slate panel background */
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.card-sm { padding: 16px 18px; border-radius: 12px; }

/* ---- Forms ---- */
label {
  display: block;
  font-size: 13px; font-weight: 600;   /* 13px, label text size */
  color: var(--text);                  /* off-white label text */
  margin-bottom: 6px; margin-top: 16px;
}
label:first-child { margin-top: 0; }

input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=number], select, textarea {
  width: 100%;
  background: var(--bg);               /* near-black input background */
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);                  /* off-white input text */
  font-size: 14.5px;                   /* 14.5px, input text size */
  font-family: 'Inter', sans-serif;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);  /* accent purple focus border */
}
select option { background: var(--panel); }    /* dark slate dropdown background */
textarea { resize: vertical; min-height: 80px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: none; border-radius: 10px;
  padding: 13px 20px;
  font-size: 14.5px; font-weight: 700; /* 14.5px, button text size */
  font-family: 'Inter', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary  { background: var(--accent); color: #fff; }    /* accent purple bg, white text */
.btn-success  { background: var(--success); color: #000; }   /* green bg, black text */
.btn-danger   { background: var(--danger);  color: #fff; }   /* red bg, white text */
.btn-warning  { background: var(--warning); color: #000; }   /* amber bg, black text */
.btn-ghost    { background: transparent; color: var(--accent); border: 1px solid var(--accent-mid); } /* transparent bg, accent purple text */
.btn-full     { width: 100%; margin-top: 20px; padding: 15px; font-size: 15px; } /* 15px, full-width button text size */

/* ---- Status messages ---- */
.msg { border-radius: 10px; padding: 13px 16px; font-size: 14px; margin-top: 16px; display:none; } /* 14px, message text size */
.msg.show { display: block; }
.msg-ok  { background:rgba(61,220,132,0.1); border:1px solid rgba(61,220,132,0.3); color:var(--success); } /* green text, success message */
.msg-err { background:rgba(255,80,80,0.08); border:1px solid rgba(255,80,80,0.3);  color:var(--danger); }  /* red text, error message */
.msg-warn{ background:rgba(245,166,35,0.1); border:1px solid rgba(245,166,35,0.3); color:var(--warning);} /* amber text, warning message */

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;  /* 11px, badge text size */
  border-radius: 999px;
}
.badge-accent  { background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent-mid); } /* accent purple text */
.badge-success { background:rgba(61,220,132,0.12); color:var(--success); border:1px solid rgba(61,220,132,0.3); } /* green text */
.badge-danger  { background:rgba(255,80,80,0.1);   color:var(--danger);  border:1px solid rgba(255,80,80,0.3); }  /* red text */
.badge-warning { background:rgba(245,166,35,0.1);  color:var(--warning); border:1px solid rgba(245,166,35,0.3); } /* amber text */

/* ---- Tables ---- */
table { width:100%; border-collapse:collapse; font-size:13.5px; } /* 13.5px, table text size */
th, td { border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
th { background:var(--panel); color:var(--accent); font-family:'Space Grotesk',sans-serif; } /* dark slate bg, accent purple text */
tr:hover td { background: var(--panel2); } /* slightly lighter slate on hover */

/* ---- Score display ---- */
.score-board {
  background: var(--panel);            /* dark slate panel background */
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.score-big { font-size: 48px; font-weight: 800; font-family:'Space Grotesk',sans-serif; color:var(--accent); } /* 48px, accent purple — big score number */
.score-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; } /* 12px, muted grey-green — score caption */

/* ---- Divider ---- */
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---- Footer ---- */
.footer {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); text-align: center; /* 13px, muted grey-green — footer text */
}
.footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); } /* off-white footer link */
.footer a:hover { color: var(--accent); border-color: var(--accent); } /* accent purple on hover */

img[alt="MyKidScore"] {
  border: 1px solid rgba(124,92,255,0.5);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.08);
  background: var(--panel);            /* dark slate logo background */
}
