/* =========================================================
   Parsuptime Hero – widget styles (local, no external deps)
   از متغیرهای رنگیِ قالب استفاده می‌کند و fallback دارد
   ========================================================= */
.psh-hero{
  --psh-primary: var(--primary-color, #0D6EFD);
  --psh-primary-rgb: var(--primary-color-rgb, 13,110,253);
  --psh-secondary-rgb: var(--secondary-color-rgb, 57,68,101);
  --psh-border: var(--border-color, #E2EDFE);
  --psh-radius: var(--border-radius, 1.25rem);
  --psh-block-bg: #eaf1ff;

  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:2.5rem;
  align-items:start;
  direction:rtl;
}

/* ---------- ستون متن ---------- */
.psh-text{position:relative}

.psh-halo{
  position:absolute; inset:-18% -12%; z-index:0; pointer-events:none;
  background:radial-gradient(55% 55% at 50% 45%,
    rgba(var(--psh-primary-rgb),.45),
    rgba(var(--psh-primary-rgb),.14) 55%,
    transparent 75%);
  filter:blur(6px);
}

.psh-clouds{position:absolute; inset:0; z-index:0; pointer-events:none}
.psh-clouds .psh-c{position:absolute; display:block}
.psh-clouds .psh-c img{width:100%; height:auto; display:block}
.psh-clouds .psh-c1{top:-6%; right:1%; width:120px}
.psh-clouds .psh-c2{bottom:-4%; left:3%; width:100px; filter:blur(2px)}

.psh-text > .psh-title,
.psh-text > .psh-desc,
.psh-text > .psh-btn-wrap{position:relative; z-index:1}

.psh-title{margin:0; font-weight:900; line-height:1.55; font-size:clamp(22px,3vw,34px); color:var(--secondary-color,#394465)}
.psh-title-1{color:var(--psh-primary); margin-bottom:.35rem}
.psh-title-2{margin-bottom:1.1rem}
.psh-title .psh-line1{display:block; color:inherit}
.psh-desc{font-size:15px; line-height:1.95; margin:0 0 1.6rem; max-width:none}
.psh-desc strong{color:var(--secondary-color,#394465)}

.psh-btn-wrap{margin:0}

/* ---------- ستون بلاک سرور ---------- */
.psh-frame{position:relative; display:flex; align-items:flex-start; justify-content:center}

/* رَپِر بلاک سرور: پین مستقیماً روی همین قفل می‌شود تا همیشه بالای سرور بماند */
.psh-stagewrap{
  position:relative;
  width:84%; aspect-ratio:1 / .96;
  display:flex; align-items:center; justify-content:center;
}

.psh-stage{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
  background:var(--psh-block-bg);
  border-radius:24px;
  clip-path:polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  box-shadow:0 24px 50px rgba(var(--psh-primary-rgb),.10);
}
.psh-stage::after{
  content:""; position:absolute; width:58%; height:58%; border-radius:50%; z-index:0;
  background:radial-gradient(circle, rgba(var(--psh-primary-rgb),.16), transparent 70%);
  filter:blur(8px);
}

/* آیکون سرور: حرکت معکوسِ پرچم (به‌سمت هم) */
.psh-server{position:relative; z-index:3; width:60%; height:auto; display:block; animation:psh-srv 3s ease-in-out infinite}
@keyframes psh-srv{0%,100%{transform:translateY(10px)} 50%{transform:translateY(-8px)}}

/* پرچم پین‌مانند */
.psh-flag{
  position:absolute; z-index:9; top:6px; left:50%;
  width:60px; height:60px; border-radius:50%; background:#fff; padding:4px;
  box-shadow:0 8px 20px rgba(var(--psh-secondary-rgb),.22);
  animation:psh-pin 3s ease-in-out infinite;
}
@keyframes psh-pin{0%,100%{transform:translate(-50%,-8px)} 50%{transform:translate(-50%,10px)}}
.psh-flag img{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block}
.psh-flag .psh-tail{
  position:absolute; bottom:-8px; left:50%; transform:translateX(-50%);
  width:0; height:0; border-left:7px solid transparent; border-right:7px solid transparent;
  border-top:10px solid #fff; filter:drop-shadow(0 4px 3px rgba(var(--psh-secondary-rgb),.12));
}

/* زبانه‌های ویژگی: ستونِ مرتب و هم‌گروه */
.psh-feat{
  position:absolute; z-index:6; left:0; top:50%;
  transform:translate(-26%,-50%);
  display:flex; flex-direction:column; gap:1.1rem; align-items:flex-start;
  animation:psh-feat 4.5s ease-in-out infinite;
}
@keyframes psh-feat{
  0%,100%{transform:translate(-26%,calc(-50% - 5px))}
  50%{transform:translate(-26%,calc(-50% + 5px))}
}
.psh-pill{
  display:inline-flex; align-items:center; gap:.5rem; background:#fff; color:var(--secondary-color,#394465);
  padding:.58rem 1rem; border-radius:10px; font-weight:700; font-size:13px; white-space:nowrap;
  box-shadow:0 12px 26px rgba(var(--psh-secondary-rgb),.12); border:1px solid var(--psh-border);
  transition:transform .2s;
}
.psh-pill:hover{transform:translateY(-2px)}
.psh-pill .psh-ico{
  display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px;
  border-radius:8px; background:rgba(var(--psh-primary-rgb),.12); color:var(--psh-primary);
}
.psh-pill .psh-ico i{font-size:14px; color:var(--psh-primary)}
.psh-pill .psh-ico svg{width:15px; height:15px; fill:var(--psh-primary)}
.psh-pill .psh-ico img{width:15px; height:15px; object-fit:contain}

/* بادکنک‌های سیستم‌عامل: نوار ثابتِ پایین */
.psh-os{
  position:absolute; z-index:7; bottom:2%; left:50%; transform:translateX(-50%);
  display:flex; gap:.5rem; background:#fff; padding:.5rem .7rem; border-radius:999px;
  box-shadow:0 12px 26px rgba(var(--psh-secondary-rgb),.14); border:1px solid var(--psh-border);
}
.psh-os .psh-bub{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--bg-card,#F9F9FF);
}
.psh-os .psh-bub img{width:22px; height:22px; object-fit:contain}

/* احترام به کاربرانی که حرکت کمتری می‌خواهند */
@media (prefers-reduced-motion: reduce){
  .psh-server,.psh-flag,.psh-feat{animation:none !important}
}


/* ---------- دکمه: استایل آبیِ تم، فقط داخل همین ویجت (سایر دکمه‌های سایت دست‌نخورده) ---------- */
.psh-btn-wrap .elementor-button{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  background-color:var(--psh-primary); color:#fff; text-decoration:none;
  font-weight:700; font-size:15px; line-height:1.6;
  padding:.8rem 1.9rem; border:none;
  border-radius:var(--btn-border-radius, calc(var(--psh-radius) * .5));
  box-shadow:0 14px 30px rgba(var(--psh-primary-rgb),.30);
  transition:transform .2s, box-shadow .2s, background-color .2s;
}
.psh-btn-wrap .elementor-button:hover,
.psh-btn-wrap .elementor-button:focus{
  color:#fff; transform:translateY(-2px);
  box-shadow:0 20px 40px rgba(var(--psh-primary-rgb),.40);
}
.psh-btn-wrap .elementor-button .elementor-button-content-wrapper{display:inline-flex; align-items:center; gap:.5rem}
.psh-btn-wrap .elementor-button .elementor-button-icon{display:inline-flex; align-items:center}
.psh-btn-wrap .elementor-button .elementor-button-icon i,
.psh-btn-wrap .elementor-button .elementor-button-icon svg{color:#fff; fill:#fff; font-size:15px; width:1em; height:1em}

/* ---------- ریسپانسیو ---------- */
@media (max-width:880px){
  .psh-hero{grid-template-columns:1fr; gap:1.5rem}
  /* متن: عنوان و توضیحات راست‌چین، دکمه وسط‌چین */
  .psh-text{order:2; text-align:right}
  .psh-btn-wrap{text-align:center}
  .psh-halo{inset:-10% -6%}
  .psh-clouds .psh-c1{top:-4%; right:0; width:90px}
  .psh-clouds .psh-c2{bottom:-2%; left:0; width:80px}
  /* بلاک سرور، ویژگی‌ها و سیستم‌عامل‌ها: وسط‌چین (پین هم دقیقاً بالای سرور می‌ماند) */
  .psh-frame{order:1; min-height:auto; flex-direction:column; align-items:center; gap:1.25rem}
  .psh-stagewrap{width:min(86%,320px)}
  .psh-feat{position:static; animation:none; transform:none; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:.6rem}
  .psh-os{position:static; transform:none}
}
@media (max-width:420px){
  .psh-stagewrap{width:min(92%,280px)}
}
