/* ============================================================
   امرتات استور — Hosting page (هاستینگ فروشگاه)
   Uses :root tokens + .page-head + .features-grid/.feature from styles.css
   ============================================================ */

.eyebrow { white-space: nowrap; }
.page-head .crumbs span { white-space: nowrap; }

/* ---- Stat band ---- */
.host-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.host-stats:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.host-stat { text-align: center; position: relative; cursor: default; }
.host-stat + .host-stat::before { content: ''; position: absolute; top: 6px; bottom: 6px; right: -10px; width: 1px; background: var(--border); }
.host-stat .hs-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.host-stat:hover .hs-ico {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-soft);
}
.host-stat .hs-ico i { font-size: 27px; color: var(--primary); }
.host-stat .hs-num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.host-stat .hs-num small { font-size: 17px; font-weight: 700; color: var(--primary); }
.host-stat .hs-num .en { font-family: var(--font-en); }
.host-stat .hs-lab { font-size: 13.5px; color: var(--text-2); margin-top: 9px; }

/* ---- Features (reuse .feature, 3-col) ---- */
.host-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.host-features .feature {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.host-features .feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* ---- Split: dedicated server + security ---- */
.host-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.host-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.host-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.host-panel .hp-ico { width: 56px; height: 56px; border-radius: 15px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 18px; }
.host-panel .hp-ico i { font-size: 31px; color: var(--primary); }
.host-panel h3 { font-size: 20px; margin-bottom: 12px; }
.host-panel p { font-size: 14.5px; color: var(--text-2); line-height: 1.95; margin-bottom: 18px; }
.host-panel .hp-list { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.host-panel .hp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.host-panel .hp-list li i { font-size: 19px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* security chips */
.sec-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 15px;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sec-chip:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.sec-chip .en { font-family: var(--font-en); direction: ltr; }
.sec-chip i { color: var(--primary); font-size: 17px; }

/* ---- Technical requirements (spec cards) ---- */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.spec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.spec-head { display: flex; align-items: center; gap: 11px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 15.5px; }
.spec-head i { font-size: 23px; color: var(--primary); }
.spec-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 22px; border-top: 1px dashed var(--border); }
.spec-row:first-child { border-top: none; }
.spec-row .sk { font-size: 14px; color: var(--text-2); font-weight: 600; flex-shrink: 0; padding-top: 3px; white-space: nowrap; }
.spec-row .sv { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.spec-row .sv code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; color: var(--text); white-space: nowrap; }
.spec-row .sv code.ok { color: var(--green); border-color: rgba(22,163,74,0.25); background: rgba(22,163,74,0.07); }
.spec-note { padding: 14px 22px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.spec-note .opt-label { color: var(--text-2); font-weight: 700; }

/* compatibility callout */
.host-compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.host-compat { display: flex; align-items: center; gap: 16px; background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.2); border-radius: var(--r-lg); padding: 22px 26px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.host-compat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.host-compat .hc-ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid rgba(22,163,74,0.2); display: grid; place-items: center; flex-shrink: 0; }
.host-compat .hc-ico i { font-size: 28px; color: var(--green); }
.host-compat .hc-title { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.host-compat .hc-sub { font-size: 14px; color: var(--text-2); line-height: 1.7; }


/* ---- Advanced infrastructure section ---- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.infra-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.infra-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #8B5CF6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.infra-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.infra-card:hover::before {
  opacity: 1;
}
.infra-card .ic-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--primary);
  align-self: flex-start;
}
.infra-card .ic-ico i {
  font-size: 28px;
}
.infra-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.infra-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 0 0 16px;
  flex-grow: 1;
}
.infra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.infra-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.infra-tag.en {
  font-family: var(--font-en);
  direction: ltr;
}

/* ---- Technology Logos Bar ---- */
.host-logos {
  padding-block: 30px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.host-logos .logos-title {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.host-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.host-logos-row img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(45%);
  transition: filter 0.3s ease, transform 0.3s ease;
  mix-blend-mode: multiply;
}
.host-logos-row img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .host-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .host-stat:nth-child(3)::before { display: none; }
  .host-features { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .host-split { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .host-compat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .host-stats { grid-template-columns: 1fr; gap: 22px; }
  .host-stat::before { display: none !important; }
  .host-features { grid-template-columns: 1fr; }
  .host-compat { flex-direction: column; text-align: center; }
}
