/* ============================================================
   Credit Audit — style.css
   Come Back and Finish Planner — Ivy Tech IT Challenge 2026
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: #f4f6f9;
  color: #1f2328;
}

a { color: #2563a8; }

/* --- Layout --- */
.site-header {
  background: #003865;
  color: #ffffff;
  padding: 20px 24px;
}

.site-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header .subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 2px;
}

main {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 20px;
}

/* --- Loading State --- */
#loading {
  text-align: center;
  padding: 60px 20px;
  color: #57606a;
  font-size: 1rem;
}

/* --- Summary Banner --- */
#summary-banner {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 32px;
  display: none;
}

#summary-banner h2 {
  font-size: 1.3rem;
  color: #003865;
  margin-bottom: 4px;
}

.banner-program {
  font-size: 0.95rem;
  color: #57606a;
  margin-bottom: 20px;
}

.banner-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #003865;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress Bar */
.progress-wrap {
  margin-top: 4px;
}

.progress-label {
  font-size: 0.85rem;
  color: #57606a;
  margin-bottom: 6px;
}

.progress-track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563a8, #3b82f6);
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 2%;
}

/* --- Section Container --- */
.audit-section {
  margin-bottom: 36px;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.section-applied .section-heading  { background: #d1fae5; color: #065f46; }
.section-unmatched .section-heading { background: #fef3c7; color: #92400e; }
.section-remaining .section-heading { background: #dbeafe; color: #1e40af; }

/* --- Cards --- */
.card {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-top: none;
  padding: 14px 16px;
  transition: box-shadow 0.15s;
}

.card:last-child {
  border-radius: 0 0 8px 8px;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.card-applied  { border-left: 4px solid #10b981; }
.card-unmatched { border-left: 4px solid #f59e0b; }
.card-remaining { border-left: 4px solid #3b82f6; }

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-code    { background: #f0f1f3; color: #444d56; }
.tag-credits { background: #e0f2fe; color: #0369a1; }
.tag-grade   { background: #f0fdf4; color: #166534; }
.tag-year    { background: #faf5ff; color: #6b21a8; }
.tag-area    { background: #f0f1f3; color: #444d56; }

.card-satisfies {
  font-size: 0.85rem;
  color: #065f46;
  margin-top: 4px;
}

.card-note {
  font-size: 0.85rem;
  color: #92400e;
  margin-top: 4px;
}

.category-badge {
  font-size: 0.72rem;
  background: #d1fae5;
  color: #065f46;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* --- Requirement Groups --- */
.req-group {
  margin-bottom: 8px;
}

.req-group-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #57606a;
  padding: 8px 16px 4px;
  background: #f7f8fa;
  border: 1px solid #d0d7de;
  border-top: none;
  border-bottom: none;
  font-weight: 600;
}

.empty-note {
  background: #fff;
  border: 1px solid #d0d7de;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  color: #57606a;
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 16px 20px;
  border-top: 1px solid #d0d7de;
  font-size: 0.8rem;
  color: #57606a;
  text-align: center;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .banner-stats { gap: 20px; }
  .stat-number  { font-size: 1.5rem; }
  main          { padding: 0 12px; }
}
