/* ============================================================
   DOSYA SORUMLULUGU — features-02-profile-hero-avatar-crop.css
   ------------------------------------------------------------
   NE YAPAR   : Profil hero, avatar, foto secim sayfasi ve kirpma ekrani.
   KAYNAK     : v3.12.0'da bolundu — kurallar birebir tasindi,
                hicbir kural yeniden yazilmadi veya siralanmadi.
   SIRA       : index.html'deki <link> sirasi kaskadi belirler.
                Bu dosyanin sirasini DEGISTIRME.
   ------------------------------------------------------------
   Tam dosya listesi ve sira: BAGIMLILIK-HARITASI.md
   ============================================================ */

/* ── PROFILE HERO ─────────────────────────────────────────── */
.ph {
  position: relative;
  margin: 12px 14px 10px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  background: #1C0E05;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transform: translateZ(0);
  will-change: transform;
}
.ph-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(232,93,0,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(180,60,0,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(120,40,0,0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0e0602 0%, #1C0E05 40%, #241005 100%);
  opacity: 1; transition: opacity 0.5s;
}
.ph-mesh.hidden { opacity: 0; }
.ph-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  filter: blur(22px) brightness(0.32) saturate(1.4);
  transform: scale(1.15);
  transition: opacity 0.5s;
  pointer-events: none;
}
.ph-bg.visible { opacity: 1; }
.ph-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.70) 100%);
  pointer-events: none;
}
.ph-content {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 24px 20px 20px;
}

/* ── AVATAR ── */
.ph-av-wrap {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 130px; height: 130px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6)) drop-shadow(0 2px 8px rgba(232,93,0,0.3));
  flex-shrink: 0;
}
.ph-av-wrap:active .ph-av-frame { transform: scale(0.94); }
.ph-av-wrap:active .ph-badge    { transform: scale(0.88); }
.ph-av-frame {
  width: 130px; height: 130px;
  aspect-ratio: 1;
  position: relative;
  background: #1a1a2e;
  border-radius: 32px;
  overflow: hidden;
  will-change: transform;
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.ph-av-img {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 32px;
}
.ph-av-letter {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 46px; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}
.ph-av-spinner {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center;
  border-radius: 32px;
}
.ph-av-spinner.active { display: flex; }
.ph-spinner-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  animation: phSpin 0.7s linear infinite;
}
@keyframes phSpin { to { transform: rotate(360deg); } }
.ph-badge {
  position: absolute; bottom: -5px; right: -5px;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  border: 2.5px solid #0d0d1a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(232,93,0,0.5);
  transition: transform 0.15s;
}
.ph-badge.pulse { animation: phBadgePulse 2s ease 3; }
@keyframes phBadgePulse {
  0%,100% { box-shadow: 0 3px 10px rgba(232,93,0,0.5); }
  50%     { box-shadow: 0 0 0 8px rgba(232,93,0,0.18), 0 3px 10px rgba(232,93,0,0.5); }
}
.ph-name {
  font-size: 24px; font-weight: 900; color: #fff;
  letter-spacing: -0.8px; line-height: 1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
/* bio — strict 2-line cap via max-height */
.ph-bio {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  font-style: italic; font-family: var(--font);
  text-align: center; line-height: 1.5;
  background: transparent; border: none;
  border-bottom: 1.5px solid transparent;
  outline: none; resize: none; cursor: text;
  width: calc(100% - 48px);
  height: 39px;
  max-height: 39px;
  overflow: hidden;
  text-transform: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.ph-bio:focus {
  border-bottom: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.ph-bio::placeholder { color: rgba(255,255,255,0.3); }

/* ── PHOTO BOTTOM SHEET ───────────────────────────────────── */
.prof-sheet-overlay {
  display:none; position:fixed; inset:0; z-index:500;
  background:rgba(0,0,0,0.45);
  align-items:flex-end; justify-content:center;
  backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
}
.prof-sheet-overlay.active { display:flex; }
.prof-sheet {
  width:100%; max-width:430px;
  background:var(--bg); border-radius:24px 24px 0 0;
  padding-bottom:env(safe-area-inset-bottom,0);
  box-shadow:0 -8px 40px rgba(0,0,0,0.18);
  animation:sheetUp 0.28s cubic-bezier(0.32,0.72,0,1);
}
.prof-sheet-handle {
  width:36px; height:4px; background:var(--border2);
  border-radius:99px; margin:10px auto 0;
}
.prof-sheet-title {
  font-size:17px; font-weight:800; color:var(--text);
  text-align:center; padding:14px 16px 2px; letter-spacing:-0.3px;
}
.prof-sheet-hint {
  font-size:11px; color:var(--text3); font-weight:500;
  text-align:center; padding:0 16px 14px;
}
.prof-sheet-btn {
  width:calc(100% - 32px); margin:0 16px 10px; height:50px;
  border-radius:var(--radius-sm);
  background:var(--bg3); border:1px solid var(--border2);
  display:flex; align-items:center; gap:12px; padding:0 18px;
  font-size:15px; font-weight:600; color:var(--text);
  transition:background 0.15s,transform 0.1s; cursor:pointer;
}
.prof-sheet-btn:active { background:var(--bg4); transform:scale(0.98); }
.prof-sheet-btn-icon { font-size:20px; }
.prof-sheet-btn-danger { color:var(--danger); }
.prof-sheet-btn-cancel {
  justify-content:center; color:var(--text3);
  background:transparent; border-color:transparent;
  margin-bottom:16px;
}

/* ── CROP SHEET ───────────────────────────────────────────── */
.prof-crop-wrap {
  padding:12px 16px 8px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.prof-crop-viewport {
  width:260px; height:260px;
  border-radius:60px;
  position:relative; overflow:hidden;
  background:#111;
  cursor:grab;
  box-shadow:0 4px 28px rgba(232,93,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  contain: layout paint;
  touch-action: none;
}
.prof-crop-viewport:active { cursor:grabbing; }
#prof-crop-canvas {
  position:absolute; top:0; left:0;
  width:100%; height:100%;
  pointer-events:none;
}
.prof-crop-frame-ring {
  position:absolute; inset:0;
  border-radius:60px;
  border:2px solid var(--orange);
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.prof-crop-controls {
  display:flex; align-items:center; gap:10px;
  width:260px; padding:0 2px;
}
.prof-zoom-slider {
  flex:1; height:4px;
  -webkit-appearance:none; appearance:none;
  background:var(--border2); border-radius:99px; outline:none; cursor:pointer;
}
.prof-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px; border-radius:50%;
  background:var(--orange);
  box-shadow:0 2px 8px rgba(232,93,0,0.5);
  cursor:pointer;
}
.prof-zoom-slider::-moz-range-thumb {
  width:18px; height:18px; border-radius:50%;
  background:var(--orange); border:none;
  box-shadow:0 2px 8px rgba(232,93,0,0.5); cursor:pointer;
}
.prof-crop-hint {
  font-size:11px; color:var(--text3); font-weight:500; text-align:center;
}

