/* Herkese açık link-in-bio sayfası (/kullanıcıadı). Sitenin menüsü olmayan
   bağımsız bir sayfadır; ortak tasarım değişkenleri ve kullanıcı sayfalarındaki
   önizlemeyle paylaşılan içerik stilleri (.bio-head, .bio-links…) web/static/css/components.css'tedir. */
.bio-body { min-height: 100vh; min-height: 100dvh; }
/* Temasız sayfa (tema okunamadıysa) sitenin renkleriyle; temalı sayfanın zemini temadandır (components.css). */
.bio-body:not(.bio-themed) {
  background:
    radial-gradient(1200px 480px at 50% -120px, var(--primary-soft), transparent 70%),
    var(--bg);
}
.bio {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
.profile-follow {
  margin: 16px 0 0;
}
/* Profili paylaş: sayfa sütununun sağ üst köşesi. Kapağın veya temanın zemini
   üstünde de okunsun diye temadan bağımsız, opak açık bir zemini vardır. */
.profile-share { position: absolute; top: 12px; right: 16px; z-index: 2; }
.profile-share-button {
  /* Ortak düğmenin renk değişkenleri (components.css): temadan bağımsız. */
  --btn-bg: #ffffff; --btn-fg: #1b1c1c; --btn-border: transparent;
  --btn-bg-hover: #f1efef; --btn-border-hover: transparent; --btn-fg-hover: #1b1c1c;
  height: 36px; padding: 0 14px; border-radius: 999px;
  box-shadow: 0 1px 3px rgb(0 0 0 / .18);
  font-size: 14px; font-weight: 600;
}
.profile-share-button:focus-visible { outline: 2px solid #1b1c1c; outline-offset: 2px; }
.profile-share-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-follow-button {
  min-width: 9rem;
}
.profile-follow-error {
  margin: 12px auto 0;
  max-width: 100%;
}

/* Alt bilgi: üstte bağlantılar, altta dil ve tema seçicileri (iki ayrı satır; dar ekranda
   seçiciler bağlantıların arasına karışmaz). */
.bio-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.bio-foot-links, .bio-foot-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}
.bio-foot-tools { gap: 8px; }
/* "Kendi Linker'ını oluştur": sayfanın vurgu renginde kapsül düğme (kayıt). */
.bio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary-solid, #4f46e5);
  /* Yazı her zaman beyazdır; üzerine gelince zemin koyulaşır (açılmaz), beyaz yazı okunur kalır. */
  color: #ffffff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
}
.bio-cta:hover, .bio-cta:focus-visible {
  color: #ffffff;
  background: color-mix(in srgb, var(--primary-solid, #4f46e5) 82%, #000000);
}
.bio-cta:focus-visible { outline: 2px solid var(--ring, #4f46e5); outline-offset: 3px; }
.bio-brand {
  font-weight: 700;
  color: var(--text);
}
/* Alt bilgi bağlantıları soluk yazıdır; "Kendi Linker'ını oluştur" düğmesi hariç
   (vurgu zemininde vurgunun okunur yazısıyla kalır: --primary-text). */
.bio-foot a:not(.bio-brand, .bio-cta) {
  color: var(--muted);
}
.bio-foot a:not(.bio-brand, .bio-cta):hover {
  color: var(--text);
}
/* "Engelle": bağlantılar gibi görünen düğme (oturum açmış ziyaretçi). */
/* Genel button kuralları (yükseklik, kalınlık, gölge, üzerine gelince zemin)
   değişkenlerle ve sıfırlanarak ezilir: "Profili şikâyet et" ile aynı görünür. */
button.bio-foot-button {
  --btn-bg: transparent;
  --btn-bg-hover: transparent;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-fg: var(--muted);
  --btn-fg-hover: var(--text);
  display: inline;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  box-shadow: none;
}
button.bio-foot-button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; box-shadow: none; }

/* "Mobilde görüntüle" QR kartı: yalnızca geniş ekranda ve hassas işaretçide
   (masaüstü) sağ altta sabit durur; telefon ve tablette gösterilmez. QR'ın
   zemini temadan bağımsız beyazdır (okunabilirlik). */
.bio-mobile-qr { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .bio-mobile-qr {
    position: fixed; right: 24px; bottom: 24px; z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 12px 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
  }
}
.bio-mobile-qr-code { display: block; line-height: 0; border-radius: 8px; overflow: hidden; }
.bio-mobile-qr-code svg { display: block; width: 112px; height: 112px; }
.bio-mobile-qr-text { color: var(--text-2); font-size: 12px; font-weight: 600; }

/* Link kartının menüsü (details/summary; profile/links.js kapatmayı ve
   kopyala/paylaş/şikayet et'i ekler). Düğme kartın sağ üstündedir; panel
   altında açılır ve sonraki kartların üstünde durur. */
.bio-card-menu { position: absolute; top: calc(50% - 18px); right: 10px; z-index: 2; } /* 36px düğme dikeyde ortada; transform yok (açık menünün sabit katmanı bozulmasın) */
/* Açık menü diğer kartların menü düğmelerinin üstünde durur (aynı katmandalar;
   sonra gelen kart üstte çizilirdi). */
.bio-card-menu[open] { z-index: 20; }
/* Gömülü içerikte menü oynatıcının üstündeki satırın sağındadır. */
.bio-embed > .bio-card-menu { top: 0; right: 0; }
/* Ürün kartında menü sağ üsttedir (kart yüksek; ad ve açıklamanın yanında). */
.bio-product > .bio-card-menu { top: 8px; right: 8px; }
/* Ürün grubunun kutucuklarında menü görselin sağ üst köşesindedir. Şerit yatay
   kaydığı için (overflow) altında açılan panel kesilirdi: panel ekranın
   ortasında sabit durur. */
.bio-tile > .bio-card-menu { top: 6px; right: 6px; }
.bio-carousel .bio-card-menu-panel {
  position: fixed; top: 50%; left: 50%; right: auto; translate: -50% -50%;
  max-height: calc(100dvh - 32px); overflow-y: auto; z-index: 30;
}
.bio-card-menu summary, .bio-card-menu-button {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow-sm); cursor: pointer; list-style: none;
}
.bio-card-menu summary::-webkit-details-marker { display: none; }
/* Menü açıkken sayfanın geri kalanını kaplayan görünmez katman: dışarı yapılan
   tıklama alttaki linki açmaz, yalnızca menüyü kapatır. Katman summary'nin
   parçası olduğu için ona tıklamak details'i JS olmadan da kapatır. Panel
   DOM'da sonra geldiği için katmanın üstünde kalır. */
.bio-card-menu[open] summary::before {
  content: "";
  position: fixed; inset: 0;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.bio-card-menu summary:hover, .bio-card-menu[open] summary { color: var(--primary); border-color: var(--primary); }
.bio-card-menu-button { cursor: default; }
.bio-card-menu summary svg, .bio-card-menu-button svg { width: 18px; height: 18px; fill: currentColor; }
.bio-card-menu-panel {
  position: absolute; top: 44px; right: 0; display: grid; gap: 10px; width: 240px; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md);
  font-size: 14px; text-align: left;
}
.bio-card-menu-qr { display: block; justify-self: center; width: 148px; height: 148px; border-radius: 8px; background: #fff; }
.bio-card-menu-hint { margin: -4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.bio-card-menu-target { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }
.bio-card-menu-url { display: block; margin-top: 2px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.bio-card-menu-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bio-card-menu-list a, .bio-card-menu-list button {
  --btn-bg: transparent; --btn-bg-hover: var(--surface-2); --btn-border: transparent; --btn-border-hover: transparent;
  --btn-fg: var(--text); --btn-fg-hover: var(--text);
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 36px;
  padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-weight: 500; text-align: left; text-decoration: none; box-shadow: none; cursor: pointer;
}
.bio-menu-icon {
  flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--text-2);
}
.bio-card-menu-list .danger-text .bio-menu-icon { color: currentColor; }
.bio-card-menu-list a:hover, .bio-card-menu-list button:hover, .bio-card-menu-list a:focus-visible, .bio-card-menu-list button:focus-visible { background: var(--surface-2); }
.bio-card-menu-list .danger-text { color: var(--danger); }
.bio-card-menu-notice { margin: 0; color: var(--text-2); font-size: 12px; }
.bio-card-menu-notice:empty { display: none; }

/* Şikayet dialogu (native <dialog>). */
.bio-report {
  width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md);
}
.bio-report::backdrop { background: rgb(0 0 0 / .45); }
.bio-report h2 { margin: 0; font-size: 18px; }
.bio-report-reasons { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.bio-report-reasons legend { margin-bottom: 6px; font-weight: 600; }
.bio-report textarea { width: 100%; }
.bio-report .form-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Kaydırınca yükleme nöbetçisi (profile/more.js): JS'siz veya yükleme
   başarısızken "Tüm linkleri göster" bağlantısı; yüklenirken bağlantının
   yerinde dönen bir gösterge. */
.bio-more { position: relative; min-height: 32px; text-align: center; }
.bio-more-link { color: inherit; opacity: .7; font-size: 14px; }
.bio-more.is-loading .bio-more-link { visibility: hidden; }
.bio-more.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .5;
  animation: bio-more-spin .8s linear infinite;
}
@keyframes bio-more-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bio-more.is-loading::after { animation-duration: 2.4s; } }

/* Takipçi / takip sayıları kişinin listelerini açar. */
.bio-stats a { color: inherit; text-decoration: none; }
.bio-stats a:hover, .bio-stats a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Takip düğmesinin yanındaki zil: kişinin yeni linklerinin bildirimi. */
.profile-follow { display: flex; justify-content: center; align-items: center; gap: 8px; }
.profile-bell svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-bell.is-on { color: var(--primary); }
.profile-bell.is-on svg path:not(.profile-bell-off) { fill: currentColor; fill-opacity: .15; }
.profile-bell.is-on .profile-bell-off { display: none; }

/* Takip listeleri (profile/network). */
.bio-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--text); font-weight: 500; text-decoration: none; }
.bio-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.bio-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bio-network-head { margin-top: 16px; text-align: center; }
.bio-network-head .bio-name { margin-top: 10px; font-size: 20px; }
.profile-avatar.bio-network-avatar { width: 56px; height: 56px; margin: 0 auto; font-size: 1.4rem; }
.bio-network-tabs { display: flex; gap: 4px; margin: 20px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.bio-network-tabs a { flex: 1; padding: 8px 12px; border-radius: 999px; text-align: center; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.bio-network-tabs a:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.bio-network-tabs a[aria-current="page"] { background: var(--primary-solid); color: var(--primary-text); }
.bio-people-wrap { margin-top: 16px; }
.bio-people { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bio-person {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .12s;
}
.bio-person:hover, .bio-person:focus-visible { border-color: var(--primary); }
.bio-person-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bio-person-initial { display: grid; place-items: center; font-weight: 650; color: var(--primary-on-soft); background: var(--primary-soft); }
.bio-person-text { display: flex; flex-direction: column; min-width: 0; }
.bio-person-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-person-username { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-people-more { margin: 16px 0 0; text-align: center; font-size: 14px; }
.bio-people-error { margin: 16px 0 0; text-align: center; }
