/* Çizgi Roman Vadisi — public profile (/okur/{id}, /profil) and Kitaplığım.
   Loaded together with crv-account.css (fields, tabs, stats). Uses crv-ui.css tokens. */

/* Profile */
.vd-profile{padding-bottom:1rem}
.vd-profile-band{height:180px;margin:0 calc(var(--vd-margin)*-1);background:radial-gradient(circle at 18% 30%,rgba(255,255,255,.35) 0,transparent 42%),radial-gradient(circle at 82% 10%,rgba(99,102,241,.35) 0,transparent 45%),linear-gradient(120deg,#dce4ff 0%,#c7d0ff 45%,#e5eeff 100%)}
.vd-profile-head{position:relative;display:flex;align-items:flex-end;gap:1.5rem;margin:-64px 0 1.5rem;padding:0 .5rem}
.vd-profile-avatar{display:grid;place-items:center;flex:none;width:128px;height:128px;overflow:hidden;border:4px solid #fff;border-radius:var(--vd-radius-xl);background:var(--vd-primary-container);color:#fff;box-shadow:var(--vd-shadow-lg);font:700 44px/1 var(--vd-display)}
.vd-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.vd-profile-identity{flex:1;min-width:0;padding-bottom:.25rem}
.vd-profile-identity .vd-eyebrow{margin-bottom:.15rem}
.vd-profile-identity h1{margin:0;overflow-wrap:anywhere;font:700 32px/40px var(--vd-display);letter-spacing:-.03em}
.vd-profile-bio{max-width:44rem;margin:.4rem 0 0;color:var(--vd-ink-2);font-size:15px;line-height:23px;white-space:pre-line;overflow-wrap:anywhere}
.vd-profile-facts{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:.6rem 0 0;color:var(--vd-muted);font-size:13px}
.vd-profile-facts>span{display:inline-flex;align-items:center;gap:.35rem}
.vd-profile-facts .vd-icon{font-size:17px}
.vd-profile-actions{display:flex;align-items:center;gap:.4rem;padding-bottom:.35rem}
.vd-profile-actions .vd-icon-button{border:1px solid var(--vd-line);background:#fff}
.vd-profile-private{margin-top:1rem}
.vd-profile-tabs{position:sticky;top:var(--vd-header);z-index:4;background:var(--vd-bg)}
.vd-profile-section{margin:0 0 2.75rem;scroll-margin-top:calc(var(--vd-header) + 4rem)}
.vd-profile-section .vd-section-head p{margin:.2rem 0 0;color:var(--vd-muted);font-size:13px}
.vd-profile-section .vd-tabs{margin-bottom:1.25rem}
.vd-profile-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.vd-activity-list{display:grid;gap:.75rem}
.vd-activity{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.25rem}
.vd-activity>.vd-chip{flex:none;margin-top:.15rem}
.vd-activity>div{min-width:0}
.vd-activity h3{margin:0;font:600 15px/22px var(--vd-display)}
.vd-activity h3 a{color:var(--vd-ink);text-decoration:none}
.vd-activity h3 a:hover{color:var(--vd-primary)}
.vd-activity p{margin:.25rem 0 0;color:var(--vd-ink-2);font-size:14px;line-height:21px;overflow-wrap:anywhere}
.vd-activity time{display:block;margin-top:.35rem;color:var(--vd-muted);font-size:12px}
.vd-profile-settings{display:grid;grid-template-columns:12rem minmax(0,1fr);gap:2rem;padding:1.75rem}
.vd-profile-photo-field{display:grid;justify-items:start;align-content:start;gap:.75rem}
.vd-profile-photo-field .vd-profile-avatar{width:112px;height:112px;border-width:0;box-shadow:none;font-size:38px}
.vd-profile-photo-field small{color:var(--vd-muted);font-size:12px}
.vd-file{position:relative;overflow:hidden}
.vd-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.vd-file:focus-within{outline:2px solid var(--vd-primary-container);outline-offset:2px}
.vd-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem;min-width:0}
.vd-profile-fields .is-wide{grid-column:1/-1}
.vd-profile-email{margin:0;padding:.65rem .8rem;border-radius:var(--vd-radius);background:var(--vd-surface-low);overflow-wrap:anywhere}
#hesap .vd-alert{margin-bottom:1rem}

/* Shelves (collections) shared by profile and Kitaplığım */
.vd-shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.vd-shelf{display:grid;gap:.5rem;padding:1.1rem;color:var(--vd-ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.vd-shelf:hover{box-shadow:var(--vd-shadow);transform:translateY(-2px)}
.vd-shelf>.vd-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:var(--vd-radius);background:var(--vd-primary-wash);color:var(--vd-primary-container)}
.vd-shelf strong{font:600 15px/21px var(--vd-display);overflow-wrap:anywhere}
.vd-shelf-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--vd-muted);font-size:12px}

/* Kitaplığım */
.vd-library{padding-top:2rem}
.vd-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin:0 0 1.75rem}
.vd-library-head h1{margin:0;font:700 36px/44px var(--vd-display);letter-spacing:-.03em}
.vd-library-head p{max-width:40rem;margin:.5rem 0 0;color:var(--vd-ink-2);font-size:15px;line-height:24px}
.vd-library-head-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.vd-library-layout{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:2rem;align-items:start}
.vd-library-main{min-width:0}
.vd-library-block{margin:0 0 2.5rem;scroll-margin-top:calc(var(--vd-header) + 1rem)}
.vd-library-block .vd-section-head p{margin:.2rem 0 0;color:var(--vd-muted);font-size:13px}
.vd-resume-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.vd-resume{display:flex;gap:1rem;padding:1rem;min-width:0}
.vd-resume-cover{flex:none;width:96px;aspect-ratio:2/3;overflow:hidden;border-radius:var(--vd-radius);background:var(--vd-surface-2)}
.vd-resume-cover img{display:block;width:100%;height:100%;object-fit:cover}
.vd-resume-body{display:flex;flex-direction:column;gap:.35rem;flex:1;min-width:0}
.vd-resume-meta,.vd-resume-foot{display:flex;justify-content:space-between;gap:.5rem;margin:0;color:var(--vd-muted);font-size:12px}
.vd-resume-meta span:first-child{color:var(--vd-primary-container);font-weight:600;text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.vd-resume h3{margin:0;font:600 16px/22px var(--vd-display);overflow-wrap:anywhere}
.vd-resume h3 a{color:var(--vd-ink);text-decoration:none}
.vd-resume .vd-muted{margin:0;font-size:13px}
.vd-resume .vd-btn{align-self:flex-start;margin-top:auto}
.vd-progress{height:6px;margin-top:.35rem;overflow:hidden;border-radius:999px;background:var(--vd-surface-2)}
.vd-progress span{display:block;height:100%;border-radius:inherit;background:var(--vd-primary-container)}
.vd-cover-progress{position:absolute;left:.5rem;right:.5rem;bottom:.5rem;height:5px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.6)}
.vd-cover-progress span{display:block;height:100%;background:var(--vd-primary-container)}
.vd-library-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.vd-library-grid .vd-comic-actions .vd-btn,.vd-profile-grid .vd-comic-actions .vd-btn{padding:0 .35rem;color:var(--vd-muted)!important;font-weight:500;font-size:12px}
.vd-library-grid .vd-comic-actions .vd-btn:hover,.vd-profile-grid .vd-comic-actions .vd-btn:hover{color:var(--vd-danger)!important;background:#fff1f0}
.vd-library-side{position:sticky;top:calc(var(--vd-header) + 1.5rem);display:grid;gap:1.25rem}
.vd-side-card{padding:1.25rem}
.vd-side-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 1rem}
.vd-side-head h2{display:flex;align-items:center;gap:.45rem;margin:0;font:600 16px/22px var(--vd-display)}
.vd-side-head h2 .vd-icon{color:var(--vd-primary-container);font-size:20px}
.vd-side-head .vd-muted,.vd-side-head .vd-link{font-size:12px}
.vd-side-card>p{margin:0;font-size:14px;line-height:21px}
.vd-goal{display:flex;align-items:center;gap:1.25rem}
.vd-ring{--value:0;display:grid;place-items:center;flex:none;width:92px;height:92px;border-radius:50%;background:conic-gradient(var(--vd-primary-container) calc(var(--value)*1%),var(--vd-surface-2) 0)}
.vd-ring span{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#fff;color:var(--vd-primary-container);font:700 18px/1 var(--vd-display)}
.vd-goal-number{margin:0;color:var(--vd-muted);font-size:14px}
.vd-goal-number strong{color:var(--vd-ink);font:700 30px/36px var(--vd-display)}
.vd-goal .vd-muted{margin:.25rem 0 0;font-size:13px}
.vd-heat{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:0;padding:0;list-style:none}
.vd-heat li,.vd-heat-legend i{aspect-ratio:1;border-radius:4px;background:var(--vd-surface-2)}
.vd-heat .is-1,.vd-heat-legend .is-1{background:#c7cdfa}
.vd-heat .is-2,.vd-heat-legend .is-2{background:#8f99f0}
.vd-heat .is-3,.vd-heat-legend .is-3{background:#5a66e6}
.vd-heat .is-4,.vd-heat-legend .is-4{background:var(--vd-primary)}
.vd-heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:.75rem 0 0;color:var(--vd-muted);font-size:11px}
.vd-heat-legend i{width:12px}
.vd-side-foot{display:flex;justify-content:space-between;margin:.9rem 0 0;padding-top:.8rem;border-top:1px solid var(--vd-line);color:var(--vd-muted);font-size:13px}
.vd-side-foot strong{color:var(--vd-ink)}
.vd-bars{display:grid;gap:.85rem;margin:0;padding:0;list-style:none}
.vd-bars-label{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.35rem;font-size:13px}
.vd-bars-label span:last-child{color:var(--vd-muted);font-size:12px;white-space:nowrap}
.vd-bars-track{display:block;height:6px;overflow:hidden;border-radius:999px;background:var(--vd-surface-2)}
.vd-bars-track span{display:block;height:100%;border-radius:inherit;background:var(--vd-primary-container)}
.vd-side-note{margin:.9rem 0 0!important;color:var(--vd-muted);font-size:12px!important;line-height:18px!important}

@media(max-width:1023px){
  .vd-library-layout{grid-template-columns:minmax(0,1fr)}
  .vd-library-side{position:static;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  .vd-profile-settings{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
  .vd-profile-band{height:120px}
  .vd-profile-head{flex-direction:column;align-items:flex-start;gap:1rem;margin-top:-52px;padding:0}
  .vd-profile-avatar{width:104px;height:104px;font-size:36px}
  .vd-profile-identity h1{font-size:26px;line-height:32px}
  .vd-profile-actions{flex-wrap:wrap;padding:0}
  .vd-profile-fields{grid-template-columns:minmax(0,1fr)}
  .vd-profile-settings{padding:1.25rem}
  .vd-activity{flex-direction:column;gap:.5rem;padding:1rem}
  .vd-library{padding-top:1.25rem}
  .vd-library-head{flex-direction:column;align-items:flex-start;margin-bottom:1.25rem}
  .vd-library-head h1{font-size:28px;line-height:36px}
  .vd-resume-grid{grid-template-columns:minmax(0,1fr)}
  .vd-resume-cover{width:80px}
  .vd-library-grid,.vd-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
