/* ============================================================
   credentials.css — shared styles for all credential detail pages
   Requires: base.css
   ============================================================ */

/* ----------------------------------------------------------
   Hero load-in animations (fire on page arrival)
   ---------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroScaleX {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 0.5; transform: scaleX(1); }
}

.hero-will-animate { opacity: 0; }

.hero-fade-up {
  animation: heroFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scale-x {
  transform-origin: left center;
  animation: heroScaleX 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ----------------------------------------------------------
   Scroll-triggered reveal (fired by Intersection Observer)
   Spring easing (0.34, 1.56, 0.64, 1) overshoots slightly —
   gives the physical "pop out" feel.
   ---------------------------------------------------------- */
@keyframes popOut {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-hidden {
  opacity: 0;
}

.scroll-visible {
  animation: popOut 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

body {
  min-height: 100vh;
  padding: 40px 20px;
}

.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   Back navigation
   ---------------------------------------------------------- */
.back-nav {
  margin-bottom: 24px;
}

.back-nav a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.back-nav a:hover { opacity: 1; }

/* ----------------------------------------------------------
   Card padding override
   ---------------------------------------------------------- */
.card {
  padding: 52px 48px 48px;
}

/* ----------------------------------------------------------
   Credential hero
   ---------------------------------------------------------- */
.cred-hero {
  text-align: center;
  margin-bottom: 44px;
}

.cred-icon-lg {
  width: 52px;
  height: 52px;
  border: 1px solid #c9a84c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #c9a84c;
  margin: 0 auto 20px;
}

.cred-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: #f0ede6;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.3;
}

.cred-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: #c9a84c;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: #c9a84c;
  margin: 18px auto 0;
  opacity: 0.5;
}

/* ----------------------------------------------------------
   Content grid
   ---------------------------------------------------------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.section {
  border: 1px solid #1e1e2e;
  padding: 24px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #c9a84c, transparent);
  opacity: 0.4;
}

.section-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #f0ede6;
  letter-spacing: 1px;
  line-height: 1.3;
}

.section-text {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.5px;
  line-height: 1.8;
  margin-top: 8px;
}

/* ----------------------------------------------------------
   Course list
   ---------------------------------------------------------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.course-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  align-items: baseline;
}

.course-code {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c9a84c;
  opacity: 0.7;
  white-space: nowrap;
  padding-top: 2px;
}

.course-name {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #a0a0b0;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Tags
   ---------------------------------------------------------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #2a2a3a;
  padding: 4px 10px;
}

.tag.gold {
  color: #c9a84c;
  border-color: #c9a84c44;
}

/* ----------------------------------------------------------
   Stats
   ---------------------------------------------------------- */
.stat-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  color: #c9a84c;
}

.stat-lbl {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
}

/* ----------------------------------------------------------
   Grid helpers
   ---------------------------------------------------------- */
.full-span {
  grid-column: 1 / -1;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  /* Body / wrapper */
  body { padding: 24px 0; }
  .page-wrapper { padding: 0 16px; }

  /* Card */
  .card { padding: 32px 20px; }

  /* Grid: single column */
  .content-grid { grid-template-columns: 1fr; gap: 16px; }
  .full-span { grid-column: 1; }

  /* Hero */
  .cred-hero { margin-bottom: 28px; }
  .cred-icon-lg { width: 40px; height: 40px; font-size: 16px; }
  .cred-title { font-size: 22px; letter-spacing: 2px; }
  .cred-subtitle { font-size: 8px; letter-spacing: 2px; }

  /* Section labels & values */
  .section-label { letter-spacing: 1.5px; }
  .section-value { font-size: 18px; }
  .section-text { font-size: 10px; }

  /* Stats */
  .stat-num { font-size: 24px; }
  .stat-lbl { font-size: 7px; letter-spacing: 1px; }
  .stat-row { gap: 20px; }

  /* Course list */
  .course-code { font-size: 7px; letter-spacing: 1px; }
  .course-name { font-size: 9px; }
  .course-row { column-gap: 12px; }

  /* Tags */
  .tag { font-size: 7px; letter-spacing: 1px; padding: 3px 8px; }

  /* Back nav */
  .back-nav { margin-bottom: 16px; }
}
