/* yasserlinks — shared styles for the bio page (/) and video pages (/p/<slug>)
   Palette follows Ahmed's content style: pure-black bg, white type, indigo/violet glow. */

:root {
  --bg: #050507;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --accent: #7c6cff;
  --accent-2: #4cc2ff;
  --glow: rgba(124, 108, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* fixed ambient glow blobs, transform-only, cheap */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(124, 108, 255, 0.16), transparent 70%),
    radial-gradient(500px 350px at 10% 40%, rgba(76, 194, 255, 0.08), transparent 70%),
    radial-gradient(600px 400px at 60% 110%, rgba(124, 108, 255, 0.1), transparent 70%);
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 18px 30px;
}

/* ── Profile header ── */
.profile { text-align: center; margin-bottom: 28px; }

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.25), rgba(76, 194, 255, 0.15));
  border: 1px solid var(--border);
  box-shadow: 0 0 40px var(--glow);
}

.name { font-size: 26px; font-weight: 900; letter-spacing: 0.3px; }
.handle { color: var(--accent-2); font-weight: 600; font-size: 15px; direction: ltr; }
.bio { color: var(--muted); font-size: 14.5px; max-width: 420px; margin: 8px auto 0; }

.socials { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.socials a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--card-hover); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: var(--text); }

/* ── Featured cards ── */
.featured { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }

.card {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { background: var(--card-hover); transform: translateY(-2px); }
.card .card-title { font-weight: 700; font-size: 16.5px; }
.card .card-note { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.card.hero {
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.22), rgba(76, 194, 255, 0.1));
  border-color: rgba(124, 108, 255, 0.45);
  box-shadow: 0 0 32px rgba(124, 108, 255, 0.18);
}
.card.hero:hover { box-shadow: 0 0 44px rgba(124, 108, 255, 0.3); }
.card.hero .card-title { font-size: 18px; font-weight: 900; }

/* ── Search + chips ── */
.finder-title { font-size: 19px; font-weight: 900; margin-bottom: 14px; }

.search {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--accent); }

.chips {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px var(--glow);
}

/* ── Resource list ── */
.resources { display: flex; flex-direction: column; gap: 9px; }

.res {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, transform 0.15s;
}
.res:hover { background: var(--card-hover); transform: translateY(-1px); }

.res-icon { font-size: 21px; flex-shrink: 0; }
.res-body { flex: 1; min-width: 0; }
.res-title { font-weight: 700; font-size: 15px; direction: ltr; text-align: right; }
.res-note { color: var(--muted); font-size: 12.5px; }
.res-arrow { color: var(--muted); flex-shrink: 0; font-size: 17px; }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ── Video page (/p/<slug>) ── */
.video-head { text-align: center; margin-bottom: 26px; }
.video-kicker { color: var(--accent-2); font-weight: 700; font-size: 14px; }
.video-title { font-size: 26px; font-weight: 900; direction: ltr; }
.video-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.dl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }

.dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.18), rgba(76, 194, 255, 0.08));
  border: 1px solid rgba(124, 108, 255, 0.4);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(124, 108, 255, 0.25); }
.dl .res-title { font-size: 16.5px; }

.back-link {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  margin-top: 18px;
}
.back-link:hover { color: var(--text); }

.notfound { text-align: center; padding: 40px 0; }
.notfound h2 { font-size: 22px; margin-bottom: 8px; }
.notfound p { color: var(--muted); }

.footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 40px; }

@media (max-width: 420px) {
  .wrap { padding-top: 30px; }
  .name { font-size: 23px; }
  .video-title { font-size: 22px; }
}
