/* ============================================================
   بالميت — صفحة الروابط
   الألوان المعتمدة: الوردي #C98083 · الأخضر #6B7D5C · الكريمي #F6EFDC
   الثانوية: الأخضر الفاتح #A4B58F · الوردي الفاتح #E2AFAF · الوردي المتوسط #D6999A
   التكوين: خلفية وردية موحّدة، والشعار مباشرة عليها، وأربع خانات بيضاء متطابقة.
   ============================================================ */

@font-face {
  font-family: "29LT Adir";
  src: url("fonts/29LT-Adir-Regular.woff") format("woff"),
       url("fonts/29LT-Adir-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #C98083;
  --green: #6B7D5C;
  --cream: #F6EFDC;
  --white: #FFFFFF;
  --green-light: #A4B58F;
  --pink-light: #E2AFAF;
  --ink: #3E4A35;              /* حلقة التركيز فقط، لتكون واضحة فوق الوردي */

  --font: "29LT Adir", system-ui, sans-serif;
  /* الملف المتوفر Regular فقط؛ تُغمَّق العناوين بحدّ رقيق بلون النص نفسه */
  --w-semi: .026em;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --row-h: 64px;
  --gap: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--pink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  background: var(--pink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
h1, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- العمود ---------- */
.page { width: 100%; overflow-x: hidden; overflow-x: clip; }
.links {
  width: 100%; max-width: 440px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: max(32px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}

/* ---------- الشعار ---------- */
.brand { text-align: center; margin-top: clamp(0px, 5vh - 20px, 40px); }
.logo-wrap { position: relative; width: min(250px, 64vw); margin-inline: auto; }
.logo img { width: 100%; }
.f { position: absolute; pointer-events: none; }
.f1 { width: 22px; top: -6%;  right: -17%; }
.f2 { width: 15px; top: 52%;  right: -25%; }
.f3 { width: 24px; top: 4%;   left: -23%; }
.f4 { width: 14px; bottom: -2%; left: -13%; }


/* ---------- الخانات ---------- */
.link-list { display: grid; gap: var(--gap); margin-top: 32px; }
.link-list li { position: relative; }
.link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px;
  height: var(--row-h); padding-inline: 10px;
  border-radius: 20px;
  background: var(--white); color: var(--green); text-decoration: none;
  box-shadow: 0 1px 2px rgba(62, 74, 53, .06), 0 8px 18px -12px rgba(62, 74, 53, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  touch-action: manipulation;
}
.l-ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream);
  transition: transform .45s var(--ease);
}
.l-ico.green { background: var(--green); }
.l-ico.pink { background: var(--pink); }
.l-ico svg { width: 22px; height: 22px; }
.l-title {
  text-align: center; font-size: 1.1875rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-text-stroke: var(--w-semi) currentColor;
}
.l-go, .l-slot { width: 20px; height: 20px; justify-self: center; }
.l-go { color: var(--green); opacity: .7; transition: transform .35s var(--ease), opacity .3s; }

@media (hover: hover) {
  .link:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(62, 74, 53, .06), 0 14px 24px -14px rgba(62, 74, 53, .45); }
  .link:hover .l-ico { transform: rotate(-10deg) scale(1.05); }
  .link:hover .l-go { transform: translateX(-4px); opacity: 1; }
}
.link:active { transform: scale(.97); transition-duration: .12s; }

/* زهور الضغط */
.burst { position: fixed; z-index: 50; width: 16px; height: 16px; pointer-events: none; left: 0; top: 0; will-change: transform, opacity; }

/* ---------- التذييل ---------- */
.foot { margin-top: auto; padding-top: 36px; text-align: center; }
.flower-row {
  height: 30px; width: min(320px, 76%); margin-inline: auto;
  background: url("assets/decor/flower-row-cream.svg") center / 64px 30px space no-repeat;
  opacity: .6;
}
.foot-line { margin-top: 12px; font-size: 1.125rem; color: var(--cream); -webkit-text-stroke: var(--w-semi) currentColor; }
.rights { margin-top: 4px; font-size: .875rem; color: var(--cream); opacity: .85; }

/* ---------- الإشعار ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(22px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 10px 20px; border-radius: 999px;
  background: var(--green); color: var(--cream); font-size: 1rem; text-align: center;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .45);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* الشاشات القصيرة: تبقى الصفحة كاملة في شاشة واحدة تقريبًا */
@media (max-height: 700px) {
  :root { --row-h: 58px; --gap: 12px; }
  .links { padding-top: max(22px, env(safe-area-inset-top, 0px)); }
  .logo-wrap { width: min(210px, 58vw); }
  .link-list { margin-top: 24px; }
  .foot { padding-top: 26px; }
}
@media (min-width: 760px) {
  .links { padding-top: 64px; }
}

/* ---------- الحركة ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo { animation: logo-in .9s var(--ease) both; }
  .f { animation: bloom .9s var(--ease) both; }
  .f1 { animation-delay: .45s; } .f2 { animation-delay: .6s; }
  .f3 { animation-delay: .52s; } .f4 { animation-delay: .7s; }
  .link-list li { animation: rise-in .7s var(--ease) both; animation-delay: calc(.45s + var(--i) * 90ms); }
  .foot { animation: rise .8s .95s var(--ease) both; }

  @keyframes logo-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
  @keyframes bloom { from { opacity: 0; transform: scale(0) rotate(-120deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
