/*
  Research page styles.
  Rebuilt to match the glassmorphism design system (applications/DESIGN.md):
  canvas #1a1a1a, purple gradient, glass surfaces with hairline borders +
  backdrop blur, Dela Gothic One / Space Grotesk type. Hero and section
  headings reuse home.css's hm-* classes directly; only page-specific
  bits (badge, sample-image gallery, download steps) live here.
*/

.research-main {
  padding: 2rem;
  color: #fff;
  background-color: #1a1a1a; /* colors.canvas */
}

.research-main h2 {
  font-family: "Dela Gothic One", cursive;
  font-weight: 400;
  font-size: 2.5rem; /* display-sm */
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.research-section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero photo is a wide grid of head thumbnails (800x637); show it in
   full instead of home.css's default 16/9 cover crop, which would cut
   off rows. Compound selector so it wins over home.css regardless of
   stylesheet order. */
.hm-hero-split-media.research-hero-media {
  aspect-ratio: 800 / 637;
}

.hm-hero-split-media.research-hero-media img {
  object-fit: contain;
}

/* Badge (matches the glass badge treatment used on other product pages) */
.research-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2); /* hairline-strong */
  border-radius: 9999px; /* rounded.pill */
  backdrop-filter: blur(5px); /* glass-blur */
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  color: #888888; /* ink-tertiary */
  margin-bottom: 1.25rem;
}

/* Sample Images */
.research-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px; /* spacing.lg */
}

@media (min-width: 600px) {
  .research-gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* fixed 2 rows of 3 */
  }
}

.research-gallery-card {
  aspect-ratio: 4 / 3;
  background-color: rgba(255, 255, 255, 0.05); /* surface-glass */
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  border-radius: 12px; /* rounded.md */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* card-shadow */
  overflow: hidden;
  transition: all 0.3s ease;
}

.research-gallery-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* card-shadow-hover */
  transform: translateY(-2px); /* hover-lift */
}

.research-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Download Instructions */
.research-steps {
  list-style: none;
  counter-reset: research-step;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.research-steps li {
  list-style: none; /* overrides style.css's global "ol li { list-style: lower-alpha }" */
  counter-increment: research-step;
  position: relative;
  padding: 1.5rem 1.75rem 1.5rem 4.5rem;
  background-color: rgba(255, 255, 255, 0.05); /* surface-glass */
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  border-radius: 8px; /* rounded.sm */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* card-shadow */
}

.research-steps li::before {
  content: counter(research-step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(to right, #6a0dad, #8a2be2); /* gradient-primary */
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.research-steps li p {
  color: #a0a0a0; /* ink-muted */
  margin: 0;
}

.research-steps li a {
  color: #d9c7f0; /* hm-accent lavender */
}

.research-steps-cta {
  text-align: center;
}
