/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 8.5: CONTENT ECOSYSTEM VISUALIZATION — Shree Studio
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ─── Section Base + Scoped Variables ─── */
.ecosystem-section {
  --eco-gold: #c9a96e;
  --eco-gold-light: #e8d5a3;
  --eco-red: #e50914;
  --eco-blue: #0a66c2;
  --eco-yt: #ff0000;
  --eco-glass-bg: rgba(255, 255, 255, 0.03);
  --eco-glass-border: rgba(255, 255, 255, 0.07);
  --eco-transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  width: 100%;
  padding: 120px 0 100px;
  background: #000;
  overflow: hidden;
}

/* ─── Dot Grid Background ─── */
.ecosystem-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* ─── Glow Blobs ─── */
.ecosystem-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.ecosystem-bg-glow--left {
  top: 10%;
  left: -150px;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.07) 0%,
    transparent 70%
  );
}
.ecosystem-bg-glow--right {
  bottom: 10%;
  right: -150px;
  background: radial-gradient(
    circle,
    rgba(229, 9, 20, 0.05) 0%,
    transparent 70%
  );
}

/* ─── Container ─── */
.ecosystem-container {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* ─── Header ─── */
.ecosystem-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


.ecosystem-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.ecosystem-title-accent {
  background: linear-gradient(135deg, var(--eco-gold), var(--eco-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ecosystem-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 540px;
}

/* ─── Pipeline ─── */
.ecosystem-pipeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ─── Node Card ─── */
.eco-node {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--eco-glass-bg);
  border: 1px solid var(--eco-glass-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    transform 0.4s ease;
  cursor: default;
}

.eco-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateY(-3px);
}

/* Source node (Podcast) */
.eco-node--source {
  border-color: rgba(201, 169, 110, 0.2);
  background: rgba(201, 169, 110, 0.04);
}

/* Result node (Brand Authority) */
.eco-node--result {
  border-color: rgba(201, 169, 110, 0.35);
  background: rgba(201, 169, 110, 0.06);
}

/* Subtle top-left glow that spills from icon */
.eco-node-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  top: -30px;
  left: -30px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.eco-node-glow--red {
  background: radial-gradient(
    circle,
    rgba(229, 9, 20, 0.12) 0%,
    transparent 70%
  );
}
.eco-node-glow--blue {
  background: radial-gradient(
    circle,
    rgba(10, 102, 194, 0.14) 0%,
    transparent 70%
  );
}
.eco-node-glow--yt {
  background: radial-gradient(
    circle,
    rgba(255, 0, 0, 0.12) 0%,
    transparent 70%
  );
}
.eco-node-glow--gold {
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.18) 0%,
    transparent 70%
  );
}

/* Animated ring on source and result */
.eco-node-ring {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  background-clip: padding-box;
  pointer-events: none;
}

/* ─── Icon Wrap ─── */
.eco-node-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.3s ease;
}
.eco-node:hover .eco-node-icon-wrap {
  transform: scale(1.08);
}

.eco-node-icon-wrap--red {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.25);
  color: #ff4d58;
}
.eco-node-icon-wrap--blue {
  background: rgba(10, 102, 194, 0.14);
  border-color: rgba(10, 102, 194, 0.3);
  color: #4a9fd4;
}
.eco-node-icon-wrap--yt {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.25);
  color: #ff4444;
}
.eco-node-icon-wrap--gold {
  background: rgba(201, 169, 110, 0.15);
  border-color: rgba(201, 169, 110, 0.35);
  color: var(--eco-gold);
}

/* ─── Node Body ─── */
.eco-node-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eco-node-tag {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.eco-node-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.eco-node-desc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin-top: 2px;
}

/* ─── Badge ─── */
.eco-node-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.eco-node-badge--gold {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.35);
  color: var(--eco-gold);
  font-size: 14px;
}

/* ─── Output Icons ─── */
.eco-node-output {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.eco-node-output i {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease;
}
.eco-node:hover .eco-node-output i {
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Arrow Connector ─── */
.eco-arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  z-index: 2;
}

.eco-arrow-line {
  position: relative;
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.eco-arrow-line--gold {
  background: rgba(201, 169, 110, 0.2);
}

/* Animated pulse travelling down the line */
.eco-arrow-pulse {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: eco-pulse-flow 2s ease-in-out infinite;
}

.eco-arrow-pulse--gold {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--eco-gold),
    transparent
  );
  animation: eco-pulse-flow 1.6s ease-in-out infinite;
}

@keyframes eco-pulse-flow {
  0% {
    top: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.eco-arrow-head {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  animation: eco-bounce 1.8s ease-in-out infinite;
}
.eco-arrow-head--gold {
  color: var(--eco-gold);
}

@keyframes eco-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.eco-arrow-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 2px;
}
.eco-arrow-label--gold {
  color: rgba(201, 169, 110, 0.55);
}

/* ─── Stats Strip ─── */
.ecosystem-stats {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  background: rgba(201, 169, 110, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.eco-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.eco-stat-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--eco-gold);
  line-height: 1;
}

.eco-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.eco-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Scroll Reveal Animations ─── */
.ecosystem-section [data-eco-animate] {
  opacity: 0;
  transition:
    opacity var(--eco-transition),
    transform var(--eco-transition);
  will-change: opacity, transform;
}
.ecosystem-section [data-eco-animate].eco-is-visible {
  opacity: 1;
  transform: none !important;
}
.ecosystem-section [data-eco-animate="fade-up"] {
  transform: translateY(40px);
}
.ecosystem-section [data-eco-animate="scale-in"] {
  transform: scale(0.94) translateY(20px);
}
.ecosystem-section [data-eco-animate="fade-in"] {
  transform: none;
}

.ecosystem-section [data-eco-delay="100"] {
  transition-delay: 0.1s;
}
.ecosystem-section [data-eco-delay="200"] {
  transition-delay: 0.2s;
}
.ecosystem-section [data-eco-delay="250"] {
  transition-delay: 0.25s;
}
.ecosystem-section [data-eco-delay="300"] {
  transition-delay: 0.3s;
}
.ecosystem-section [data-eco-delay="400"] {
  transition-delay: 0.4s;
}
.ecosystem-section [data-eco-delay="500"] {
  transition-delay: 0.5s;
}
.ecosystem-section [data-eco-delay="600"] {
  transition-delay: 0.6s;
}
.ecosystem-section [data-eco-delay="700"] {
  transition-delay: 0.7s;
}
.ecosystem-section [data-eco-delay="800"] {
  transition-delay: 0.8s;
}
.ecosystem-section [data-eco-delay="900"] {
  transition-delay: 0.9s;
}
.ecosystem-section [data-eco-delay="1000"] {
  transition-delay: 1s;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .ecosystem-section {
    padding: 80px 0 70px;
  }
  .eco-node {
    padding: 18px 16px;
    gap: 14px;
  }
  .eco-node-icon-wrap {
    width: 46px;
    height: 46px;
    font-size: 18px;
    border-radius: 12px;
  }
  .eco-node-title {
    font-size: 17px;
  }
  .eco-node-desc {
    display: none;
  }
  .eco-node-badge {
    display: none;
  }
  .eco-node-output {
    display: none;
  }
  .ecosystem-stats {
    padding: 20px 16px;
    gap: 0;
  }
  .eco-stat-number {
    font-size: 22px;
  }
  .eco-stat-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
}
