/* ---- Reading Practice Page ---- */

.reading-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .reading-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- Passage Panel ---- */
.passage-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

.passage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f8;
}

.passage-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e2f;
}

.passage-source {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.translate-btn {
  padding: 6px 14px;
  border: 1.5px solid #e2e5ee;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.translate-btn:hover { border-color: #4f6ef7; color: #4f6ef7; }
.translate-btn.on { background: #4f6ef7; color: #fff; border-color: #4f6ef7; }

.passage-text {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  line-height: 2;
  color: #2d3436;
  text-align: justify;
}

.passage-text p {
  text-indent: 2em;
  margin-bottom: 14px;
}

.passage-translation {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f9f9f6;
  border-left: 4px solid #8c8615;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  display: none;
}

.passage-translation.show { display: block; }

/* ---- Questions Panel ---- */
.questions-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.question-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1.5px solid #f0f2f8;
  transition: border-color 0.2s;
}

.question-card.correct { border-color: #27ae60; background: #f6fdf9; }
.question-card.wrong { border-color: #e74c3c; background: #fef9f9; }

.question-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #4f6ef7;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 15px;
  font-weight: 600;
  color: #1e1e2f;
  line-height: 1.6;
  margin-bottom: 10px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1.5px solid #e8ecf4;
  border-radius: 8px;
  background: #fafbfd;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}

.option-btn:hover { border-color: #c4cdf8; background: #f5f7ff; }
.option-btn.selected { border-color: #4f6ef7; background: #eef2ff; color: #4f6ef7; font-weight: 600; }
.option-btn.correct-answer { border-color: #27ae60; background: #eafaf1; color: #1b7a3d; }
.option-btn.wrong-answer { border-color: #e74c3c; background: #fdeaea; color: #c0392b; }

.option-btn:disabled { cursor: default; opacity: 0.85; }

.explanation-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fffdf7;
  border: 1px solid #f0e6c0;
  border-radius: 8px;
  font-size: 13px;
  color: #8a7a40;
  line-height: 1.7;
  display: none;
}

.explanation-box.show { display: block; }

/* ---- Submit ---- */
.submit-area {
  text-align: center;
  margin-top: 8px;
}

.submit-reading-btn {
  width: 100%;
  padding: 13px 0;
  background: #4f6ef7;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.submit-reading-btn:hover { background: #3e5de6; }
.submit-reading-btn:disabled { background: #b8c4f8; cursor: not-allowed; }

.score-display {
  text-align: center;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  display: none;
}

.score-display.show { display: block; }
.score-display.great { color: #27ae60; }
.score-display.good { color: #f39c12; }
.score-display.poor { color: #e74c3c; }

/* ---- Reading List Page ---- */
.reading-list {
  max-width: 700px;
  margin: 0 auto;
}

.year-group {
  margin-bottom: 32px;
}

.year-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e2f;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f2f8;
}

.passage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.passage-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1.5px solid #f0f2f8;
  transition: all 0.15s;
}

.passage-card:hover {
  border-color: #4f6ef7;
  box-shadow: 0 4px 16px rgba(79,110,247,0.08);
}

.passage-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7ff;
  color: #4f6ef7;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  flex-shrink: 0;
}

.passage-info {
  flex: 1;
}

.passage-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e2f;
  margin: 0 0 4px;
}

.passage-source {
  font-size: 12px;
  color: #aaa;
}

.passage-count {
  font-size: 12px;
  color: #4f6ef7;
  margin-left: 10px;
}

.passage-arrow {
  font-size: 20px;
  color: #ccc;
  flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .passage-panel {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .passage-title {
    font-size: 16px;
  }

  .passage-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .passage-translation {
    font-size: 13px;
    padding: 12px 14px;
  }

  .question-card {
    padding: 14px 14px;
  }

  .question-text {
    font-size: 14px;
  }

  .option-btn {
    font-size: 14px;
    padding: 12px 12px;
  }

  .passage-card {
    padding: 14px 16px;
  }

  .passage-badge {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }
}
