/* MCQ Set Browser Page
   --------------------- */

   #mcq-browser {
    padding-top: 3.2rem;
    padding-bottom: 4rem;
  }
  
  .mcq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }
  
  /* Header */
  
  .mcq-header {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.8rem;
    align-items: flex-start;
  }
  
  .mcq-header-main {
    max-width: 640px;
  }
  
  .mcq-tagline {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 600;
  }
  
  .mcq-title {
    margin: 0 0 0.6rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
  }
  
  .mcq-subtitle {
    margin: 0 0 1.05rem;
    font-size: 0.96rem;
    color: var(--text-muted);
  }
  
  /* Level switch */
  
  .mcq-level-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
  }
  
  .mcq-level-label {
    font-size: 0.85rem;
    color: #4b5563;
  }
  
  .mcq-level-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  
  .mcq-level-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #4b5563;
    transition: background var(--transition), color var(--transition),
      border-color var(--transition), transform 0.12s ease;
  }
  
  .mcq-level-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 169, 165, 0.5);
  }
  
  .mcq-level-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 169, 165, 0.4);
  }
  
  /* Stats card */
  
  .mcq-header-aside {
    display: flex;
    justify-content: flex-end;
  }
  
  .mcq-stats-card {
    background: radial-gradient(circle at 0% 0%, #dcfdfa 0, #f7f7fb 40%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: 1.3rem 1.3rem 1.45rem;
    border: 1px solid rgba(224, 227, 239, 0.9);
    box-shadow: var(--shadow-soft);
    max-width: 360px;
  }
  
  .mcq-stats-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
  }
  
  .mcq-stats-text {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    color: var(--text-muted);
  }
  
  .mcq-stats-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }
  
  .mcq-stat {
    flex: 1;
  }
  
  .mcq-stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  .mcq-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .mcq-upgrade-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #4b5563;
  }
  
  .mcq-upgrade-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
  }
  
  .mcq-upgrade-hint a:hover {
    text-decoration: underline;
  }
  
  /* Search */
  
  .mcq-controls {
    margin-top: 0.5rem;
  }
  
  .mcq-search-form {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 0.9rem 1rem 0.8rem;
    box-shadow: 0 12px 28px rgba(15, 35, 52, 0.06);
  }
  
  .mcq-search-inner {
    display: flex;
    gap: 0.7rem;
    align-items: center;
  }
  
  .mcq-search-field {
    flex: 1;
  }
  
  .mcq-search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: box-shadow var(--transition), border-color var(--transition),
      background var(--transition);
    background: #fbfbff;
  }
  
  .mcq-search-input:focus {
    border-color: rgba(0, 169, 165, 0.7);
    box-shadow: 0 0 0 1px rgba(0, 169, 165, 0.2);
    background: #ffffff;
  }
  
  .mcq-search-button {
    white-space: nowrap;
  }
  
  .mcq-search-meta {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .mcq-search-term {
    font-weight: 600;
    color: #111827;
  }
  
  .mcq-search-meta a {
    margin-left: 0.15rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .mcq-search-meta a:hover {
    text-decoration: underline;
  }
  
  /* Result summary */
  
  .mcq-result-summary {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.2rem;
  }
  
  /* Grid & cards */
  
  .mcq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0.8rem;
  }
  
  .mcq-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(224, 227, 239, 0.95);
    box-shadow: 0 12px 30px rgba(15, 35, 52, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform var(--transition), box-shadow var(--transition),
      border-color var(--transition), background var(--transition);
  }
  
  .mcq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 35, 52, 0.12);
    border-color: rgba(0, 169, 165, 0.45);
  }
  
  .mcq-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .mcq-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
  }
  
  .mcq-card-title {
    margin: 0;
    font-size: 1rem;
  }
  
  .mcq-card-slug {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .mcq-card-body {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    flex: 1;
  }
  
  .mcq-card-footer {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.8rem;
  }
  
  .mcq-card-meta {
    color: #6b7280;
  }
  
  /* Pills */
  
  .mcq-pill-level,
  .mcq-pill-type,
  .mcq-pill-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
  }
  
  /* Level color variations */
  .mcq-pill-bcs {
    background: rgba(0, 169, 165, 0.12);
    color: #036564;
  }
  
  .mcq-pill-college {
    background: rgba(92, 108, 255, 0.12);
    color: #2533cc;
  }
  
  .mcq-pill-high_school {
    background: rgba(255, 184, 80, 0.12);
    color: #b87108;
  }
  
  /* Type */
  .mcq-pill-type {
    background: #eef2ff;
    color: #3730a3;
  }
  
  /* Access */
  .mcq-pill-free {
    background: #ecfdf3;
    color: #166534;
  }
  
  .mcq-pill-premium {
    background: #fef3c7;
    color: #92400e;
  }
  
  /* Disabled button note (no detail yet) */
  
  .mcq-card-disabled-btn {
    opacity: 0.8;
    cursor: default;
  }
  
  /* Empty state */
  
  .mcq-empty-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px dashed rgba(156, 163, 175, 0.7);
    text-align: left;
  }
  
  .mcq-empty-state h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
  }
  
  .mcq-empty-state p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  /* Pagination */
  
  .mcq-pagination {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
  }
  
  .mcq-page-ellipsis {
    font-size: 0.9rem;
    color: #6b7280;
  }
  
  /* Responsive */
  
  @media (max-width: 960px) {
    .mcq-header {
      grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    }
  
    .mcq-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .mcq-header {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .mcq-header-aside {
      justify-content: flex-start;
    }
  
    .mcq-stats-card {
      max-width: none;
    }
  
    .mcq-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .mcq-search-inner {
      flex-direction: column;
      align-items: stretch;
    }
  
    .mcq-search-button {
      width: 100%;
      justify-content: center;
    }
  }
  