/* ==========================================================================
   Assessment Page Styles — extends lesson.css
   Covers: assessment hero badge, brief, submission sections,
           self-assessment rubric, result display
   ========================================================================== */

/* Assessment badge — sits inside the standard lesson hero */
.assessment-page .lesson-hero .assessment-badge {
  display: inline-block;
  background: #d17a22;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Assessment brief */
.assessment-brief {
  background: #fff4e6;
  border: 1px solid #f0d78c;
  border-left: 4px solid #d17a22;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.assessment-brief h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  border-top: none;
  padding-top: 0;
  color: #5a3a0d;
}
.assessment-brief ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.assessment-brief li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
  color: #5a3a0d;
}

/* Overview meta grid */
.assessment-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.assessment-overview li {
  background: #f7f9fc;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  margin: 0;
}
.assessment-overview li strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5568;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.assessment-overview li span {
  color: #1a1a2e;
  font-weight: 600;
}

/* Submission sections */
.submission-section {
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.submission-section.complete {
  border-color: #a8d5b8;
  background: #f8fdfa;
}
.submission-section h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  color: #002b5c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.submission-section .section-points {
  display: inline-block;
  font-size: 0.75rem;
  background: #eef4fb;
  color: #00539b;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}
.submission-section .section-prompt {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.55;
}
.submission-section textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem;
  border: 1px solid #b8c4d0;
  border-radius: 6px;
  background: #ffffff;
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}
.submission-section textarea:focus {
  outline: 2px solid #00539b;
  outline-offset: 1px;
  border-color: #00539b;
}
.submission-section .char-count {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.375rem;
  text-align: right;
}
.submission-section.complete .char-count {
  color: #2e8b57;
}

/* Self-assessment rubric */
.rubric {
  background: #f7f9fc;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.rubric h2 {
  margin: 0 0 0.5rem;
  border-top: none;
  padding-top: 0;
  font-size: 1.25rem;
  color: #002b5c;
}
.rubric > p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.rubric-criterion {
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.rubric-criterion h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #002b5c;
}
.rubric-criterion > p {
  font-size: 0.875rem;
  color: #4a5568;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.rubric-options {
  display: grid;
  gap: 0.375rem;
}
.rubric-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e0e4ea;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: all 0.15s ease;
  background: #ffffff;
}
.rubric-options label:hover {
  border-color: #00539b;
  background: #f0f6fc;
}
.rubric-options input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: #00539b;
}
.rubric-options label:has(input:checked) {
  border-color: #00539b;
  background: #eef4fb;
  font-weight: 500;
}

/* Submit bar */
.assessment-submit {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7f9fc;
  border: 1px solid #d6dee8;
  border-radius: 8px;
}
.assessment-submit p {
  font-size: 0.875rem;
  color: #4a5568;
  margin: 0 auto 1rem;
  max-width: 60ch;
  line-height: 1.5;
}
.assessment-submit .btn {
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
}

/* Result panel */
.assessment-result {
  background: #f7f9fc;
  border: 1px solid #d6dee8;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: none;
}
.assessment-result.visible { display: block; }
.assessment-result.passed {
  background: #eaf6ee;
  border-color: #a8d5b8;
}
.assessment-result.not-yet {
  background: #fff4e6;
  border-color: #f0d78c;
}
.assessment-result h2 {
  margin: 0 0 0.5rem;
  border-top: none;
  padding-top: 0;
  font-size: 1.5rem;
}
.assessment-result.passed h2 { color: #1d4a2e; }
.assessment-result.not-yet h2 { color: #5a3a0d; }
.assessment-result .result-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00539b;
  line-height: 1;
  margin: 0.5rem 0;
  text-align: center;
}
.assessment-result.passed .result-score { color: #2e8b57; }
.assessment-result.not-yet .result-score { color: #d17a22; }
.assessment-result .result-label {
  text-align: center;
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
}
.assessment-result .result-message {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
  text-align: center;
  line-height: 1.55;
}
.assessment-result .result-breakdown {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #d6dee8;
  overflow: hidden;
}
.assessment-result .result-breakdown li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e4ea;
  font-size: 0.9375rem;
  margin: 0;
}
.assessment-result .result-breakdown li:last-child { border-bottom: none; }
.assessment-result .bd-label { font-weight: 500; color: #1a1a2e; }
.assessment-result .bd-points {
  font-weight: 700;
  color: #00539b;
  white-space: nowrap;
}
.assessment-result .bd-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: #6b7280;
}
.assessment-result .result-actions {
  text-align: center;
  margin-top: 1rem;
}

/* Quiz-specific tweaks */
.assessment-page .quiz-question {
  background: #ffffff;
}

@media (max-width: 768px) {
  .submission-section { padding: 1rem 1.25rem; }
  .rubric { padding: 1rem 1.25rem; }
  .assessment-result .result-score { font-size: 2rem; }
  .rubric-options label { font-size: 0.875rem; }
}