/*
 * WebPlus — Growth Line Styles (خط النمو)
 * العنصر الجامع للتجربة: مسار مضيء بتدرج الهوية يرسم نفسه مع التمرير.
 */

.wp-growth-line-wrapper {
  position: fixed;
  inset-block-start: 0;
  inset-block-end: 0;
  inset-inline-end: 28px; /* في RTL: الحافة اليمنى */
  width: 24px;
  height: 100vh;
  pointer-events: none;
  z-index: 950;
  display: flex;
  justify-content: center;
}

[dir="ltr"] .wp-growth-line-wrapper {
  inset-inline-end: auto;
  inset-inline-start: 28px;
}

.wp-growth-line-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* المسار الرئيسي */
.wp-growth-line-path-bg {
  stroke: rgba(56, 189, 248, 0.12);
  stroke-width: 2px;
}

.wp-growth-line-path {
  stroke: url(#growthGrad);
  stroke-width: 2.5px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
  transition: stroke-dashoffset 0.1s linear;
}

/* محطات خط النمو (Stations) */
.wp-growth-station {
  fill: var(--wp-navy-950);
  stroke: rgba(56, 189, 248, 0.3);
  stroke-width: 2px;
  transition: all 0.3s var(--wp-ease);
}

.wp-growth-station.is-active {
  fill: var(--wp-sky);
  stroke: var(--wp-blue);
  filter: drop-shadow(0 0 8px var(--wp-sky));
  r: 5px;
}

/* شارة المحطة النشطة عند الأقسام الرئيسية */
.wp-growth-label {
  font-family: var(--wp-font-arabic);
  font-size: 11px;
  font-weight: 700;
  fill: var(--wp-sky);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s var(--wp-ease);
}

.wp-growth-station.is-active + .wp-growth-label {
  opacity: 1;
  transform: translateX(0);
}

/* على شاشات الموبايل: شريط تقدم نحيف جداً أعلى الصفحة */
@media (max-width: 1024px) {
  .wp-growth-line-wrapper {
    inset-block-start: 0;
    inset-inline: 0;
    width: 100vw;
    height: 3px;
  }
  .wp-growth-line-svg {
    display: none;
  }
  .wp-growth-mobile-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--wp-gradient);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s linear;
  }
}
