/* ============================================
   EXPLORE.CSS — scoped to /explore only.
   Reuses existing tokens/classes from medhaiq.css:
   --navy-card, --navy-border, --radius(-lg/-xl), --blue-bright,
   --gold, --emerald, --text-muted, --text-faint, .mh-btn-primary,
   .mh-btn-outline, .mh-form-input, .mh-modal-overlay/.mh-modal,
   .mh-section-title, .mh-section-sub, .mh-eyebrow, .mh-why-hero.
   Only new, Explore-specific rules live here.
   ============================================ */

/* ---- Section scaffolding — mirrors the pattern used by .mh-timeline,
   .mh-pricing etc: each section owns its own padding/background, then
   reuses the shared .mh-section-center/.mh-eyebrow/.mh-section-title/
   .mh-section-sub classes for the heading block. There is no generic
   .mh-section class in medhaiq.css to reuse for this. ---- */
.mh-explore-section { padding: var(--section-pad-y) var(--section-pad-x); }
.mh-explore-section-alt { background: var(--navy-rich); }
.mh-explore-section-inner { max-width: var(--max-w); margin: 0 auto; }

/* ---- Search ---- */
.mh-explore-search-wrap { position: relative; max-width: 560px; margin: 40px auto 0; }
.mh-explore-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); pointer-events: none;
}
.mh-explore-search-wrap .mh-form-input { padding-left: 46px; }
.mh-explore-search-meta { margin-top: 14px; font-size: 13px; color: var(--text-faint); min-height: 18px; text-align: center; }
.mh-explore-trust-line { margin-top: 10px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* ---- What You'll Discover ---- */
.mh-explore-discover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 48px; }
.mh-explore-discover-card { align-items: flex-start; text-align: left; }
.mh-explore-discover-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.mh-explore-discover-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mh-explore-discover-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---- Card grid scaffolding (shared by companies / roles / guides) ---- */
.mh-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }

.mh-explore-card-btn { all: unset; display: block; width: 100%; cursor: pointer; }
.mh-explore-card-btn:focus-visible .mh-explore-card { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

.mh-explore-card {
  background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: var(--radius-lg);
  padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mh-explore-card-btn:hover .mh-explore-card {
  transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(59,130,246,0.15);
}

.mh-explore-card-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--blue-bright); margin-top: auto;
}
.mh-explore-card-link svg { transition: transform 0.2s ease; }
.mh-explore-card-btn:hover .mh-explore-card-link svg { transform: translateX(3px); }

/* Small status pills — separate from .mh-badge (already used for certification
   badges with its own ::before styling), to avoid colliding with that class. */
.mh-explore-pill {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 20px;
}
.mh-explore-pill-gold { background: var(--gold-soft); color: var(--gold); }
.mh-explore-pill-blue { background: var(--blue-glow); color: var(--blue-bright); }

/* ---- Company card ---- */
.mh-explore-company-top { display: flex; align-items: center; justify-content: space-between; }
.mh-explore-company-logo {
  width: 44px; height: 44px; border-radius: 10px; background: var(--white-soft);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: var(--white);
}
.mh-explore-company-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 2px; }
.mh-explore-company-sub { font-size: 13px; color: rgba(255, 255, 255, 0.74); } /* brightened from --text-muted (#94A3B8, ~58% white) to ~74% white for readability, per this round's spec — tags below stay on --text-muted intentionally */
.mh-explore-company-stat { font-size: 12px; color: var(--blue-bright); font-weight: 600; margin-top: 6px; }
.mh-explore-company-stat-placeholder { color: var(--text-faint); font-weight: 500; font-style: italic; }

/* ---- Role card ---- */
.mh-explore-role-category { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mh-explore-role-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.mh-explore-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.mh-explore-chip { font-size: 11px; padding: 4px 9px; border-radius: 20px; background: var(--white-soft); color: var(--text-muted); }

/* ---- Guide card ---- */
.mh-explore-guide-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.mh-explore-guide-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.mh-explore-guide-excerpt { font-size: 14px; color: var(--text-muted); }

/* ---- Empty states ---- */
.mh-explore-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--navy-border);
  border-radius: var(--radius-lg); color: var(--text-faint); font-size: 14px; display: none;
}
.mh-explore-empty.is-visible { display: block; }

/* ---- Sample report + scorecard preview ---- */
.mh-explore-preview-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 860px) { .mh-explore-preview-grid { grid-template-columns: 1fr 1fr; } }

.mh-explore-preview-card {
  background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: var(--radius-xl); padding: 32px;
}
.mh-explore-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mh-explore-preview-head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.mh-explore-btn-sm { padding: 8px 16px; font-size: 13px; }
.mh-explore-preview-intro { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.mh-explore-report-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; filter: blur(4px); user-select: none; }
.mh-explore-report-line { height: 10px; border-radius: 4px; background: var(--white-soft); }
.mh-explore-w-70 { width: 70%; } .mh-explore-w-90 { width: 90%; } .mh-explore-w-50 { width: 50%; } .mh-explore-w-80 { width: 80%; }
.mh-explore-report-block { height: 64px; border-radius: var(--radius); background: var(--white-soft); margin-bottom: 16px; filter: blur(4px); }

.mh-explore-score-overall { text-align: center; margin-bottom: 24px; }
.mh-explore-score-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px;
  background: conic-gradient(var(--blue-bright) 0% 82%, var(--white-soft) 82% 100%);
  display: flex; align-items: center; justify-content: center;
}
.mh-explore-score-ring-inner {
  width: 76px; height: 76px; border-radius: 50%; background: var(--navy-card);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.mh-explore-score-overall-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mh-explore-score-bar-row { margin-bottom: 16px; }
.mh-explore-score-bar-row:last-child { margin-bottom: 0; }
.mh-explore-score-bar-labels { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.mh-explore-score-bar-labels span:first-child { color: var(--text-muted); }
.mh-explore-score-bar-labels span:last-child { font-weight: 700; }
.mh-explore-score-bar-track { height: 6px; border-radius: 4px; background: var(--white-soft); overflow: hidden; }
.mh-explore-score-bar-fill {
  height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-bright), var(--royal-blue));
  width: 0%; transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Bottom CTA ---- */
.mh-explore-cta { text-align: center; padding: var(--section-pad-y) var(--section-pad-x); position: relative; overflow: hidden; }
.mh-explore-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}
.mh-explore-cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.mh-explore-cta-sub { font-size: 15px; color: var(--text-muted); margin-top: -4px; margin-bottom: 8px; }
.mh-explore-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .mh-explore-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTENT SURFACE
   ============================================ */
.mh-explore-light {
  --el-bg: #FAFBFD;
  --el-bg-alt: #F6F8FA;
  --el-card: #FFFFFF;
  --el-text: #1A1F2B;
  --el-muted: #5B6472;
  --el-faint: #8B93A1;
  --el-border: rgba(15, 23, 42, 0.08);
  background: var(--el-bg);
  color: var(--el-text);
}
.mh-explore-light .mh-eyebrow { color: var(--blue-bright); }
.mh-explore-light .mh-section-title { color: var(--el-text); }
.mh-explore-light .mh-section-sub { color: var(--el-muted); }
.mh-explore-light-alt { background: var(--el-bg-alt); }
.mh-colib-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- 4 Primary Navigation Cards ---- */
.mh-explore-begin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 32px; }
.mh-explore-begin-card {
  background: var(--el-card); border: 1px solid var(--el-border); border-radius: var(--radius-lg);
  padding: 24px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.mh-explore-begin-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); border-color: rgba(15,23,42,0.14); }
.mh-explore-begin-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mh-explore-begin-icon-blue { background: rgba(59, 130, 246, 0.12); color: #2563EB; }
.mh-explore-begin-icon-purple { background: rgba(147, 51, 234, 0.12); color: #9333EA; }
.mh-explore-begin-icon-green { background: rgba(5, 150, 105, 0.12); color: #059669; }
.mh-explore-begin-icon-orange { background: rgba(217, 119, 6, 0.12); color: #D97706; }
.mh-explore-begin-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--el-text); margin-bottom: 7px; }
.mh-explore-begin-desc { font-size: 13px; color: var(--el-muted); line-height: 1.5; margin-bottom: 14px; }
.mh-explore-begin-link { margin-top: auto; font-size: 13px; font-weight: 700; color: #2563EB; display: inline-flex; align-items: center; gap: 6px; }
.mh-explore-begin-link svg { transition: transform 0.2s ease; }
.mh-explore-begin-card:hover .mh-explore-begin-link svg { transform: translateX(3px); }

/* ---- Recent Additions ---- */
.mh-explore-recent-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mh-explore-recent-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--el-text); }
.mh-explore-recent-viewall { font-size: 13px; font-weight: 600; color: #2563EB; }
.mh-explore-recent-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-explore-recent-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--el-card); border: 1px solid var(--el-border);
  border-radius: 30px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--el-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mh-explore-recent-pill:hover { border-color: rgba(15,23,42,0.16); box-shadow: 0 4px 14px rgba(15,23,42,0.05); }
.mh-explore-recent-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ---- Why Explore MedhaIQ — restored (per reference image structure:
   icon + title + description, 4 columns), but tightened considerably:
   smaller icons, no card backgrounds/borders/shadows, minimal padding.
   A quiet credibility strip, not a feature showcase. ---- */
.mh-explore-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.mh-explore-why-col { display: flex; flex-direction: column; gap: 4px; }
.mh-explore-why-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.mh-explore-why-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--el-text); }
.mh-explore-why-desc { font-size: 11px; color: var(--el-faint); line-height: 1.45; }

/* ---- Bottom CTA — dark navy card ---- */
.mh-explore-cta-card-dark {
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 34px 38px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.mh-explore-cta-card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, #3B82F6, #7C3AED); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mh-explore-cta-card-dark-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 4px; }
.mh-explore-cta-card-dark-sub { font-size: 13px; color: var(--text-muted); max-width: 440px; line-height: 1.6; }
.mh-explore-cta-card-action { text-align: center; flex-shrink: 0; }
.mh-explore-cta-card-dark-note { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
@media (max-width: 760px) {
  .mh-explore-cta-card-dark { flex-direction: column; text-align: center; }
}

/* ============================================
   HERO
   ============================================ */
.mh-why-hero.mh-explore-hero-split { text-align: left; }
.mh-explore-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; max-width: 1080px; }
.mh-explore-hero-text .mh-section-title,
.mh-explore-hero-text .mh-section-sub { text-align: left; margin-left: 0; }
/* Typography normalization (subpage audit): landing-page hero H1 for
   the Explore family (Explore, FAQ, Company Library, Role Library —
   and Interview Frameworks, which shares this same class) brought
   down from clamp(28,3.6vw,40px) to the approved restrained subpage
   H1 scale, matching Architecture's H1 exactly. margin-bottom (spacing)
   is left unchanged. */
.mh-explore-hero-h1 { font-size: clamp(22px, 4.5vw, 29px); line-height: 1.15; margin-bottom: 16px; }
/* Guide/detail-page hero title — ~15% smaller than the landing-page
   scale above, per this round's two-tier hierarchy: Landing pages get
   the larger .mh-explore-hero-h1; Company/Role/Framework Guide pages
   (one level deeper) get this slightly smaller editorial scale, so
   detail pages never compete visually with the section they belong to. */
.mh-explore-guide-hero-h1 { font-size: clamp(24px, 3.1vw, 34px); line-height: 1.2; margin-bottom: 16px; }
/* Canonical compact hero padding for the Explore ecosystem (Company
   Library, Company Guide, Role Library, Role Guide, Interview
   Frameworks, Framework Guide). Applied ALONGSIDE .mh-why-hero, not by
   editing it — .mh-why-hero is shared with Why MedhaIQ and Architecture,
   which are out of scope for this round and keep their own padding. */
.mh-explore-hero-compact { padding: 68px var(--section-pad-x) 32px; } /* bottom padding -20% (40px -> 32px) this round */
@media (max-width: 640px) {
  .mh-explore-hero-compact { padding: 64px 24px 28px; }
}
.mh-explore-hero-h1-accent {
  background: linear-gradient(90deg, #3B82F6, #9333EA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Search bar in the hero specifically (not the Company Library landing
   page, which reuses .mh-explore-search-wrap at its own default 560px)
   is ~26px shorter so it no longer spans almost the full text column. */
.mh-explore-hero-text .mh-explore-search-wrap { max-width: 534px; }

/* ---- Intelligence illustration — STATIC elliptical rings. This round:
   thinner stroke + slightly higher opacity + much less glow, for a
   technical-blueprint feel rather than neon. All 4 nodes now sit directly
   on ring-2 (the middle "outer visible" ring) as attached orbit nodes,
   not floating past the rings. Nudged 26px left to balance the hero
   against the text column. ---- */
.mh-explore-hero-viz { position: relative; width: 340px; height: 340px; margin: 0 auto; transform: translateX(-26px); }
.mh-explore-hero-viz-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(59, 130, 246, 0.48);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.08);
}
.mh-explore-hero-viz-ring-1 { width: 340px; height: 246px; }
.mh-explore-hero-viz-ring-2 { width: 272px; height: 198px; border-color: rgba(147, 51, 234, 0.42); box-shadow: 0 0 7px rgba(147, 51, 234, 0.07); }
.mh-explore-hero-viz-ring-3 { width: 204px; height: 150px; border-color: rgba(255, 255, 255, 0.26); box-shadow: 0 0 6px rgba(255, 255, 255, 0.05); }

.mh-explore-hero-viz-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--navy-card);
  border: 1px solid var(--navy-border); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 38px rgba(59, 130, 246, 0.42); /* enhanced — keeps the logo the clear focal point now that ring glow is reduced */
  z-index: 3;
}
.mh-explore-hero-viz-logo { width: 38px; height: 38px; object-fit: contain; }

.mh-explore-hero-viz-node-pos { position: absolute; width: 0; height: 0; z-index: 2; }
/* All 4 positioned directly on ring-2's ellipse (272x198 within the 340x340
   viz box: ±40% horizontal, ±29.1% vertical from center) so each icon reads
   as a node attached to that orbit, not floating outside the rings. */
.mh-explore-hero-viz-pos-nw { top: 29%; left: 22%; }
.mh-explore-hero-viz-pos-ne { top: 29%; left: 78%; }
.mh-explore-hero-viz-pos-sw { top: 71%; left: 22%; }
.mh-explore-hero-viz-pos-se { top: 71%; left: 78%; }
.mh-explore-hero-viz-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.25s ease;
  width: 92px;
}
.mh-explore-hero-viz-node:hover { transform: translate(-50%, -50%) scale(1.06); }
.mh-explore-hero-viz-node-icon {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: box-shadow 0.25s ease;
}
.mh-explore-hero-viz-node:hover .mh-explore-hero-viz-node-icon { box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 18px rgba(59,130,246,0.35); }

@media (max-width: 1024px) {
  .mh-explore-hero-grid { grid-template-columns: 1fr; max-width: 100%; }
  .mh-explore-hero-viz { display: none; }
  .mh-why-hero.mh-explore-hero-split { text-align: center; }
  .mh-explore-hero-text .mh-section-title,
  .mh-explore-hero-text .mh-section-sub { text-align: center; }
  .mh-explore-hero-text .mh-explore-search-wrap,
  .mh-explore-hero-text #mh-explore-search-meta,
  .mh-explore-hero-text .mh-explore-trust-line { text-align: center !important; }
}
