/* ── Herkese açık profil (/u/{username}) — mobile first ───────────────── */
.pf { max-width: 880px; margin: 0 auto; padding: 12px 16px 96px; display: grid; gap: 14px; }
.pf h2 { font-size: 1rem; font-weight: 800; margin: 0; }

/* Sahibine özel üst bant */
.pf-owner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
}
.pf-owner p { margin: 0; font-size: .84rem; flex: 1 1 220px; }
.pf-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .82rem; font-weight: 700; }
.pf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch-ui {
  width: 40px; height: 22px; border-radius: 11px; background: #cbd5e1; position: relative; transition: background .2s; flex-shrink: 0;
}
.pf-switch-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s;
}
.pf-switch input:checked + .pf-switch-ui { background: #2563eb; }
.pf-switch input:checked + .pf-switch-ui::after { transform: translateX(18px); }
.pf-switch input:focus-visible + .pf-switch-ui { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Kimlik */
.pf-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 20px 16px; color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #7c3aed 100%);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
}
.pf-hero::before {
  content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.pf-avatar {
  --h: 220; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 40) 80% 45%));
  border: 3px solid rgba(255,255,255,.35); position: relative;
}
.pf-id { min-width: 0; position: relative; }
.pf-id h1 { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pf-id p { margin: 3px 0 0; font-size: .8rem; opacity: .8; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-badge { font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pf-badge--fire { background: rgba(255,255,255,.14); color: #fff; }
.pf-share-btn {
  grid-column: 1 / -1; position: relative; justify-self: stretch;
  border: 0; border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; font-size: .88rem;
  background: #fde68a; color: #1e293b; cursor: pointer;
}
.pf-share-btn:hover { background: #fcd34d; }

/* Sayılar */
.pf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  display: grid; gap: 2px; text-align: center;
}
.pf-stat b { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.pf-stat span { font-size: .74rem; color: var(--text-muted); font-weight: 600; }
.pf-stat--main { background: #f0fdf4; border-color: #bbf7d0; }
.pf-stat--main b { color: #15803d; }

.pf-empty { margin: 0; text-align: center; color: var(--text-muted); font-size: .9rem; padding: 8px; }

/* Kutular */
.pf-box {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  display: grid; gap: 12px; min-width: 0;
}
.pf-box-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.pf-box-head small { font-size: .76rem; color: var(--text-muted); }

/* Diziler */
.pf-shows { display: grid; gap: 10px; }
.pf-show { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: grid; }
.pf-show-main { display: flex; gap: 12px; padding: 10px; text-decoration: none; color: var(--text); align-items: center; }
.pf-show-main:hover { background: #f8fafc; }
.pf-show-main img, .pf-show-ph {
  width: 56px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e2e8f0;
}
.pf-show-ph { display: grid; place-items: center; font-weight: 800; color: #64748b; font-size: 1.3rem; }
.pf-show-body { display: grid; gap: 5px; min-width: 0; flex: 1; }
.pf-show-body b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-show-body small { font-size: .74rem; color: var(--text-muted); }
.pf-show-pct { font-size: .8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.pf-show-pct strong { font-size: 1rem; font-weight: 800; }
.pf-gain { font-style: normal; font-weight: 700; color: #16a34a; font-size: .74rem; }
.pf-bar { height: 7px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 4px; background: currentColor; }
.pf-tone-a { color: #16a34a; } .pf-tone-b { color: #2563eb; } .pf-tone-c { color: #d97706; } .pf-tone-d { color: #dc2626; }
.pf-show-quiz {
  border-top: 1px solid var(--border); padding: 8px 12px; font-size: .8rem; font-weight: 700;
  text-decoration: none; color: #7c3aed; background: #faf5ff;
}
.pf-show-quiz:hover { background: #f3e8ff; }

/* Etkinlik ızgarası: sütun = hafta, satır = gün */
.pf-heat-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-heat {
  --w: 16; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(var(--w), 1fr); gap: 3px; min-width: 260px; max-width: 480px;
}
.pf-h { display: block; aspect-ratio: 1; border-radius: 3px; background: #f1f5f9; }
.pf-h.l1 { background: #bbf7d0; } .pf-h.l2 { background: #4ade80; }
.pf-h.l3 { background: #16a34a; } .pf-h.l4 { background: #14532d; }
.pf-h.is-fut { background: transparent; }
.pf-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: .7rem; color: var(--text-muted); }
.pf-heat-legend .pf-h { width: 11px; height: 11px; }
.pf-heat-legend span { margin: 0 4px; }

/* Kelimeler */
.pf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips li {
  font-size: .84rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: #f8fafc; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px;
}
.pf-chips .word-level { font-style: normal; font-size: .64rem; }

/* Listeler */
.pf-lists {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; color: var(--text); font-weight: 700;
}
.pf-lists b { color: #2563eb; white-space: nowrap; }
.pf-lists:hover { border-color: #93c5fd; }

/* Davet */
.pf-cta {
  border-radius: 18px; padding: 20px 16px; text-align: center; display: grid; gap: 6px; justify-items: center;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #c7d2fe;
}
.pf-cta strong { font-size: 1.1rem; font-weight: 800; }
.pf-cta p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.pf-cta-btn {
  margin-top: 8px; display: inline-block; padding: 11px 20px; border-radius: 12px;
  background: #2563eb; color: #fff; font-weight: 800; text-decoration: none;
}
.pf-cta-btn:hover { background: #1d4ed8; }

/* Yok / gizli */
.pf-missing { text-align: center; padding: 40px 16px 10px; }
.pf-missing-ico { font-size: 2.6rem; }
.pf-missing h1 { font-size: 1.3rem; margin: 10px 0 4px; }
.pf-missing p { margin: 0; color: var(--text-muted); }

.pf-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 9999;
  background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .84rem;
  max-width: calc(100% - 32px); overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .pf-hero { grid-template-columns: auto 1fr auto; padding: 24px; }
  .pf-avatar { width: 84px; height: 84px; font-size: 2.3rem; }
  .pf-id h1 { font-size: 1.6rem; }
  .pf-share-btn { grid-column: auto; justify-self: end; }
  .pf-stats { grid-template-columns: repeat(4, 1fr); }
  .pf-shows { grid-template-columns: repeat(2, 1fr); }
}

/* Seviye yolculuğu */
.pf-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
.pf-steps li {
  display: grid; justify-items: center; gap: 2px; padding: 9px 2px 7px; border-radius: 10px;
  background: #f1f5f9; color: #94a3b8; text-align: center; position: relative;
}
.pf-steps li b { font-size: .92rem; font-weight: 800; }
.pf-steps li small { font-size: .62rem; font-weight: 700; line-height: 1.1; }
.pf-steps li.is-before { background: #e2e8f0; color: #64748b; }
.pf-steps li.is-done { background: #dcfce7; color: #15803d; }
.pf-steps li.is-done b::after { content: ' ✓'; }
.pf-steps li.is-now { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; box-shadow: 0 6px 16px -8px rgba(79,70,229,.7); }
.pf-next { padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; }
.pf-next-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.pf-next-head strong { font-size: .92rem; color: #0f172a; }
.pf-next-head span { font-size: .85rem; font-weight: 800; color: #4f46e5; }
.pf-next p { margin: 8px 0 0; font-size: .84rem; color: #475569; }
.pf-next-top { margin: 0; font-weight: 700; color: #0f172a; }
.pf-next .pf-bar { display: block; }

/* SaveWordly yolculuğu */
.pf-since { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pf-since div { display: grid; gap: 2px; padding: 10px 8px; border-radius: 12px; background: #f8fafc; text-align: center; }
.pf-since b { font-size: 1.15rem; font-weight: 900; color: #0f172a; }
.pf-since span { font-size: .72rem; color: #64748b; line-height: 1.25; }
/* İzleme geçmişi */
.pf-hist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.pf-hist a { display: grid; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.pf-hist-img { position: relative; display: block; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #1e3a8a, #6d28d9); }
.pf-hist-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-hist-img i { display: grid; place-items: center; height: 100%; color: #fff; font-style: normal; font-weight: 900; font-size: 1.6rem; }
.pf-hist-done { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-style: normal; font-size: .75rem; font-weight: 900; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pf-hist b { font-size: .8rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-hist small { font-size: .7rem; color: #64748b; }
.pf-hist-more { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #2563eb; font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 640px) { .pf-since { grid-template-columns: repeat(6, 1fr); } .pf-hist { grid-template-columns: repeat(6, 1fr); } }
