/* =========================
   PRACTICE ARENA PAGE SHELL
   Same treatment as .marketplace-page / .my-quizzes-page: owns its
   own background, padding, radius and shadow instead of depending
   on .dashboard for spacing.
========================= */
.practice-page {
  background: #ffffff;
  border: 1px solid #ececf5;
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 1px 2px rgba(20, 18, 31, 0.04),
    0 16px 40px rgba(76, 29, 149, 0.06);
}

.practice-header {
  margin-bottom: 24px;
}

.practice-eyebrow {
  display: inline-block;
  color: #7c3aed;
  background: #f3effe;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.practice-header h1 {
  margin: 0 0 4px 0;
  font-size: 26px;
  font-weight: 800;
  color: #14121f;
  letter-spacing: -0.01em;
}

.practice-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* =========================
   PRACTICE FORM CARD
========================= */

.practice-card {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: #faf9fd;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #efeef7;
  overflow: hidden;
}

/* Thin accent bar across the top edge — a single brand color
   (purple) rather than a two-color gradient, so it stays on the
   same accent used everywhere else in the app (badges, buttons,
   the eyebrow tag, stat values). */
.practice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #7c3aed;
}

/* Concentric target rings, echoing "Practice Arena" — purely
   decorative, sits behind the card content in the top-right
   corner. Kept purple-only, same rgba token as the bar above. */
.practice-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 22px solid rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 0 22px rgba(124, 58, 237, 0.035);
  pointer-events: none;
}

.practice-card .form-group {
  position: relative;
  margin-bottom: 22px;
}

.practice-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.practice-card select,
.practice-card input[type="number"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2430;
  background: white;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Custom chevron for the subject select, since appearance is
   stripped above. */
.practice-card select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'><path d='M1 1L7 7L13 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.practice-card select:focus,
.practice-card input[type="number"]:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* =========================
   QUESTIONS + TIME — grouped as peers, unit-suffixed
========================= */

.practice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Wraps a single number input so a unit label ("questions", "min")
   can sit inside the field instead of the number floating alone. */
.practice-field-unit {
  position: relative;
}

.practice-field-unit input[type="number"] {
  padding-right: 78px;
}

.practice-field-unit span {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(calc(-50% + 12px));
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}

/* Questions and Time used to be color-coded purple vs. amber —
   dropped so both fields share the single accent color used
   everywhere else on the page. */

/* =========================
   PACE READOUT
========================= */

/* Small live summary line: "≈1.0 min per question". Populate with
   JS — see note below — falls back to just not showing if left
   empty. Uses the same soft-lavender token as .practice-eyebrow /
   the marketplace-eyebrow tag, instead of the old amber card. */
.practice-pace {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 22px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3effe;
  border: 1px solid #ded6fb;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
}

.practice-pace:empty {
  display: none;
}

.practice-pace::before {
  content: "⏱";
  font-size: 14px;
}

/* =========================
   START BUTTON
========================= */

#startPracticeBtn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #7c3aed;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

#startPracticeBtn:hover {
  background: #6d28d9;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32);
}

#startPracticeBtn:active {
  transform: scale(0.98);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 720px) {
  .practice-page {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .practice-card {
    padding: 22px;
  }

  .practice-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 420px) {
  .practice-page {
    padding: 14px;
  }

  .practice-header h1 {
    font-size: 22px;
  }
}
