/* ── Orden Medya Bio — herkese açık sayfa görünümü ────────────────
   Renkler config'ten JS ile .biyo kök öğesine değişken olarak yazılır. */

/* Genişlik hesabına iç boşluk ve kenarlık dahil olsun — yoksa %100 genişlikli
   satırlar telefonda ekrandan taşar ve tarayıcı tüm sayfayı küçültür. */
.biyo-sahne, .biyo-sahne *, .biyo-sahne *::before, .biyo-sahne *::after,
.biyo-modal, .biyo-modal * { box-sizing: border-box; }

.biyo-sahne {
  --bio-radius: 18px;
  min-height: 100%;
  color: var(--bio-text, #fff);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arka plan (gradient / düz / görsel) sahnenin arkasına sabitlenir */
.biyo-arka {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bio-bg, #0b0b12);
  background-size: cover;
  background-position: center;
}
.biyo-arka::after { /* görsel arka planı okunur kılan hafif karartma */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bio-perde, transparent);
}

.biyo {
  width: 100%;
  max-width: 520px;
  padding: 56px 20px 90px;
  margin: 0 auto;
}

/* ── Profil ── */
.biyo-profil { text-align: center; margin-bottom: 26px; }
.biyo-avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
.biyo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* daireyi her zaman tam kaplar; konum/zoom inline stille ayarlanır */
  display: block;
}
.biyo-avatar.bos {
  display: grid;
  place-items: center;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--bio-text, #fff);
}
.biyo-ad {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.biyo-tik { width: 20px; height: 20px; color: #3ea6ff; flex: none; }
.biyo-kullanici { opacity: 0.62; font-size: 14px; margin-top: 3px; }
.biyo-biyo {
  margin: 12px auto 0;
  max-width: 400px;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.82;
}

/* ── Sosyal ikon sırası ── */
.biyo-sosyal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 4px;
}
.biyo-sosyal a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.18s, background 0.18s;
}
.biyo-sosyal a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.16); }
.biyo-sosyal svg { width: 20px; height: 20px; }

/* ── Öğeler ── */
.biyo-liste { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }

.biyo-bolum {
  text-align: center;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 14px 0 2px;
}

/* Link / video buton temeli — buton stili değişkenlerden gelir */
.biyo-oge {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--bio-radius, 18px);
  background: var(--bio-btn-bg, rgba(255, 255, 255, 0.06));
  color: var(--bio-btn-text, #fff);
  border: 1px solid var(--bio-btn-border, rgba(255, 255, 255, 0.14));
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-backdrop-filter: var(--bio-btn-blur, none);
  backdrop-filter: var(--bio-btn-blur, none);
}
.biyo-oge:hover { transform: translateY(-2px) scale(1.008); filter: brightness(1.06); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.biyo-oge.vurgu { box-shadow: 0 0 0 1px var(--bio-vurgu, #e2471f), 0 8px 30px var(--bio-vurgu-golge, rgba(226, 71, 31, 0.35)); }

.biyo-oge-ikon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.biyo-oge-ikon svg { width: 20px; height: 20px; }
.biyo-oge-ikon img { width: 100%; height: 100%; object-fit: cover; }
.biyo-oge-metin { flex: 1; min-width: 0; }
.biyo-oge-metin b { display: block; font-weight: 600; }
.biyo-oge-metin span { display: block; font-weight: 400; font-size: 12.5px; opacity: 0.62; margin-top: 2px; }
.biyo-oge-ok { flex: none; opacity: 0.5; }

/* Video öğesi — kapak + oynat rozeti */
.biyo-oge.video { padding: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; }
.biyo-video-kapak {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111 var(--bio-kapak, none) center / cover no-repeat;
  display: grid;
  place-items: center;
}
.biyo-video-kapak::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55)); }
.biyo-oynat {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.biyo-oynat svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.biyo-video-alt { padding: 13px 16px 15px; }

.biyo-alt {
  text-align: center;
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.4;
}
.biyo-alt a { color: inherit; text-decoration: none; }

/* ── Video oynatıcı penceresi ── */
.biyo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.biyo-modal.acik { display: flex; }
.biyo-modal-ic {
  position: relative;
  width: min(340px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 88vh;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.biyo-modal-ic iframe { width: 100%; height: 100%; border: 0; }
.biyo-kapat {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
}

@media (max-width: 380px) {
  .biyo { padding-top: 40px; }
}

/* ── Yönetim önizlemesi: sürükleme tutamacı ve pasif satırlar ── */
.biyo-pasif { opacity: 0.4; }

.biyo-tut {
  flex: none;
  width: 34px;
  height: 34px;
  margin-right: -6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: currentColor;
  opacity: 0.55;
  cursor: grab;
  touch-action: none; /* telefonda sürüklerken sayfa kaymasın */
  transition: opacity 0.15s, background 0.15s;
}
.biyo-tut:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.biyo-tut:active { cursor: grabbing; }
.biyo-tut svg { width: 18px; height: 18px; }

/* Bölüm başlığı: tutamaç sağda, metin ortada kalsın */
.biyo-bolum { position: relative; }
.yonetim .biyo-bolum { padding: 0 40px; }
.biyo-bolum .biyo-tut { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }

/* Video kartı: tutamaç kapak üstünde, sağ üst köşede */
.biyo-oge.video { position: relative; }
.biyo-oge.video .biyo-tut {
  position: absolute; top: 8px; right: 8px; margin: 0;
  background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0.9;
}

/* Yönetimde satır hover'da zıplamasın (sürüklerken titremesin) */
.yonetim .biyo-oge:hover { transform: none; }
