/* ============================================================
   PlayHub — Profil & Profil düzenleme stilleri
   (kartlar/carousel home.css'ten; iskelet playhub.css'ten)
   ============================================================ */

/* sayfa başlığı */
.ph-pagetitle{font-size:34px;font-weight:800;margin-bottom:22px;display:flex;align-items:center;gap:14px}
.ph-pagetitle .pt-back{width:44px;height:44px;border-radius:12px;background:var(--panel);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--txt);text-decoration:none;transition:background .16s}
.ph-pagetitle .pt-back:hover{background:var(--panel-2)}
.ph-pagetitle .pt-back svg{width:22px;height:22px}

/* ============ PROFİL DÜZENİ ============ */
.profile-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start;max-width:1380px;margin:0 auto}
@media (max-width:980px){.profile-layout{grid-template-columns:1fr}}

/* ---- SOL: profil kartı ---- */
.profile-card{background:var(--panel);border-radius:20px;padding:30px 28px;position:sticky;top:calc(var(--top-h) + 24px);
  display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.profile-card .pc-avatar{width:148px;height:148px;border-radius:50%;padding:5px;margin-bottom:18px;
  background:conic-gradient(from 200deg,#ff5c8a,#7c4dff,#41a0ff,#37d399,#ff5c8a)}
.profile-card .pc-avatar img,.profile-card .pc-avatar .av-fill{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;
  background:linear-gradient(135deg,#3a2a6b,#1c1340)}
.profile-card h2{font-size:28px;font-weight:800;color:var(--txt);line-height:1.1}
.profile-card .pc-gender{color:var(--accent-2);font-weight:700;font-size:15px;margin-top:4px}
.profile-card .pc-joined{color:var(--txt-dim);font-weight:600;font-size:14px;margin-top:10px}
.profile-card .pc-bio{color:var(--prose);font-size:15px;line-height:1.55;margin-top:14px;font-weight:500;font-style:italic}
.profile-card .pc-edit{margin-top:22px;width:100%;height:50px;border:none;border-radius:14px;cursor:pointer;
  background:linear-gradient(135deg,#8a5bff,#6a34e0);color:#fff;font-family:inherit;font-weight:800;font-size:16px;
  display:flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;
  box-shadow:0 8px 20px rgba(124,77,255,.4);transition:transform .15s,box-shadow .2s}
.profile-card .pc-edit:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(124,77,255,.55)}
.profile-card .pc-edit svg{width:19px;height:19px}
.profile-card .pc-stats{display:flex;gap:0;width:100%;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.profile-card .pc-stat{flex:1;display:flex;flex-direction:column;gap:2px}
.profile-card .pc-stat b{font-family:"Baloo 2",sans-serif;font-size:22px;color:var(--txt)}
.profile-card .pc-stat span{font-size:13px;color:var(--txt-dim);font-weight:700}
.profile-card .pc-stat + .pc-stat{border-left:1px solid var(--line)}

/* ---- SAĞ: bölümler ---- */
.profile-main{display:flex;flex-direction:column;gap:22px;min-width:0}
.pcard{background:var(--panel);border-radius:20px;padding:26px 28px}
.pcard > h3{font-size:22px;font-weight:800;color:var(--txt);margin-bottom:18px;display:flex;align-items:center;gap:10px}
.pcard > h3 .h3-ico{width:26px;height:26px;color:var(--accent-2)}
.pcard > h3 .h3-ico svg{width:26px;height:26px}

/* ---- LEVEL kartı ---- */
.level-row{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.level-badge{width:64px;height:64px;flex:0 0 auto;border-radius:18px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#2f8f8f,#114545);box-shadow:0 6px 18px rgba(47,143,143,.4)}
.level-badge svg{width:34px;height:34px;color:#bdf5ec}
.level-info b{font-family:"Baloo 2",sans-serif;font-size:22px;color:var(--txt);display:block}
.level-info span{color:var(--txt-dim);font-weight:600;font-size:15px}
.xp-wrap{display:flex;flex-direction:column;gap:8px}
.xp-bar{height:14px;border-radius:10px;background:#2a2440;overflow:hidden}
.xp-fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#4f7bff,#9a72ff,#ff5c8a)}
.xp-label{display:flex;justify-content:space-between;color:var(--txt-dim);font-weight:700;font-size:13px}

/* ---- carousel başlık satırı (kart içinde) ---- */
.pcard .carousel{margin:0 -4px}
.pcard .track{padding:4px 4px 4px}

/* ---- yorumlar ---- */
.comments{display:flex;flex-direction:column;gap:14px}
.comment{background:var(--panel-2);border-radius:14px;padding:18px 20px;position:relative}
.comment .c-text{font-size:16px;color:var(--txt);font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comment .c-badge{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#3b7bff,#2b5fd6);
  color:#fff;font-weight:800;font-size:12px;padding:5px 11px;border-radius:30px}
.comment .c-badge-pending{background:linear-gradient(135deg,#ffc24b,#e69500);color:#3a2a00}
.comment .c-badge svg{width:14px;height:14px}
.comment .c-meta{color:var(--txt-dim);font-weight:600;font-size:13px}
.comment .c-meta a{color:var(--accent-2);text-decoration:none}
.comment .c-meta a:hover{text-decoration:underline}
.comment .c-del{position:absolute;right:18px;bottom:16px;background:transparent;border:none;cursor:pointer;
  color:#ff5c63;font-family:inherit;font-weight:800;font-size:14px;display:flex;align-items:center;gap:6px;transition:color .15s}
.comment .c-del:hover{color:#ff8089}
.comment .c-del svg{width:15px;height:15px}

/* ============ PROFİL DÜZENLE ============ */
.edit-layout{max-width:920px;margin:0 auto;display:flex;flex-direction:column;gap:22px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.field:last-of-type{margin-bottom:0}
.field label{font-weight:800;font-size:15px;color:var(--txt)}
.inp{height:52px;border-radius:13px;border:1px solid var(--line);background:var(--bg-2);color:var(--txt);
  padding:0 18px;font-size:16px;font-family:inherit;font-weight:600;transition:border .18s,background .18s;width:100%}
textarea.inp{height:auto;min-height:120px;padding:14px 18px;resize:vertical;line-height:1.55}
.inp::placeholder{color:var(--txt-dim)}
.inp:focus{outline:none;border-color:var(--accent);background:var(--panel-2)}
.inp[type="date"]{color-scheme:dark}

/* radio grup */
.radios{display:flex;flex-direction:column;gap:12px}
.radio{display:flex;align-items:center;gap:11px;cursor:pointer;font-weight:700;font-size:16px;color:var(--txt)}
.radio input{appearance:none;width:22px;height:22px;border-radius:50%;border:2px solid #4a4360;background:var(--bg-2);
  cursor:pointer;position:relative;transition:border-color .15s}
.radio input:checked{border-color:var(--accent)}
.radio input:checked::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--accent)}

/* buton */
.btn{height:50px;padding:0 26px;border:none;border-radius:13px;cursor:pointer;
  background:linear-gradient(135deg,#8a5bff,#6a34e0);color:#fff;font-family:inherit;font-weight:800;font-size:16px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 8px 20px rgba(124,77,255,.4);transition:transform .15s,box-shadow .2s}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(124,77,255,.55)}
.btn svg{width:18px;height:18px}
.btn-mt{margin-top:20px}

.muted{color:var(--txt-dim);font-weight:600;font-size:15px;margin-bottom:16px}

/* dosya yükleme */
.file-row{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--bg-2);margin-bottom:16px}
.file-row input[type="file"]{display:none}
.file-row .file-btn{background:var(--panel-2);color:var(--txt);font-family:inherit;font-weight:800;font-size:15px;
  padding:0 22px;height:52px;display:flex;align-items:center;cursor:pointer;border-right:1px solid var(--line);white-space:nowrap}
.file-row .file-btn:hover{background:var(--hover-bg)}
.file-row .file-name{padding:0 18px;color:var(--txt-dim);font-weight:600;font-size:15px}

/* avatar seçimi */
.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:16px;margin-bottom:20px}
.avatar-opt{aspect-ratio:1/1;border-radius:50%;cursor:pointer;border:3px solid transparent;padding:0;position:relative;
  transition:transform .15s,border-color .15s;overflow:hidden}
.avatar-opt:hover{transform:scale(1.07)}
.avatar-opt.sel{border-color:var(--accent)}
.avatar-opt.sel::after{content:"";position:absolute;right:2px;bottom:2px;width:20px;height:20px;border-radius:50%;
  background:var(--accent);border:2px solid var(--panel);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size:13px;background-repeat:no-repeat;background-position:center}

@media (max-width:560px){
  .pcard{padding:22px 20px}
  .ph-pagetitle{font-size:26px}
  .comment .c-del{position:static;margin-top:12px}
}
