/**
 * CertifID Asset Library Hub — Styles
 * Design system tokens shared with LANDING-PAGE-TEMPLATE/styles.css
 */

/* ═══════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  /* Brand base — override these to re-theme */
  --brand-h: 216;
  --brand-s: 79%;
  --brand-l: 48%;

  /* Semantic colors (derived from brand hue) */
  --c-heading:      hsl(var(--brand-h), 28%, 16%);
  --c-dark-bg:      hsl(var(--brand-h), 50%, 18%);
  --c-text:         hsl(var(--brand-h), 5%, 10%);
  --c-muted:        hsl(var(--brand-h), 7%, 46%);
  --c-border-light: hsl(var(--brand-h), 10%, 91%);
  --c-bg:           hsl(var(--brand-h), 12%, 97%);
  --c-surface:      #ffffff;

  /* Brand accent */
  --brand-color:       hsl(var(--brand-h), var(--brand-s), max(var(--brand-l), 42%));
  --brand-color-hover: hsl(var(--brand-h), var(--brand-s), max(calc(var(--brand-l) - 6%), 36%));
  --brand-color-soft:  hsl(var(--brand-h), 50%, 96%);

  /* Typography */
  --font-h: 'Thicccboi', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Motion & layout */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 24px;
}


/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}


/* ═══════════════════════════════════════════════════════
   REVEAL ON SCROLL
   ═══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(6px);
  transition:
    opacity  0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter   0.7s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ═══════════════════════════════════════════════════════
   LAYOUT — shared container width
   ═══════════════════════════════════════════════════════ */
.hub-hero-inner,
.hub-main,
.hub-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hub-hero {
  background: hsl(var(--brand-h), 40%, 96%);
  border-bottom: 1px solid hsl(var(--brand-h), 20%, 90%);
}

.hub-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.hub-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.hub-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
}
.hub-powered i { font-size: 15px; }

.hub-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0 44px;
}

.hub-hero-text {
  flex: 1;
  min-width: 0;
}

.hub-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-heading);
  margin-bottom: 8px;
}

.hub-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 440px;
}


/* ── Search ── */
.hub-search {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.hub-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--c-muted);
  pointer-events: none;
}

.hub-search input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid var(--c-border-light);
  border-radius: 9999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hub-search input::placeholder {
  color: hsl(var(--brand-h), 7%, 66%);
}

.hub-search input:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px hsl(var(--brand-h), var(--brand-s), 92%);
}


/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
.hub-main {
  padding-top: 60px;
  padding-bottom: 48px;
}


/* ── Section labels ── */
.section-label {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 13px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label i {
  font-size: 16px;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition:
    transform    0.25s var(--ease-out),
    box-shadow   0.25s var(--ease-out),
    border-color 0.25s;
}
/* Merge reveal + hover transitions when card is also a reveal target */
.card[data-reveal] {
  transition:
    opacity      0.7s var(--ease-out),
    transform    0.7s var(--ease-out),
    filter       0.7s var(--ease-out),
    box-shadow   0.25s var(--ease-out),
    border-color 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-color);
}
.card:hover .card-title  { color: var(--brand-color); }
.card:hover .card-arrow i { transform: translateX(3px); }

/* Placeholder image area */
.card-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  background: linear-gradient(
    135deg,
    hsl(var(--brand-h), 8%, 90%) 0%,
    hsl(var(--brand-h), 8%, 85%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-img > i {
  font-size: 28px;
  color: hsl(var(--brand-h), 10%, 76%);
}

/* Card with featured image */
.card-img--photo {
  background: none;
  padding: 0;
  overflow: hidden;
}
.card-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon badge (featured cards only) */
.card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card-badge i {
  font-size: 18px;
  color: var(--brand-color);
}

/* Card body */
.card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-heading);
  margin-bottom: 5px;
  transition: color 0.2s;
}

.card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
  flex: 1;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-color);
}
.card-arrow i {
  font-size: 16px;
  transition: transform 0.15s;
}


/* ═══════════════════════════════════════════════════════
   GRID — 2 featured + 4 compact
   ═══════════════════════════════════════════════════════ */
.row-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.row-top .card-img {
  aspect-ratio: 7 / 4;
}

.row-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.hub-footer {
  margin-top: 80px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
}

.hub-footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hub-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-footer-logo {
  height: 20px;
  width: auto;
}

.hub-footer-right {
  font-size: 12px;
  color: var(--c-muted);
}

.hub-footer a {
  color: var(--c-muted);
  text-decoration: none;
}
.hub-footer a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hub-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 0 36px;
  }

  .hub-search { width: 100%; }
  .hub-title  { font-size: 26px; }
  .hub-sub    { font-size: 14px; }

  .row-top {
    grid-template-columns: 1fr;
  }
  .row-top .card-img {
    aspect-ratio: 7 / 4;
  }

  .row-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hub-hero-header { padding: 16px 0; }
  .hub-logo  { height: 24px; }
  .hub-title { font-size: 22px; }
  .hub-sub   { font-size: 13px; }

  .hub-search input {
    padding: 11px 14px 11px 42px;
    font-size: 13px;
  }
  .hub-search-icon {
    left: 14px;
    font-size: 16px;
  }

  .hub-powered { display: none; }

  .hub-main {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .row-top { margin-bottom: 32px; }

  .row-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 14px 16px 16px;
  }
  .card-title { font-size: 14px; }
  .card-desc  { font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════
   EMAIL CARD THUMBNAILS — CSS-generated (no bitmap)
   Light stage + floating white page (Option 05, padding B),
   with the real letter fading into white at the bottom.
   ═══════════════════════════════════════════════════════ */
.card-img--email {
  overflow: hidden;
  background:
    radial-gradient(125% 85% at 28% -12%, hsl(216, 44%, 97%), transparent 55%),
    linear-gradient(158deg, hsl(216, 32%, 94%) 0%, hsl(216, 24%, 86%) 100%);
}
.email-thumb {
  position: absolute;
  left: 14%; right: 14%; top: 30px; bottom: -14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 21px 23px 0;
  text-align: left;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.17), 0 2px 7px rgba(15, 23, 42, 0.06);
}
.et-ebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-color); margin-bottom: 8px;
}
.et-ebrow i { font-size: 12px; letter-spacing: 0; }
.et-subj {
  font-family: var(--font-h); font-weight: 700; font-size: 16.5px; line-height: 1.22;
  color: var(--c-heading); letter-spacing: -0.01em;
}
.et-body { margin-top: 10px; font-size: 10px; line-height: 1.55; color: hsl(216, 14%, 30%); }
.et-body p { margin: 0 0 7px; }
.et-body b { font-weight: 700; color: var(--c-heading); }
.et-body ul { margin: 0 0 7px; padding-left: 0; list-style: none; }
.et-body li { position: relative; padding-left: 12px; margin-bottom: 4px; }
.et-body li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--brand-color);
}
.et-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 82%);
}
