/* =========================================================
   AsilNetwork v24
   1) Yanıp sönen imleç sadece yazı alanlarında
   2) Giriş / Kayıt / Şifremi unuttum logosu büyütüldü
   3) Kayıt formu kayma düzeltmesi
   4) Kurallar (sayfa) tasarımı
   ========================================================= */

/* ---------- 1) İMLEÇ: sadece yazılan yerlerde ---------- */
html, body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"], [contenteditable=""],
.ck-editor__editable, .ck-content[contenteditable] { caret-color: #ffd45a; }

/* Arayüz parçalarında metin seçilip imleç yerleşmesin (içerik alanları hariç) */
.mc-auth, .mc-auth__card, .mc-hero, .mc-hero *, .mc-btn, .mc-pill,
.mc-auth__aside, .mc-auth__home, .mc-auth__logo, .pg-head, .pg-nav, .pg-cta,
nav, .navbar, header {
  -webkit-user-select: none; user-select: none;
}
/* Yazı alanları ve okunacak içerikler her zaman seçilebilir kalsın */
input, textarea, [contenteditable="true"], .ck-editor__editable,
.pg-body, .ck-content, .mc-auth input {
  -webkit-user-select: text; user-select: text;
}

/* ---------- 2) GİRİŞ / KAYIT / ŞİFREMİ UNUTTUM LOGOSU ---------- */
.mc-auth__logo {
  position: relative; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; margin: 4px 0 26px; text-align: center;
}
.mc-auth__logo::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 42%;
  width: clamp(220px, 26vw, 320px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,110,40,.42), rgba(139,92,246,.30) 52%, transparent 72%);
  filter: blur(34px); animation: mc-breathe 6s ease-in-out infinite;
}
.mc-auth__logo img {
  position: relative; z-index: 1;
  width: clamp(112px, 12vw, 158px); height: auto; max-width: none;
  animation: mc-float 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(245,179,1,.35));
}
.mc-auth__logo b {
  position: relative; z-index: 1;
  font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .06em;
  text-shadow: 0 4px 22px rgba(245,179,1,.35);
}
@media (max-width: 720px) {
  .mc-auth__logo { margin-bottom: 18px; }
  .mc-auth__logo img { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-auth__logo img, .mc-auth__logo::before { animation: none; }
}

/* ---------- 3) KAYIT FORMU: taşma / kayma düzeltmesi ---------- */
.mc-f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.mc-f, .mc-f2 > .mc-f { min-width: 0; }
.mc-f .mc-in { width: 100%; }
@media (max-width: 560px) {
  .mc-f2 { grid-template-columns: minmax(0, 1fr); }
}
/* Kural onay kutusu: yazı çok satıra inse de düzgün dursun */
.mc-check { align-items: flex-start; }
.mc-check span { margin-top: 1px; }
.mc-check > div { line-height: 1.5; }
.mc-check a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4) KURALLAR / SAYFA TASARIMI ---------- */
.pg { max-width: 860px; gap: 16px; }

/* Üst başlık */
.pg-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px 26px 26px;
  border: 1px solid var(--mc-line-2);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(245,179,1,.20), transparent 62%),
    linear-gradient(160deg, #1a1560, #0d0a2e 72%);
  box-shadow: 0 30px 70px -40px rgba(80,90,255,.6);
}
.pg-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16); pointer-events: none;
}
.pg-hero__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.pg-hero__ic {
  width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 18px;
  font-size: 24px; color: #1a1203; background: var(--mc-grad);
  box-shadow: 0 14px 30px -10px rgba(255,110,40,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.pg-hero h1 {
  margin: 0; font: 800 clamp(22px, 5vw, 32px)/1.15 var(--mc-display); color: #fff;
  overflow-wrap: anywhere; letter-spacing: -.01em;
}
.pg-hero small { display: block; margin-top: 6px; font: 600 13.5px var(--mc-body); color: var(--mc-mu); }
.pg-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pg-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px;
  font: 700 12px var(--mc-body); color: #e9e4ff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.pg-chip i { color: var(--mc-or-2); }

/* Hızlı gezinme (JS ile dolar) */
.pg-nav { display: none; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 18px;
  border: 1px solid var(--mc-line); background: rgba(14,11,40,.72); }
.pg-nav.is-on { display: flex; }
.pg-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  font: 700 12.5px var(--mc-body); color: var(--mc-mu); text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(140,120,255,.18); transition: .15s;
}
.pg-nav a b {
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px;
  font: 800 11px var(--mc-body); color: #1a1203; background: var(--mc-grad);
}
.pg-nav a:hover { color: #fff; border-color: var(--mc-or); transform: translateY(-1px); }

/* Bölüm kartları (numaralı) */
.pg { counter-reset: pgsec; }
.pg-sec { position: relative; scroll-margin-top: 92px; padding: 20px 20px 18px; border-radius: 20px;
  transition: border-color .2s, transform .2s; }
.pg-sec:hover { border-color: var(--mc-line-2); }
.pg-sec:not(.pg-sec--intro) { counter-increment: pgsec; padding-top: 24px; }
.pg-sec:not(.pg-sec--intro)::before {
  content: counter(pgsec); position: absolute; right: 16px; top: -12px;
  min-width: 30px; height: 30px; padding: 0 9px; display: grid; place-items: center; border-radius: 10px;
  font: 800 13px var(--mc-body); color: #1a1203; background: var(--mc-grad);
  box-shadow: 0 8px 18px -8px rgba(255,110,40,.8);
}
.pg-sec--intro { border-width: 1.5px; box-shadow: 0 0 0 4px rgba(245,179,1,.06); }
.pg-sec--intro .pg-body { font-size: 15px; color: #f1ecff; }

.pg-body h1, .pg-body h2, .pg-body h3, .pg-body h4 { font-size: 17px !important; }
.pg-body h2::before, .pg-body h3::before, .pg-body h4::before { height: 20px; }
.pg-body li { transition: background .15s, border-color .15s; }
.pg-body li:hover { background: rgba(255,255,255,.07); border-color: rgba(245,179,1,.35); }

/* Alt çağrı kartı */
.pg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(245,179,1,.4);
  background: linear-gradient(180deg, rgba(245,179,1,.12), rgba(245,179,1,.03));
}
.pg-cta__txt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-cta__txt i { font-size: 22px; color: var(--mc-or-2); }
.pg-cta__txt b { display: block; color: #fff; font: 800 15px var(--mc-body); }
.pg-cta__txt span { display: block; margin-top: 2px; color: var(--mc-mu); font: 600 12.5px var(--mc-body); }
.pg-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 44px; height: 44px; border: 0; cursor: pointer;
  display: none; place-items: center; border-radius: 14px; font-size: 15px; color: #1a1203; background: var(--mc-grad);
  box-shadow: 0 14px 30px -10px rgba(255,110,40,.8);
}
.pg-top.is-on { display: grid; }

@media (max-width: 560px) {
  .pg-hero { padding: 22px 18px 20px; border-radius: 20px; }
  .pg-hero__ic { width: 48px; height: 48px; font-size: 20px; border-radius: 15px; }
  .pg-sec { padding: 18px 14px 14px; }
  .pg-cta { padding: 16px; }
  .pg-cta__btns { width: 100%; }
  .pg-cta__btns .mc-btn { flex: 1; }
}

/* ---------- 5) PROFİL: avatar kapak resminin altında kalıyordu ---------- */
/* Kapak (position:relative) normal akıştaki gövdenin üstüne çiziliyordu,
   gövde yukarı kaydırılınca avatarın üst yarısı gizleniyordu. */
.pr-hero__cover { z-index: 0; }
.pr-hero__body { position: relative; z-index: 2; }
.pr-av { position: relative; z-index: 3; }

/* ---------- 6) ŞIK ONAY PENCERESİ (çıkış, silme vb.) ---------- */
html.asc-lock { overflow: hidden; }
.asc { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 18px; }
.asc[hidden] { display: none; }
.asc__bg { position: absolute; inset: 0; background: rgba(4, 3, 18, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.asc__box {
  position: relative; width: min(420px, 100%); padding: 30px 26px 24px; text-align: center; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--mc-line-2);
  background: radial-gradient(90% 70% at 50% 0%, var(--asc-glow, rgba(245,179,1,.18)), transparent 62%), linear-gradient(160deg, #1a1560, #0d0a2e 72%);
  box-shadow: 0 0 0 1px rgba(79,140,255,.12), 0 40px 90px -30px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .2s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.asc.is-open .asc__bg { opacity: 1; }
.asc.is-open .asc__box { opacity: 1; transform: none; }

.asc__ic {
  position: relative; width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 24px; font-size: 28px; color: #1a1203; background: var(--mc-grad);
  box-shadow: 0 16px 34px -12px rgba(255,110,40,.8), inset 0 1px 0 rgba(255,255,255,.4);
}
.asc__ic::after {
  content: ""; position: absolute; inset: -9px; border-radius: 30px; border: 1px dashed rgba(255,255,255,.22);
  animation: asc-spin 18s linear infinite;
}
@keyframes asc-spin { to { transform: rotate(360deg); } }
.asc__t { margin: 0; font: 800 21px/1.25 var(--mc-body); color: #fff; }
.asc__d { margin: 10px 0 0; font: 500 14.5px/1.65 var(--mc-body); color: var(--mc-mu); }
.asc__btns { display: flex; gap: 10px; margin-top: 24px; }
.asc__btn {
  flex: 1; height: 50px; padding: 0 14px; border: 0; border-radius: 15px; cursor: pointer;
  font: 800 14px var(--mc-body); letter-spacing: .01em; transition: transform .15s, box-shadow .15s, background .15s;
}
.asc__btn:active { transform: scale(.97); }
.asc__btn--no { color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--mc-line-2); }
.asc__btn--no:hover { background: rgba(255,255,255,.13); }
.asc__btn--yes { color: #1a1203; background: var(--mc-grad); box-shadow: 0 12px 28px -10px rgba(255,110,40,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.asc__btn--yes:hover { transform: translateY(-2px); }
.asc__btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(245,179,1,.4); }

/* Kırmızı/pembe: silme, bağlantı kesme */
.asc--danger { --asc-glow: rgba(255,79,163,.2); }
.asc--danger .asc__ic { color: #fff; background: linear-gradient(135deg, #ff4fa3, #fb7185); box-shadow: 0 16px 34px -12px rgba(255,79,163,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.asc--danger .asc__btn--yes { color: #fff; background: linear-gradient(135deg, #ff4fa3, #f43f5e); box-shadow: 0 12px 28px -10px rgba(244,63,94,.8), inset 0 1px 0 rgba(255,255,255,.3); }
/* Yeşil: gönderme onayları */
.asc--ok { --asc-glow: rgba(52,211,153,.18); }
.asc--ok .asc__ic { color: #052e1f; background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 16px 34px -12px rgba(16,185,129,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.asc--ok .asc__btn--yes { color: #052e1f; background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 12px 28px -10px rgba(16,185,129,.7), inset 0 1px 0 rgba(255,255,255,.35); }

/* Telefon: alttan açılan sheet */
@media (max-width: 560px) {
  .asc { align-items: flex-end; padding: 0; }
  .asc__box { width: 100%; border-radius: 28px 28px 0 0; padding: 28px 20px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .asc__box::before { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(255,255,255,.2); }
}
@media (prefers-reduced-motion: reduce) {
  .asc__bg, .asc__box { transition: none; }
  .asc__ic::after { animation: none; }
}
