/* ===========================================================
   ExamVibe | MCQ List Page - Premium UI (v2)
   Designed for clarity, focus & interactivity
=========================================================== */

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --success: #22c55e;
  --danger: #ef4444;
  --bg-light: #f8fafc;
  --gradient: linear-gradient(135deg, #007bff, #00b7ff);
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --font: 'Poppins', 'Inter', sans-serif;
  --text: #1f1f1f;
}

/* ===== Global ===== */
body {
  font-family: var(--font);
  background: var(--bg-light);
  margin: 0;
  padding: 0;
  color: var(--text);
}

/* ===== Page Container ===== */
.mcq-container {
  max-width: 950px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.mcq-container::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.08);
}
.mcq-container::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.05);
}

/* ===== Breadcrumb ===== */
/* ===== Improved Breadcrumb (like explain page) ===== */
.breadcrumb {
  font-size: 15px;
  color: #444;
  margin-bottom: 25px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.breadcrumb a::after {
  content: "›";
  color: #999;
  margin: 0 6px;
}

.breadcrumb a:last-of-type::after {
  content: "";
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.breadcrumb span {
  color: #222;
  font-weight: 600;
}


/* ===== Subcategory Info ===== */
.subcategory-info {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}
.subcategory-info h1 {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.subcategory-info p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== MCQ Box ===== */
.mcq-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  position: relative;
}
.mcq-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.mcq-box .question {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
}

/* ===== Options ===== */
.options button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  transition: all 0.25s ease;
}
.options button:hover {
  background: #e8f0fe;
  border-color: var(--primary);
}
.options button.correct {
  background: #dcfce7;
  border-left: 6px solid var(--success);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  animation: correctPop 0.4s ease;
}
.options button.wrong {
  background: #fee2e2;
  border-left: 6px solid var(--danger);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  animation: wrongShake 0.4s ease;
}

/* ===== Animations ===== */
@keyframes correctPop {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ===== View Explanation Button ===== */
.explain-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.explain-btn:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* ===== Pagination ===== */
.pagination {
  text-align: center;
  margin: 25px 0;
}
.pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 3px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}
.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ===== Related Section ===== */
.related-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.related-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.related-box ul {
  list-style: none;
  padding: 0;
}
.related-box li {
  margin: 6px 0;
}
.related-box li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.related-box li a:hover {
  text-decoration: underline;
}

/* ===== Coming Soon ===== */
.coming-soon {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  padding: 40px 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .mcq-container {
    padding: 20px;
    margin: 20px;
  }
  .subcategory-info h1 {
    font-size: 22px;
  }
  .options button {
    font-size: 14px;
    padding: 10px;
  }
  .pagination a {
    padding: 6px 10px;
    font-size: 13px;
  }
  .mcq-box:hover {
    transform: none;
    box-shadow: none;
  }
}
