/* ============================================================
   profil.css — SADECE profil.html İÇİN.
   base.css + components.css'ten SONRA yüklenir.
   ============================================================ */

.profile-wrap{ max-width:1120px; margin:0 auto; padding:0 0 50px; }

.cover{ height:330px; border-radius:0 0 var(--radius-lg) var(--radius-lg); overflow:hidden; position:relative; margin-bottom:0; }
.cover img{ width:100%; height:100%; object-fit:cover; }

.profile-header{
  background:var(--surface); border:1px solid var(--border); border-top:none;
  border-radius:0 0 var(--radius-lg) var(--radius-lg); padding:20px 24px 20px;
  box-shadow:var(--shadow-card); margin-bottom:16px; position:relative;
}
.avatar-row{ display:flex; align-items:center; justify-content:flex-end; min-height:60px; margin-bottom:14px; }
.profile-avatar{ width:100%; height:100%; border-radius:50%; border:5px solid var(--surface); overflow:hidden; flex-shrink:0; background:var(--surface-alt); box-sizing:border-box; }
.profile-avatar-wrap{ position:absolute; top:-75px; left:24px; width:140px; height:140px; padding:4px; border-radius:50%; flex-shrink:0; box-sizing:border-box; cursor:pointer; transition:transform .15s ease; }
.profile-avatar-wrap:hover{ transform:scale(1.03); }
.profile-avatar-wrap.cinsiyet-erkek{ background: linear-gradient(135deg, #4F7CFF, #38BDF8); }
.profile-avatar-wrap.cinsiyet-kadin{ background: linear-gradient(135deg, #FF6FA5, #C084FC); }
.profile-avatar-wrap.cinsiyet-belirtilmemis{ background: linear-gradient(135deg, #8B5CF6, #4F7CFF); }
.profile-avatar img{ width:100%; height:100%; object-fit:cover; }

.profile-name-block h1{ font-size:1.4rem; font-weight:800; margin-bottom:2px; }
.profile-name-block .handle{ font-size:0.86rem; color:var(--text-dim); }
.profile-bio{ font-size:0.9rem; color:var(--text-muted); max-width:560px; margin:12px 0 16px; line-height:1.6; }

.stats-row{ display:flex; gap:26px; padding-top:14px; border-top:1px solid var(--border); }
.stat-block{ text-align:left; }
.stat-block b{ font-size:1.05rem; font-weight:800; display:block; }
.stat-block span{ font-size:0.78rem; color:var(--text-dim); }

/* ---- tabs ---- */
.profile-tabs{
  display:flex; gap:6px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:6px; margin-bottom:20px; box-shadow:var(--shadow-card);
  overflow-x:auto;
}
.ptab{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:9px; font-size:0.85rem; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.ptab .icon{ width:17px; height:17px; }
.ptab:hover{ background:var(--surface-alt); }
.ptab.active{ background:var(--surface-alt); color:var(--accent); }

.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* ---- gonderiler tab: iki sütun ---- */
.gonderiler-grid{ display:grid; grid-template-columns:300px 1fr; gap:20px; align-items:start; }
.profile-side{ position:sticky; top:80px; display:flex; flex-direction:column; gap:14px; }
.side-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-card); }
.side-card h4{ display:flex; align-items:center; justify-content:space-between; font-size:0.88rem; font-weight:700; margin-bottom:12px; }
.side-card h4 a{ font-size:0.72rem; color:var(--accent); font-weight:700; }
.side-bio-list{ display:flex; flex-direction:column; gap:9px; }
.side-bio-row{ display:flex; align-items:center; gap:10px; font-size:0.8rem; color:var(--text-muted); }
.side-bio-row .icon{ width:16px; height:16px; color:var(--text-dim); flex-shrink:0; }
.side-media-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.side-media-grid img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:4px; }
.side-friends-row{ display:flex; }
.side-friends-row img{ width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--surface); margin-left:-9px; }
.side-friends-row img:first-child{ margin-left:0; }
.side-friends-count{ font-size:0.78rem; color:var(--text-dim); margin-top:10px; }

.feed-col{ min-width:0; }

/* ---- yorum önizlemesi ---- */
.comment-preview{ display:flex; align-items:flex-start; gap:9px; padding-top:10px; margin-top:2px; border-top:1px solid var(--border); }
.comment-preview img{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; margin-top:2px; }
.comment-bubble{ background:var(--surface-alt); border-radius:14px; padding:8px 12px; font-size:0.82rem; }
.comment-bubble b{ font-weight:700; margin-right:5px; }
.comment-more{ font-size:0.76rem; color:var(--text-dim); font-weight:600; margin-top:8px; display:block; }
.comment-more:hover{ color:var(--accent); }

/* ---- medya ızgarası (instagram tarzı) ---- */
.media-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.media-tile{ position:relative; aspect-ratio:1; overflow:hidden; background:var(--surface-alt); border-radius:4px; }
.media-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.media-tile:hover img{ transform:scale(1.06); }
.media-tile .tile-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0.45); display:flex; align-items:center; justify-content:center; gap:18px; opacity:0; transition:opacity .2s ease; }
.media-tile:hover .tile-overlay{ opacity:1; }
.tile-overlay .stat{ display:flex; align-items:center; gap:6px; color:#fff; font-weight:700; font-size:0.9rem; }
.tile-overlay .stat .icon{ width:18px; height:18px; }
.video-badge{ position:absolute; top:8px; right:8px; color:#fff; z-index:2; }
.video-badge .icon{ width:16px; height:16px; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }

.media-tile.reels-tile{ aspect-ratio:9/16; }
.reels-tile .oynat-rozeti{ position:absolute; top:8px; right:8px; color:#fff; z-index:2; }
.reels-tile .oynat-rozeti .icon{ width:16px; height:16px; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.reels-tile .tile-overlay{
  opacity:1; background:linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.75) 100%);
  flex-direction:column; align-items:flex-start; justify-content:flex-end; gap:4px; padding:8px;
}
.reels-tile .tile-overlay .stat{ font-size:0.76rem; gap:4px; }
.reels-tile .tile-overlay .stat .icon{ width:14px; height:14px; }
.reels-tile .reel-sil-btn{
  position:absolute; top:8px; left:8px; z-index:3;
  width:26px; height:26px; border-radius:50%;
  background:rgba(0,0,0,0.55); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
}
.reels-tile .reel-sil-btn .icon{ width:14px; height:14px; }

/* ---- hakkında ---- */
.about-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; box-shadow:var(--shadow-card); }
.about-row{ display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); }
.about-row:last-child{ border-bottom:none; }
.about-row .icon{ color:var(--text-dim); }
.about-row b{ font-size:0.88rem; font-weight:600; display:block; }
.about-row span{ font-size:0.78rem; color:var(--text-dim); }

/* ---- arkadaşlar ---- */
.friends-grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
.friend-card{ background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:8px 4px; text-align:center; box-shadow:var(--shadow-card); display:block; color:inherit; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.friend-card:hover{ transform:translateY(-2px); box-shadow:0 8px 20px -10px rgba(0,0,0,0.15); }
.friend-card img{ width:36px; height:36px; border-radius:50%; object-fit:cover; margin:0 auto 6px; }
.friend-card b{ font-size:0.7rem; display:block; margin-bottom:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.friend-card span{ font-size:0.6rem; color:var(--text-dim); }
.avatar-actions{ display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:10px; margin-left:auto; }
@media (max-width:900px){
  .gonderiler-grid{ grid-template-columns:1fr; }
  .profile-side{ position:static; order:2; }
  .feed-col{ order:1; }
}
@media (max-width:700px){
  .cover{ height:150px; }
  .profile-avatar{ width:96px; height:96px; border-width:4px; }
  .avatar-row{ margin-top:-40px; flex-wrap:wrap; }
.avatar-actions{ display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:10px; margin-left:auto; }
  .avatar-actions .btn{ flex:1; padding:6px 6px; }
  #mesajGonderBtn{ flex:0 0 auto; font-size:0; padding:10px 12px; gap:0; }
  .stats-row{ gap:18px; }
  .media-grid, .friends-grid{ gap:6px; }
 .friends-grid{ grid-template-columns:repeat(4,1fr); gap:8px; }
}


/* ---- Profili düzenle modalı — tasarımlı hâli ---- */
.duzenle-modal-head{ text-align:center; margin-bottom:24px; }
.duzenle-modal-head .modal-icon{ margin-bottom:12px; }
.duzenle-modal-head h3{ font-size:1.2rem; font-weight:800; margin-bottom:4px; }
.duzenle-modal-head p{ font-size:0.8rem; color:var(--text-dim); }

.duzenle-section-title{
  font-size:0.68rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-dim); margin:20px 0 12px;
}
.duzenle-section-title:first-of-type{ margin-top:0; }

.duzenle-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.duzenle-field{ margin-bottom:14px; }
.duzenle-field:last-child{ margin-bottom:0; }
.duzenle-field label{
  font-size:0.78rem; font-weight:600; color:var(--text-muted);
  display:flex; align-items:center; gap:6px; margin-bottom:7px;
}
.duzenle-field label .icon{ width:14px; height:14px; color:var(--text-dim); flex-shrink:0; }

.duzenle-field input[type="text"],
.duzenle-field input[type="date"],
.duzenle-field select,
.duzenle-field textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1.5px solid var(--border-strong);
  background:var(--surface-alt); color:var(--text); font-family:inherit; font-size:0.87rem;
  box-sizing:border-box; transition:border-color .15s ease, background .15s ease;
}
.duzenle-field input:focus, .duzenle-field select:focus, .duzenle-field textarea:focus{
  outline:none; border-color:var(--accent); background:var(--surface);
}
.duzenle-field select{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8D91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:16px;
  padding-right:36px; cursor:pointer;
}
.duzenle-field textarea{ resize:vertical; }
.duzenle-char-count{ font-size:0.7rem; color:var(--text-dim); text-align:right; margin-top:5px; }

@media (max-width:700px){
  .avatar-row{ justify-content:flex-start; padding-top:60px; flex-wrap:wrap; gap:10px; }
  .profile-avatar-wrap{ position:static; margin-top:-96px; }
  .avatar-actions{ margin-left: 7px; margin-top: 8px; }
}

@media (max-width:700px){
  .profile-side{ display:none; }
  .profile-name-block h1{ font-size:1.15rem; }
  .profile-name-block .handle{ font-size:0.8rem; }
  .profile-bio{ font-size:0.85rem; }
  .stats-row{ gap:16px; }
  .stat-block b{ font-size:0.95rem; }
  .stat-block span{ font-size:0.72rem; }
  .profile-tabs{ padding:5px; }
  .ptab{ padding:9px 12px; font-size:0.8rem; }
  .ptab span{ display:none; }
  .profile-avatar-wrap {
    width: 104px;
    height: 104px;

}
}



/* ---- Profil - Sözlük sekmesi ---- */
.profil-sozluk-liste{ display:flex; flex-direction:column; gap:10px; }
.profil-sozluk-oge{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:14px 16px; box-shadow:var(--shadow-card); }
.profil-sozluk-oge a.psz-baslik{ font-weight:700; font-size:0.95rem; color:var(--text); display:block; margin-bottom:4px; }
.profil-sozluk-oge a.psz-baslik:hover{ color:var(--accent); }
.psz-metin{ font-size:0.85rem; color:var(--text-dim); line-height:1.5; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.psz-alt{ display:flex; align-items:center; gap:14px; font-size:0.76rem; color:var(--text-dim); }
.psz-oy{ display:inline-flex; align-items:center; gap:4px; font-weight:700; }
.psz-oy .icon{ width:14px; height:14px; }
.psz-daha-fazla-btn{ display:block; width:100%; margin-top:10px; padding:11px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); color:var(--accent); font-weight:700; font-size:0.85rem; cursor:pointer; transition:background 0.15s; }
.psz-daha-fazla-btn:hover{ background:var(--surface-hover, var(--border)); }
