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

/* ===========================
   Base / Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===========================
   Body
   =========================== */
body {
  background-color: #272727;
  color: #E8E8E8;
  font-family: Consolas, Menlo, Monaco, monospace;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-y: scroll;
}

/* ===========================
   Header
   =========================== */
header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

header h1 {
  color: #A7D263;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  margin: 0;
  text-transform: uppercase;
}

/* ===========================
   Main Content Area
   =========================== */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ===========================
   Quiz Form
   =========================== */
#quiz-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ===========================
   Form Field Wrappers
   =========================== */
#quiz-form > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ===========================
   Form Labels
   =========================== */
#quiz-form label {
  color: #A7D263;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================
   Form Inputs (textarea, select, number)
   =========================== */
textarea,
select,
input[type="number"],
input[type="text"] {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #CDDBDB;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

select {
  appearance: none;
  cursor: pointer;
}

option {
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===========================
   Form Input Focus States
   =========================== */
textarea:focus,
select:focus,
input[type="number"]:focus {
  border-color: #A7D263;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 210, 99, 0.18);
}

/* ===========================
   Generate Button
   =========================== */
#generate-btn {
  background-color: #A7D263;
  color: #272727;
  font-family: inherit;
  font-size: 1.0rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease;
}

/* ===========================
   Generate Button Hover
   =========================== */
#generate-btn:hover {
  background-color: #bde278;
}

/* ===========================
   Submit Button
   =========================== */
#submit-btn {
  background-color: #A7D263;
  color: #272727;
  font-family: inherit;
  font-size: 1.0rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease;
  display: block;
  max-width: 300px;
  margin: 0 auto;
}

#submit-btn:hover {
  background-color: #bde278;
}

/* ===========================
   Drain Button
   =========================== */
#drain-btn {
  background-color: #A7D263;
  color: #272727;
  font-family: inherit;
  font-size: 1.0rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: block;
  max-width: 300px;
  margin: 0.75rem auto 0;
}

#drain-btn:hover {
  background-color: #bde278;
}

/* ===========================
   Question Cards
   =========================== */
.question-card {
  background-color: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 10px rgba(167, 210, 99, 0.1);
}

/* ===========================
   Question Card — Question Text
   =========================== */
.question-text-wrapper {
  color: #CDDBDB;
  font-family: Inter, sans-serif;
  font-weight: 550;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* ===========================
   Question Card — Answer Labels
   =========================== */
.question-card label {
  display: block;
  color: #CDDBDB;
  padding: 0.3rem 0.4rem;
  font-family: Inter, sans-serif;
  font-weight: 549;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.15s, background-color 0.15s;
}

.question-card label:hover {
  color: #A7D263;
  background-color: rgba(167, 210, 99, 0.08);
}

/* ===========================
   Question Card — Radio Inputs
   =========================== */
.question-card input[type="radio"] {
  accent-color: #A7D263;
  margin-right: 0.5rem;
  cursor: pointer;
}

/* ===========================
   Question Card — Text Inputs (short answer)
   =========================== */
.question-card input[type="text"] {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #CDDBDB;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-weight: 510;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.question-card input[type="text"]:focus {
  border-color: #A7D263;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 210, 99, 0.18);
}

/* ===========================
   Feedback
   =========================== */
.feedback {
  color: #A7D263;
  font-family: Inter, sans-serif;
  font-weight: 549;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: center;
  transform: translateX(-0.6em);
  font-size: 0.95rem;
  margin-top: 1.0rem;
}

/* ===========================
   Score Summary
   =========================== */
.score-summary-card {
  background-color: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 10px rgba(167, 210, 99, 0.1);
  display: flex;
  justify-content: center;
  transform: translateX(-0.0em);
  font-size: 1.2rem;
  color: #CDDBDB;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-weight: bold;
  font-weight: 1000;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ===========================
   Scores Nav
   =========================== */
.scores-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ===========================
   Nav Buttons
   =========================== */
.nav-btn {
  background-color: transparent;
  border: 1px solid #A7D263;
  color: #A7D263;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 1.0rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  width: 250px;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  background-color: #A7D263;
  color: #272727;
}

/* ===========================
   Nav Button — Active State
   =========================== */
.nav-btn--active {
  background-color: #A7D263;
  color: #272727;
}

.nav-btn--active:hover {
  background-color: #A7D263;
  color: #272727;
}

/* ===========================
   Section Heading
   =========================== */
.section-heading {
  color: #A7D263;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

/* ===========================
   Score Cards
   =========================== */
.score-card {
  background-color: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 10px rgba(167, 210, 99, 0.1);
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.score-card-username {
  font-weight: bold;
  color: #CDDBDB;
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  margin-top: 1.0rem;
}

.score-card-topic {
  font-weight: bold;
  color: #CDDBDB;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 1.0rem;
}

.score-card-date {
  font-size: 0.8rem;
  color: #aaa;
  font-family: Inter, sans-serif;
}

.score-card-difficulty {
  font-family: Inter, sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  color: #CDDBDB;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.card-label {
  color: #A7D263;
  font-family: Inter, sans-serif;
  letter-spacing: 0.05em;
}

.score-card-result {
  color: #CDDBDB;
  font-weight: bold;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
}

/* ===========================
   Juice Bar
   =========================== */
.juice-bar {
  width: 100%;
  background-color: #1a1a1a;
  border-radius: 4px;
  height: 10px;
  margin-top: 0.9rem;
  margin-bottom: 1.2rem;
}

.juice-bar-fill {
  background-color: #A7D263;
  border-radius: 4px;
  height: 100%;
}

/* ===========================
   Score Tier Label
   =========================== */
.score-tier {
  text-transform: uppercase;
  font-weight: bold;
  color: #CDDBDB;
  font-size: 0.82rem;
  font-family: Inter, sans-serif;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ===========================
   No Scores Message
   =========================== */
.no-scores {
  text-align: center;
  color: #aaa;
  font-style: italic;
}
