/* =========================================================
   Gamers Choice — Link in Bio (Central Kurdish, RTL)
   Pure HTML + CSS. Colors for each theme are in the token
   blocks right below.
   NOTE: never add letter-spacing to Kurdish text — it breaks
   letter joining on iPhone/Safari.
   ========================================================= */

/* ---------- Theme tokens ----------
   Dark is the default. Light is used when the phone/PC is in
   light mode. The ☀/☾ button flips whichever one is active. */
:root {
  --bg: #000000;
  --panel: #0a0d14;
  --panel-2: #121622;
  --border: #1e2433;
  --text: #f8fafc;
  --muted: #8b95a5;
  --accent-2: #22d3ee;
  --grid-line: rgba(2, 87, 251, 0.08);
  --glow-opacity: 0.4;
  --shine: rgba(255, 255, 255, 0.08);
  --card-shadow: none;
  --show-sun: block;
  --show-moon: none;

  --blue: #0257fb;
  --green: #10b981;
  --radius: 16px;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Vazirmatn", system-ui, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-2: #f8faff;
    --border: #dde3ee;
    --text: #0b1220;
    --muted: #5b6577;
    --accent-2: #0369a1;
    --grid-line: rgba(2, 87, 251, 0.07);
    --glow-opacity: 0.18;
    --shine: rgba(2, 87, 251, 0.07);
    --card-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --show-sun: none;
    --show-moon: block;
    color-scheme: light;
  }
}

/* Button flips: system dark -> light */
:root:has(#theme:checked) {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f8faff;
  --border: #dde3ee;
  --text: #0b1220;
  --muted: #5b6577;
  --accent-2: #0369a1;
  --grid-line: rgba(2, 87, 251, 0.07);
  --glow-opacity: 0.18;
  --shine: rgba(2, 87, 251, 0.07);
  --card-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --show-sun: none;
  --show-moon: block;
  color-scheme: light;
}

/* Button flips: system light -> dark */
@media (prefers-color-scheme: light) {
  :root:has(#theme:checked) {
    --bg: #000000;
    --panel: #0a0d14;
    --panel-2: #121622;
    --border: #1e2433;
    --text: #f8fafc;
    --muted: #8b95a5;
    --accent-2: #22d3ee;
    --grid-line: rgba(2, 87, 251, 0.08);
    --glow-opacity: 0.4;
    --shine: rgba(255, 255, 255, 0.08);
    --card-shadow: none;
    --show-sun: block;
    --show-moon: none;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  display: flex;
  justify-content: center;
  padding: 56px 16px 32px;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, .theme-input:focus-visible + .theme-toggle {
  outline: 2px solid var(--blue); outline-offset: 3px;
}

/* ---------- Theme toggle ---------- */
.theme-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.theme-toggle {
  position: fixed; top: 14px; left: 14px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, background-color 0.35s, border-color 0.35s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); border-color: var(--blue); }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle__sun  { display: var(--show-sun); color: #fbbf24; fill: #fbbf24; }
.theme-toggle__moon { display: var(--show-moon); color: #4f46e5; fill: #4f46e5; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 25%, transparent 75%);
  animation: gridMove 18s linear infinite;
}
@keyframes gridMove { to { background-position: 44px 44px; } }

.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(110px); opacity: var(--glow-opacity); pointer-events: none;
  transition: opacity 0.35s;
}
.bg-glow--1 { width: min(420px, 90vw); height: min(420px, 90vw); background: var(--blue); top: -160px; left: 50%; transform: translateX(-50%); }
.bg-glow--2 { width: min(320px, 70vw); height: min(320px, 70vw); background: #7c3aed; bottom: -140px; left: -100px; opacity: calc(var(--glow-opacity) * 0.6); }

/* ---------- Layout ---------- */
.card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.7s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.links { display: flex; flex-direction: column; gap: 12px; }

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

.avatar { position: relative; width: 124px; height: 124px; margin: 0 auto 18px; }
.avatar__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--blue), #22d3ee, #7c3aed, var(--blue));
  animation: spin 4s linear infinite;
  box-shadow: 0 0 35px rgba(2, 87, 251, 0.45);
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg); background: #fff;
  transition: border-color 0.35s;
}
.avatar__status {
  position: absolute; right: 8px; bottom: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }

.name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(21px, 6.5vw, 26px); letter-spacing: 2px; /* English brand name only */
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.name span { color: var(--blue); }
.verified { width: 22px; height: 22px; fill: var(--blue); flex-shrink: 0; }

.tagline { font-size: 15px; font-weight: 700; color: var(--accent-2); margin-top: 6px; }
.bio { color: var(--muted); font-weight: 500; line-height: 1.8; margin-top: 12px; font-size: 16px; }

.label {
  font-size: 14px; font-weight: 700;
  color: var(--muted); margin: 12px 4px 0 0;
  display: flex; align-items: center; gap: 10px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Link buttons ---------- */
.link {
  --c: var(--blue);
  display: flex; align-items: center; gap: 14px;
  min-height: 72px;
  padding: 12px 12px 12px 16px;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.35s;
}
/* shine sweep on hover */
.link::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, var(--shine), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.link:hover::before { left: 130%; }
.link:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  box-shadow: 0 8px 28px -8px var(--c);
}
.link:active { transform: scale(0.98); }

.link__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--c);
  box-shadow: 0 0 18px -4px var(--c);
}
.link__icon svg { width: 26px; height: 26px; fill: #fff; }

.link__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.link__text b { font-size: 17px; font-weight: 800; }
.link__text small { color: var(--muted); font-size: 14px; font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link__arrow {
  font-size: 28px; line-height: 1; color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.link:hover .link__arrow { transform: translateX(-4px); color: var(--c); }

/* brand colors */
.link--whatsapp  { --c: #25d366; }
.link--telegram  { --c: #229ed9; }
.link--facebook  { --c: #1877f2; }
.link--tiktok    { --c: #fe2c55; }
.link--tiktok .link__icon { background: #000; box-shadow: inset 0 0 0 1px #333, -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }
.link--instagram { --c: #e1306c; }
.link--instagram .link__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* main website button — blue in both themes */
.link--main {
  --c: var(--blue);
  min-height: 82px;
  padding: 16px 14px 16px 18px;
  color: #fff;
  background: linear-gradient(240deg, #0257fb, #0b3fae 60%, #071a4a);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 30px -8px var(--blue);
}
.link--main::before { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
.link--main::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 4px);
}
.link--main .link__icon { background: rgba(255, 255, 255, 0.15); box-shadow: none; }
.link--main .link__text b { font-size: 19px; }
.link--main .link__text small, .link--main .link__arrow { color: #cfe0ff; }
.link--main:hover .link__arrow { color: #fff; }

/* ---------- Icon row ---------- */
.icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.icons a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.icons svg { width: 20px; height: 20px; fill: var(--text); transition: fill 0.2s; }
.icons a:hover { transform: translateY(-4px) rotate(6deg); border-color: transparent; }
.icons a:hover svg { fill: #fff; }
.icons__wa:hover { background: #25d366; }
.icons__tg:hover { background: #229ed9; }
.icons__ig:hover { background: #e1306c; }
.icons__fb:hover { background: #1877f2; }
.icons__tt:hover { background: #fe2c55; }

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

/* =========================================================
   Responsive
   ========================================================= */

/* Very small phones (iPhone SE 1st gen, small Androids) */
@media (max-width: 360px) {
  body { padding: 64px 12px 24px; font-size: 16px; }
  .avatar { width: 104px; height: 104px; }
  .link { gap: 10px; min-height: 64px; padding: 10px 10px 10px 12px; }
  .link__icon { width: 42px; height: 42px; }
  .link__icon svg { width: 22px; height: 22px; }
  .link__text b { font-size: 16px; }
  .link--main .link__text b { font-size: 17px; }
  .link__text small { font-size: 13px; }
  .icons { gap: 10px; }
  .icons a { width: 42px; height: 42px; }
}

/* Tablets */
@media (min-width: 600px) {
  body { padding: 72px 24px 40px; }
  .card { max-width: 520px; }
  .avatar { width: 140px; height: 140px; }
  .theme-toggle { top: 20px; left: 20px; }
}

/* Desktop: profile card beside the links (profile on the right in RTL) */
@media (min-width: 960px) {
  body { align-items: center; padding: 48px 32px; }
  .card {
    max-width: 1020px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
  }
  .profile {
    position: sticky; top: 48px;
    margin: 0;
    padding: 40px 28px;
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
  }
  .profile::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), #22d3ee, transparent);
  }
  .avatar { width: 150px; height: 150px; }

  .links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .link--main, .label, .icons, .footer, .link--tiktok { grid-column: 1 / -1; }
  .label { margin-top: 10px; }
  .icons { justify-content: flex-start; margin-top: 10px; }
  .footer { text-align: right; margin-top: 4px; }
}

/* Short landscape phones: smaller avatar so links show sooner */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 959px) {
  body { padding-top: 24px; }
  .avatar { width: 90px; height: 90px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
