/* ============================================================
   Yitech — واجهة المعلومات (Info page)
   هوية: أزرق Yitech + ذهبي، طابع زجاجي أنيق، RTL، متوافق مع الجوال.
   المتغيّرات --brand و --accent تُمرَّر من لوحة التحكم (inline).
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  background: #05132a;
  color: #eaf1fb;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  padding: 26px 14px 40px;
}

/* خلفية متدرّجة + هالات لونية */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 520px at 50% -10%, color-mix(in srgb, var(--brand) 55%, #061a3a) 0%, transparent 62%),
    linear-gradient(180deg, #071b38 0%, #05132a 55%, #030d1d 100%);
}

.halo {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  pointer-events: none;
}
.halo-a {
  width: 340px; height: 340px;
  top: -90px; right: -70px;
  background: color-mix(in srgb, var(--brand) 70%, transparent);
}
.halo-b {
  width: 300px; height: 300px;
  bottom: -110px; left: -80px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: .3;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

.sheet {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: rise .5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ الهوية ============ */
.head { text-align: center; padding: 6px 4px 20px; }

.avatar {
  width: 112px; height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(150deg, var(--accent), var(--brand) 70%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.avatar img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.head h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -.2px;
  line-height: 1.25;
}
.head .sub {
  margin: 6px 0 0;
  font-size: 1rem;
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  font-weight: 600;
}
.head .tag {
  margin: 8px auto 0;
  max-width: 420px;
  font-size: .86rem;
  line-height: 1.7;
  color: rgba(234, 241, 251, .66);
}


/* ============ الأيقونات ============ */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 18px;
}

.tile {
  --c: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 65%, #fff 10%);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
  outline: none;
}
.tile:active { transform: translateY(-1px) scale(.99); }

.tile-ic {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.tile-ic img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.tile-svg { width: 26px; height: 26px; }

.tile-txt { display: block; line-height: 1.35; }
.tile-txt b { display: block; font-size: .95rem; font-weight: 700; }
.tile-txt small { display: block; margin-top: 3px; font-size: .72rem; color: rgba(234, 241, 251, .55); }

.empty { grid-column: 1 / -1; text-align: center; color: rgba(234, 241, 251, .6); font-size: .9rem; }

/* ============ أزرار التواصل ============ */
.quick { display: flex; gap: 10px; margin: 6px 0 12px; }

.pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .16s ease, filter .16s ease;
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pill-svg { width: 20px; height: 20px; }
.pill-call { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 92%, #fff 8%), color-mix(in srgb, var(--brand) 70%, #000)); }
.pill-wa { background: linear-gradient(150deg, #2bd26b, #128c46); }

.extras { display: flex; gap: 10px; margin-bottom: 18px; }
.ghost {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: rgba(234, 241, 251, .84);
  font-family: inherit;
  font-size: .85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ghost-svg { width: 17px; height: 17px; }

.foot { text-align: center; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot p { margin: 10px 0 0; font-size: .78rem; color: rgba(234, 241, 251, .52); }
.foot .mono { font-family: Consolas, "Courier New", monospace; font-size: .72rem; letter-spacing: .5px; }

/* ============ الوضع الفاتح ============ */
body.theme-light { color: #0c2038; }
body.theme-light::before {
  background:
    radial-gradient(880px 520px at 50% -10%, color-mix(in srgb, var(--brand) 16%, #ffffff) 0%, transparent 62%),
    linear-gradient(180deg, #f4f8ff 0%, #eaf1fb 60%, #e2ecf9 100%);
}
body.theme-light .grain { opacity: .18; background-image: radial-gradient(rgba(11, 77, 162, .12) 1px, transparent 1px); }
body.theme-light .halo-a { opacity: .22; }
body.theme-light .halo-b { opacity: .18; }
body.theme-light .head .tag { color: rgba(12, 32, 56, .62); }
body.theme-light .head .sub { color: color-mix(in srgb, var(--brand) 70%, #0c2038); }
body.theme-light .tile { background: rgba(255, 255, 255, .82); border-color: rgba(11, 77, 162, .14); box-shadow: 0 6px 18px rgba(12, 32, 56, .07); }
body.theme-light .tile:hover { background: #fff; box-shadow: 0 16px 32px rgba(12, 32, 56, .14); }
body.theme-light .tile-txt small { color: rgba(12, 32, 56, .55); }
body.theme-light .ghost { color: rgba(12, 32, 56, .78); border-color: rgba(11, 77, 162, .2); }
body.theme-light .ghost:hover { background: rgba(11, 77, 162, .07); color: #0c2038; }
body.theme-light .foot { border-top-color: rgba(11, 77, 162, .14); }
body.theme-light .foot p { color: rgba(12, 32, 56, .55); }

/* ============ الجوال والشاشات الكبيرة ============ */
@media (min-width: 520px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head h1 { font-size: 2rem; }
}
@media (max-width: 380px) {
  .tile { padding: 14px 8px 12px; }
  .tile-ic { width: 46px; height: 46px; }
  .pill { font-size: .85rem; padding: 8px 10px; }
  .quick, .extras { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
