/* =========================================================
   LINKS — /links
   One-tap hub for the bio link (TikTok · Instagram · Snapchat).
   Phone-first, Arabic only, always light. No JS.
   ========================================================= */

.lk-page {
  background: var(--bg-soft);
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lk-shell {
  width: 100%;
  max-width: 460px;
  padding: clamp(26px, 6vw, 40px) 20px calc(34px + env(safe-area-inset-bottom));
  margin-inline: auto;
}

/* ---------- head ---------- */
.lk-head { text-align: center; }

.lk-brand {
  display: inline-block;
  margin-bottom: clamp(20px, 5vw, 28px);
}
.lk-brand img { height: 30px; width: auto; display: block; }

.lk-avatar {
  width: 132px; height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  box-shadow: var(--shadow-photo);
}
.lk-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.lk-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 6px;
}

.lk-role {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  color: var(--orange);
  margin: 0 0 12px;
}

.lk-bio {
  font-size: .9rem;
  line-height: 1.85;
  color: var(--ink-3);
  margin: 0;
}

/* ---------- link rows ---------- */
.lk-links {
  display: grid;
  gap: 11px;
  margin-top: clamp(24px, 6vw, 32px);
}

.lk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, border-color .2s ease;
}
.lk-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-2);
}
.lk-row:active { transform: translateY(0); }
.lk-row:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
}

/* the signup row carries the brand colour */
.lk-row--primary {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.lk-row--primary:hover {
  background: var(--orange-d);
  border-color: transparent;
  box-shadow: 0 16px 34px -12px rgba(229,78,10,.55);
}
.lk-row--primary .lk-sub { color: rgba(255,255,255,.88); }
.lk-row--primary .lk-chev { color: rgba(255,255,255,.72); }

/* ---------- icon tile ---------- */
.lk-tile {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.lk-tile svg { width: 22px; height: 22px; }

.lk-tile--brand { background: rgba(255,255,255,.2); color: #fff; }
.lk-tile--cert  { background: var(--orange-soft); color: var(--orange-d); }
.lk-tile--ig    { background: linear-gradient(45deg, #FBAD50 6%, #EE2A7B 48%, #6228D7 98%); color: #fff; }
.lk-tile--tt    { background: #0A0A0A; color: #fff; }
.lk-tile--yt    { background: #FF0000; color: #fff; }
.lk-tile--sc    { background: #FFFC00; color: #0A0A0A; }

/* ---------- text ---------- */
.lk-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.lk-label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.lk-sub {
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-4);
}
/* handles stay left-to-right inside the RTL page */
.lk-sub[dir="ltr"] { unicode-bidi: isolate; letter-spacing: .01em; }

.lk-chev {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--ink-5);
  margin-inline-start: auto;
}

/* ---------- certificates page (/certificates) ---------- */
.lk-head--page { margin-bottom: clamp(22px, 5vw, 28px); }

.lk-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.lk-page-sub {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--ink-4);
  margin: 0;
}

.lk-certs { text-align: center; }

.lk-links--page { margin-top: clamp(26px, 6vw, 34px); }

.lk-back {
  margin: 18px 0 0;
  text-align: center;
}
.lk-back a {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.lk-back a:hover { color: var(--orange-d); }

.lk-cert-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lk-cert { text-align: center; }

.lk-cert__shot {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #fff;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.lk-cert__shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.lk-cert__shot:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; }
.lk-cert__shot img { width: 100%; height: auto; display: block; }

.lk-cert__name {
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 10px 0 5px;
}

.lk-cert__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.lk-cert__date {
  font-size: .76rem;
  color: var(--ink-4);
  unicode-bidi: isolate;
}

.lk-badge {
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--pill);
  background: #F1EFE8;
  color: var(--ink-4);
}
.lk-badge--done {
  background: var(--orange-soft);
  color: var(--orange-d);
}

/* ---------- foot ---------- */
.lk-foot {
  margin-top: 26px;
  text-align: center;
}
.lk-foot a {
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-5);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.lk-foot a:hover { color: var(--orange); }

/* ---------- small phones ---------- */
@media (max-width: 380px) {
  .lk-avatar { width: 112px; height: 112px; }
  .lk-row { min-height: 62px; gap: 12px; padding: 10px 13px; }
  .lk-tile { width: 40px; height: 40px; border-radius: 12px; }
  .lk-tile svg { width: 20px; height: 20px; }
  .lk-label { font-size: .94rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lk-row { transition: box-shadow .2s ease, border-color .2s ease; }
  .lk-row:hover, .lk-row:active { transform: none; }
}
