/* ============================================================
   CATALOG PAGE — page-specific styles
   ============================================================ */

.cat-page {
  background: var(--navy-deep);
  color: #fff;
}

/* Always-stuck nav on catalog page */
.cat-page .nav {
  background: rgba(8,22,39,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav__active {
  color: var(--orange) !important;
  position: relative;
}
.nav__active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── Page hero ─────────────────────────────────── */
.cat-hero {
  position: relative;
  padding: 130px 0 70px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 0%, #16365C 0%, #0B1E36 50%, #06121F 100%);
}
.cat-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
}
.cat-hero .hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.cat-hero__glow {
  position: absolute;
  top: -200px; right: -150px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(242,144,80,.22);
  filter: blur(120px);
}

.cat-hero__inner {
  position: relative; z-index: 2;
  max-width: 760px;
}
.cat-crumb {
  display: inline-flex; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 22px;
  transition: color .2s;
}
.cat-crumb:hover { color: var(--orange); }

.cat-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  margin-bottom: 18px;
}
.cat-hero .lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin: 0;
}

/* ── Main content area ─────────────────────────── */
.cat-main {
  padding: 70px 0 100px;
}

/* ── Molecule grid ─────────────────────────────── */
.cat-page .mol-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cat-page .mol-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 2px solid var(--accent, #F29050);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s cubic-bezier(.2,.7,.2,1),
              background .2s;
}
.cat-page .mol-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.07);
  box-shadow: 0 24px 60px rgba(0,0,0,.5),
              0 0 0 1px var(--accent, #F29050) inset;
}

.cat-page .mol-viewer {
  width: 100%;
  height: 260px;
  background: radial-gradient(ellipse at 50% 60%,
    rgba(255,255,255,.05) 0%,
    rgba(0,0,0,.35) 100%);
  cursor: grab;
  position: relative;
}
.cat-page .mol-viewer::after {
  content: '↻ drag to rotate';
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.28);
  pointer-events: none;
  transition: opacity .3s;
}
.cat-page .mol-card:hover .mol-viewer::after { opacity: 0; }
.cat-page .mol-viewer:active { cursor: grabbing; }

.cat-page .mol-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-page .mol-info__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cat-page .mol-formula {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--accent, #F29050);
  letter-spacing: -.01em;
}
.cat-page .mol-grade {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
  padding: 5px 11px;
  border-radius: 999px;
}
.cat-page .mol-info h3 {
  font-size: 21px;
  color: #fff;
  margin-bottom: 8px;
}
.cat-page .mol-info p {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

/* Molecule property tags */
.mol-tags {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mol-tags li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}

/* ── Bottom CTA ────────────────────────────────── */
.cat-cta {
  text-align: center;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cat-cta p {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  margin: 0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 720px) {
  .cat-hero { padding: 100px 0 50px; }
  .cat-page .mol-viewer { height: 210px; }
  .cat-page .mol-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
}

@media (max-width: 480px) {
  .cat-page .mol-grid { grid-template-columns: 1fr; }
}
