/* ==========================================================================
   List Pages (cases.html + insights.html) shared styles
   ========================================================================== */

.page-hero {
  padding: 160px 0 60px;
  background: var(--fu-bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(179,157,219,0.35), transparent 70%);
  filter: blur(60px);
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--fu-text-muted);
  margin-bottom: 24px;
}
.page-hero .breadcrumb a { color: var(--fu-purple-deep); font-weight: 500; }
.page-hero .breadcrumb span.sep { color: var(--fu-text-light); }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-hero p.lede {
  font-size: 1.1rem;
  color: var(--fu-text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* Filter bar */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--fu-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.92);
}
.filter-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}
.filter-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fu-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 8px;
}
.filter-chip {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--fu-border);
  background: transparent;
  color: var(--fu-text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--fu-purple-deep);
  color: var(--fu-purple-deep);
}
.filter-chip.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(106,79,182,0.25);
}
.search-input {
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--fu-border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 220px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b7d' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.35-4.35'/></svg>") no-repeat 14px center / 16px;
  transition: all 0.3s var(--ease);
}
.search-input:focus {
  outline: none;
  border-color: var(--fu-purple-deep);
  box-shadow: 0 0 0 4px rgba(106,79,182,0.08);
  min-width: 280px;
}
.result-count {
  font-size: 0.85rem;
  color: var(--fu-text-muted);
  margin-left: auto;
}
.result-count strong { color: var(--fu-purple-deep); font-weight: 600; }

/* List section */
.list-section {
  padding: 60px 0 100px;
  background: var(--fu-bg);
}
.list-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.list-item-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: var(--fu-text-muted);
}
.list-item-empty h3 { color: var(--fu-text); margin-bottom: 8px; font-size: 1.4rem; }

/* Case card (reuse from index but standalone) */
.case-list-card {
  background: #fff;
  border: 1px solid var(--fu-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.case-list-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}
.case-list-visual {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.case-list-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 40%);
}
.case-list-visual.v1 { background: linear-gradient(135deg, #6a4fb6 0%, #5c6bc0 100%); }
.case-list-visual.v2 { background: linear-gradient(135deg, #5c6bc0 0%, #b39ddb 100%); }
.case-list-visual.v3 { background: linear-gradient(135deg, #4a3488 0%, #6a4fb6 100%); }
.case-list-visual.v4 { background: linear-gradient(135deg, #b39ddb 0%, #6a4fb6 100%); }
.case-list-visual.v5 { background: linear-gradient(135deg, #6a4fb6 0%, #8b6fd9 50%, #b39ddb 100%); }
.case-list-visual.v6 { background: linear-gradient(135deg, #252540 0%, #6a4fb6 100%); }

.case-list-tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fu-purple-deep);
  letter-spacing: 0.05em;
}
.case-list-metric {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  color: #fff;
}
.case-list-metric .metric-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.case-list-metric .metric-label {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 4px;
}
.case-list-body {
  padding: 22px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-list-industry {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fu-purple-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.case-list-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--fu-text);
  font-weight: 700;
}
.case-list-desc {
  font-size: 0.88rem;
  color: var(--fu-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.case-list-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fu-purple-deep);
}
.case-list-link svg { transition: transform 0.3s var(--ease); }
.case-list-card:hover .case-list-link svg { transform: translateX(4px); }

/* Article card */
.article-card {
  background: #fff;
  border: 1px solid var(--fu-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--fu-purple-soft);
  box-shadow: var(--shadow-card-hover);
}
.article-card-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fu-purple-deep);
  background: rgba(106,79,182,0.08);
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  align-self: flex-start;
}
.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--fu-text);
  font-weight: 700;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--fu-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--fu-border);
  font-size: 0.8rem;
  color: var(--fu-text-muted);
}
.article-meta .read {
  color: var(--fu-purple-deep);
  font-weight: 600;
}

/* Detail page */
.detail-hero {
  padding: 60px 0 80px; /* back-strip above already handles nav clearance */
  background: var(--fu-bg);
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(179,157,219,0.3), transparent 70%);
  filter: blur(80px);
}
.detail-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.detail-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(106,79,182,0.1);
  color: var(--fu-purple-deep);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.detail-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--fu-text-muted);
  padding: 20px 0;
  border-top: 1px solid var(--fu-border);
  border-bottom: 1px solid var(--fu-border);
  margin-top: 40px;
}
.detail-meta strong { color: var(--fu-text); font-weight: 600; }

/* Case metrics banner */
.metrics-banner {
  background: var(--fu-dark);
  padding: 60px 0;
  color: #fff;
}
.metrics-banner-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.metric-banner-item {
  text-align: center;
  padding: 20px;
}
.metric-banner-item:not(:last-child) {
  border-right: 1px solid var(--fu-border-dark);
}
.metric-banner-num {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.metric-banner-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Detail content */
.detail-content {
  padding: 80px 0;
  background: #fff;
}
.detail-content-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.detail-section {
  margin-bottom: 56px;
}
.detail-section:last-child { margin-bottom: 0; }
.detail-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fu-purple-deep);
  margin-bottom: 16px;
}
.detail-section-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.detail-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 20px;
  line-height: 1.25;
}
.detail-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fu-text);
  margin-bottom: 20px;
}
.detail-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.detail-services-list span {
  padding: 6px 14px;
  border: 1px solid var(--fu-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--fu-text);
  background: var(--fu-bg);
}

/* Article body */
.article-body {
  padding: 60px 0 100px;
  background: #fff;
}
.article-body-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 48px 0 20px;
  line-height: 1.3;
  position: relative;
  padding-left: 20px;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: var(--grad-primary);
  border-radius: 2px;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fu-text);
  margin-bottom: 20px;
}
.article-body strong { color: var(--fu-purple-deep); font-weight: 600; }
.article-body .article-lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--fu-text-muted);
  padding: 24px 28px;
  background: var(--fu-bg);
  border-left: 4px solid var(--fu-purple-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 40px;
}

/* CTA box inside article/case body */
.article-cta-box {
  padding: 44px 36px;
  background: var(--fu-bg);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 60px;
  border: 1px solid var(--fu-border);
}
.article-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--fu-text);
}
.article-cta-box p {
  margin-bottom: 28px !important;
  color: var(--fu-text-muted);
  font-size: 1rem !important;
}
.article-cta-box .btn { padding: 14px 28px; }

/* Back / share strip — sits below fixed nav */
.back-strip {
  padding: 24px 0;
  padding-top: 104px; /* fixed nav is 88px + 16px breathing room */
  background: var(--fu-bg);
  border-bottom: 1px solid var(--fu-border);
}
@media (max-width: 768px) {
  .back-strip { padding-top: 88px; }
}
.back-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fu-text);
  transition: color 0.3s var(--ease);
}
.back-link:hover { color: var(--fu-purple-deep); }
.back-link svg { transition: transform 0.3s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }

/* Related items */
.related-section {
  padding: 80px 0;
  background: var(--fu-bg);
}
.related-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

/* Responsive */
@media (max-width: 900px) {
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-banner-grid { grid-template-columns: 1fr; gap: 20px; }
  .metric-banner-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--fu-border-dark); padding-bottom: 30px; }
  .filter-bar { position: static; }
}
@media (max-width: 600px) {
  .list-grid { grid-template-columns: 1fr; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .search-input { min-width: 100%; width: 100%; }
  .search-input:focus { min-width: 100%; }
  .result-count { margin-left: 0; }
  .detail-hero { padding: 40px 0 50px; }
}
