/* =====================================================================
   exam-card.css — spacing-only tightening of the existing exam card.
   Look & feel (colours, badge, stacked details, price box, button style)
   is unchanged; only padding / margins / gaps are reduced, and the card
   now behaves the same on exams, combo-exams and dashboard pages.
   Load AFTER exams.css. Selectors use "body .exams-grid" to out-rank the
   older per-page rules without !important.
   ===================================================================== */

/* grid: slightly tighter gaps */
body .exams-grid { gap: .85rem; margin-bottom: .5rem; align-items: stretch; }

/* card: equal height, button pinned to the bottom, no stray margins */
body .exams-grid .exam-card { display: flex; flex-direction: column; margin: 0; min-width: 0; max-width: none; }
body .exams-grid .exam-content { flex: 1 1 auto; padding: .9rem 1rem .5rem; }      /* was 1.25rem */

/* badge: a little less vertical room; "Purchased"/"Completed" pill is the same size on every page */
body .exams-grid .status-badge { margin: 8px 0; }                                   /* was 10px */
/* ONE size for every badge (Free / Purchased / Completed / In Progress / Not Started).
   Colours carry fallbacks because --success-* is not defined in main.css. */
body .exams-grid .status-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .1rem .4rem; border-radius: 6px;
  font-size: .6rem; font-weight: 600; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
body .exams-grid .status-badge i { font-size: .62rem; }
body .exams-grid .status-free      { background: var(--success-100, #dcfce7); color: var(--success-700, #15803d); border: 1px solid var(--success-200, #bbf7d0); }
body .exams-grid .status-purchased { background: var(--primary-100, #dbeafe); color: var(--primary-700, #1d4ed8); border: 1px solid var(--primary-200, #bfdbfe); padding: .1rem .4rem; }
body .exams-grid .status-locked    { background: var(--warning-100, #fef3c7); color: var(--warning-700, #b45309); border: 1px solid var(--warning-200, #fde68a); }

/* title block */
body .exams-grid .exam-header  { margin: 10px 0 .6rem; }                            /* was 14px / 1rem */
body .exams-grid .exam-title   { font-size: 1.05rem; margin-bottom: .25rem; }       /* was 1.125rem / .375rem */
body .exams-grid .exam-status + .exam-content .exam-header { padding-right: 4.5rem; } /* title never runs under the badge */

/* details list */
body .exams-grid .exam-details { gap: .3rem; margin-bottom: .6rem; }                /* was .5rem / 1rem */

/* price box */
body .exams-grid .exam-price   { margin-bottom: .6rem; padding: .5rem .75rem; }     /* was 1rem / .75rem */
body .exams-grid .price-wrapper{ margin-bottom: 2px; }
body .exams-grid .price-fee,
body .exams-grid .price-free   { font-size: 1.2rem; }                               /* was 1.35rem */
body .exams-grid .price-purchased { font-size: 1rem; }                              /* was 1.1rem */

/* score box */
body .exams-grid .score-display { padding: .5rem .7rem; margin-bottom: .4rem; }

/* info notes: "Starts at" / "Solution releases on" */
body .exams-grid .exam-note { margin: 0 0 .4rem; padding: .4rem .6rem; font-size: .78rem; line-height: 1.35;
  text-align: center; background: var(--bg-secondary, #f6f8fb); border: 1px solid var(--border-light, #e5e7eb); border-radius: var(--radius-lg, 10px); }

/* button area */
body .exams-grid .exam-actions { margin-top: auto; padding: 0 1rem 1rem; }          /* was 0 1.25rem 1.25rem */
body .exams-grid .exam-actions .btn { padding: .6rem 1.1rem; }                      /* was .75rem 1.5rem */
body .exams-grid .exam-actions .exam-note { margin-bottom: 0; }

@media (max-width: 576px) {
  body .exams-grid .exam-card    { margin: 0; }
  body .exams-grid .exam-content { padding: .8rem .9rem .45rem; }
  body .exams-grid .exam-actions { padding: 0 .9rem .9rem; }
}