/* members-home.css (فقط لهذه الصفحة) */

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --stroke:rgba(15,23,42,.10);
  --text:#0b1220;
  --muted:#64748b;

  --p1:#6d28d9;
  --p2:#2563eb;

  --shadow: 0 10px 28px rgba(15,23,42,.10);
  --shadow2: 0 18px 46px rgba(15,23,42,.12);

  --r: 18px;
  --r2: 22px;

  --font: system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Kufi Arabic","Noto Sans Arabic",sans-serif;
}

/* page base */
.members-home.mh-art{
  font-family: var(--font);
  background:
    radial-gradient(900px 550px at 10% 0%, rgba(109,40,217,.12), transparent 60%),
    radial-gradient(900px 550px at 90% 8%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(800px 520px at 60% 90%, rgba(6,182,212,.08), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.mh-wrap{ padding: 18px 0 34px; }
.mh-container{ width:min(1200px, calc(100% - 32px)); margin:0 auto; }

/* background blobs */
.mh-blobs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate(var(--px,0px), var(--py,0px));
  transition: transform .20s ease;
}
.mh-blob{
  position:absolute;
  filter: blur(32px);
  opacity: .75;
  border-radius: 999px;
  mix-blend-mode: multiply;
}
.mh-blob.b1{ width: 360px; height: 360px; left:-120px; top:-120px; background: rgba(109,40,217,.22); }
.mh-blob.b2{ width: 420px; height: 420px; right:-160px; top:40px; background: rgba(37,99,235,.20); }
.mh-blob.b3{ width: 380px; height: 380px; left:40%; bottom:-180px; background: rgba(6,182,212,.18); }

.members-home *{ position: relative; z-index: 1; }

/* reveal */
.mh-reveal{
  opacity: 0;
  transform: translateY(14px) scale(.99);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.mh-reveal.is-in{ opacity: 1; transform: translateY(0) scale(1); }

/* subtle tilt */
[data-tilt]{
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
[data-tilt].is-tilting{ box-shadow: var(--shadow2); }

/* badge */
.mh-badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(109,40,217,.10);
  border: 1px solid rgba(109,40,217,.18);
  color: #4c1d95;
  font-weight: 900;
  font-size: 12.5px;
}

/* HERO */
.mh-hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.mh-hero-card{
  background:
    radial-gradient(circle at 20% -30%, rgba(109,40,217,.45), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,.35), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border-radius: calc(var(--r2) + 8px);
  padding: 26px;
  box-shadow:
    0 20px 56px rgba(15,23,42,.18),
    0 0 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(16px);
}

.mh-hero-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
}
.mh-hero-dots{
  color: rgba(15,23,42,.35);
  letter-spacing: 2px;
  font-weight: 900;
  user-select:none;
}
.mh-hero-title{
  margin: 12px 0 6px;
  font-size: 32px;
  line-height: 1.35;
}
.mh-hero-sub{
  margin: 0;
  color: rgba(15,23,42,.75);
  font-size: 15px;
  line-height: 1.8;
}

/* HERO stats */
.mh-hero-stats{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.mh-hero-stat{
  text-decoration: none;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.mh-hero-stat::before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background:
    radial-gradient(closest-side, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(closest-side, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(closest-side, rgba(16,185,129,.12), transparent 60%);
  transform: translate(var(--px,0px), var(--py,0px));
  pointer-events:none;
}
.mh-hero-stat:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(15,23,42,.14);
  border-color: rgba(59,130,246,.22);
}
.mh-hero-stat-ico{
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(15,23,42,.08);
  font-size: 18px;
}
.mh-hero-stat-num{
  font-weight: 1000;
  font-size: 22px;
  line-height: 1.1;
  color: #0f172a;
}
.mh-hero-stat-lbl{
  font-size: 13px;
  color: rgba(15,23,42,.62);
  font-weight: 800;
}
.mh-hero-stat.is-primary{
  border-color: rgba(124,58,237,.25);
  background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(59,130,246,.16), rgba(255,255,255,.70));
}

.mh-online-counter{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,.2);
  background: rgba(37,99,235,.08);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  max-width: 280px;
  font-size: 14px;
  color: rgba(15,23,42,.75);
}
.mh-online-label{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(15,23,42,.65);
}
.mh-online-counter strong{
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.mh-online-sub{
  font-size: 12px;
  color: rgba(15,23,42,.65);
}

/* hero footer */
.mh-hero-foot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(15,23,42,.12);
}
.mh-mini{
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(15,23,42,.65);
  font-weight: 900;
  font-size: 13px;
}
.mh-mini-k{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
}
.mh-sparkline{ display:flex; gap: 6px; align-items:flex-end; }
.mh-sparkline span{
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(109,40,217,.70), rgba(37,99,235,.70));
  animation: mhPulse 1.8s ease-in-out infinite;
}
.mh-sparkline span:nth-child(1){ height: 10px; animation-delay:.0s; }
.mh-sparkline span:nth-child(2){ height: 18px; animation-delay:.15s; }
.mh-sparkline span:nth-child(3){ height: 14px; animation-delay:.30s; }
.mh-sparkline span:nth-child(4){ height: 22px; animation-delay:.45s; }
.mh-sparkline span:nth-child(5){ height: 12px; animation-delay:.60s; }
@keyframes mhPulse{
  0%,100%{ transform: translateY(0); opacity:.75; }
  50%{ transform: translateY(-5px); opacity:1; }
}

/* panels */
.mh-panel{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  padding: 14px;
}
.mh-panel-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mh-panel-head-actions{ display:flex; align-items:center; gap:8px; }

.mh-notifications-panel{
  display:flex;
  flex-direction: column;
}
.mh-panel-foot{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15,23,42,.12);
}

/* notifications list */
.mh-notifications{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mh-notification{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.03);
  padding: 10px;
}
.mh-notification a{
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-decoration:none;
  color: inherit;
}
.mh-notification-type{
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.15);
  color: rgba(15,23,42,.65);
  background: rgba(15,23,42,.05);
  white-space: nowrap;
}
.mh-notification strong{ display:block; font-size: 14px; color: #0f172a; }
.mh-notification p{ margin:2px 0 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.mh-notification small{ font-size: 11px; color: rgba(15,23,42,.5); display:block; }

.mh-empty{
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,23,42,.03);
  border: 1px dashed rgba(15,23,42,.10);
  color: var(--muted);
}

/* buttons (داخل هذه الصفحة فقط) */
.mh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight: 1000;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mh-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.12);
  border-color: rgba(109,40,217,.25);
}
.mh-btn-secondary{
  border-color: rgba(15,23,42,.15);
  background: rgba(15,23,42,.05);
}
.mh-btn-secondary.is-spark{ animation: mhSpark .35s ease; }
@keyframes mhSpark{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.06); }
  100%{ transform: scale(1); }
}

/* DAILY layout (مناسب لبنية HTML الحالية: 3 عناصر داخل mh-daily) */
.mh-daily{
  display:grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas:
    "volhead tips"
    "volgrid tips";
  gap: 14px;
  margin: 14px 0 14px;

  background: rgba(255,255,255,.05);
  padding: 12px;
  border-radius: 34px;
  border: 1px solid rgba(15,23,42,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.mh-daily-tips{ grid-area: tips; }
.mh-volunteer-head{ grid-area: volhead; }
.mh-volunteer-grid{ grid-area: volgrid; }

/* tip card (مصغّرة) */
.mh-daily-tips{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border-radius: var(--r2);
  padding: 14px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}
.mh-daily-tips h3{
  margin: 0;
  font-size: 15px;
  font-weight: 1000;
}
.mh-daily-tip-text{
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  min-height: 44px;
}
.mh-tip-foot{ margin-top: auto; }

/* volunteers (أفضل) */
.mh-volunteer-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 6px 0;
}
.mh-volunteer-head h2{
  margin:0;
  font-size: 20px;
  font-weight: 1000;
}
.mh-volunteer-head p{
  margin:6px 0 0;
  color: rgba(15,23,42,.65);
  font-size: 14px;
}

.mh-volunteer-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.mh-volunteer-card{
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  display:flex;
  gap: 12px;
  align-items:center;
  min-height: 108px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mh-volunteer-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  border-color: rgba(37,99,235,.18);
}
.mh-volunteer-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-size: 18px;
  font-weight: 1000;
  color: var(--p2);
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.16);
}
.mh-volunteer-meta h3{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 1000;
}
.mh-volunteer-meta p{
  margin: 2px 0;
  color: rgba(15,23,42,.65);
  font-size: 13px;
}

/* actions block */
.mh-layout{ margin-top: 14px; }
.mh-actions{ display:flex; flex-direction: column; gap: 10px; }
.mh-action{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.88);
  text-decoration:none;
  color: var(--text);
  font-weight: 1000;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
  transition: transform .15s ease, border-color .15s ease;
}
.mh-action:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.22);
}

/* responsive */
@media (max-width: 980px){
  .mh-hero{ grid-template-columns: 1fr; }
  .mh-hero-stats{ grid-template-columns: 1fr; }

  .mh-daily{
    grid-template-columns: 1fr;
    grid-template-areas:
      "tips"
      "volhead"
      "volgrid";
  }

  .mh-volunteer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .mh-container{ width: calc(100% - 24px); }
  .mh-btn{ width: 100%; }
}
