/* Profil sayfası (/forum/u/<kullanıcı>) — tek profil, iki görünüm. Site renkleri: kırmızı yalnız rota çizgisi ve birincil düğmede. */
.profile { --pf-line: var(--forum-line, var(--border)); --pf-meta: var(--forum-meta, var(--muted-fg)); }
.profile-hero { background: var(--card); border: 1px solid var(--pf-line); border-radius: 20px; overflow: hidden; }
.profile-cover { height: 132px; background: var(--secondary); position: relative; overflow: hidden; }
.profile-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-cover-lines path { fill: none; stroke: color-mix(in srgb, var(--fg) 9%, transparent); stroke-width: 1.2; }
.profile-cover-route { fill: none; stroke: color-mix(in srgb, var(--fg) 32%, transparent); stroke-width: 3; stroke-linecap: round; }
.profile-cover-dot { fill: var(--card); stroke: color-mix(in srgb, var(--fg) 40%, transparent); stroke-width: 2; }
.profile-id { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'av act' 'who who'; align-items: end; gap: 8px 16px; padding: 0 24px; }
.profile-avatar { grid-area: av; }
.profile-who { grid-area: who; min-width: 0; }
.profile-actions { grid-area: act; justify-self: end; }
.profile-avatar { position: relative; margin-top: -52px; }
.profile-avatar .forum-avatar.is-xl { width: 104px; height: 104px; font-size: 40px; border: 5px solid var(--card); background: color-mix(in srgb, var(--fg) 8%, var(--card)); box-sizing: content-box; }
.profile-avatar .forum-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-pro { position: absolute; right: 0; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 3px solid var(--card); }
.profile-who h1 { margin: 4px 0 4px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--pf-meta); font-size: 14px; }
.profile-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--secondary); color: var(--fg); font-size: 13px; font-weight: 600; text-decoration: none; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.profile-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.profile-actions svg { width: 16px; height: 16px; }
.profile-bio { margin: 10px 24px 0; max-width: 640px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--pf-line); }
.profile-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 14px 20px; border-left: 1px solid var(--pf-line); }
.profile-stats div:first-child { border-left: 0; }
.profile-stats dd { margin: 0; white-space: nowrap; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.profile-stats dt { font-size: 13px; color: var(--pf-meta); }
.profile-stats small { display: block; font-size: 12px; color: var(--pf-meta); }
.profile-tabs { display: flex; margin: 22px 0 14px; border-bottom: 1px solid var(--pf-line); }
.profile-count { color: var(--pf-meta); font-weight: 600; font-variant-numeric: tabular-nums; }
.profile [hidden] { display: none; }
.profile:not(.is-tabbed) .profile-panel + .profile-panel { margin-top: 28px; }
.profile-rides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-ride > a, .profile-ride > div { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--pf-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; }
.profile-ride > a:hover { border-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.profile-ride-map { position: relative; aspect-ratio: 2 / 1; background: color-mix(in srgb, var(--fg) 5%, var(--card)); }
.profile-ride-map > svg, .profile-ride-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-route-casing { fill: none; stroke: var(--card); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.profile-route-line { fill: none; stroke: var(--primary); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.profile-route-start { fill: var(--card); stroke: var(--primary); stroke-width: 3; }
.profile-route-end { fill: var(--primary); stroke: var(--card); stroke-width: 2; }
.profile-ride-noroute { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--pf-meta); }
.profile-ride-body { padding: 12px 14px 14px; }
.profile-ride-body h3 { margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.profile-ride-when { margin: 2px 0 0; font-size: 13px; color: var(--pf-meta); }
.profile-ride-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; }
.profile-ride-nums div { display: flex; flex-direction: column-reverse; }
.profile-ride-nums dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-ride-nums dt { font-size: 12px; color: var(--pf-meta); }
.profile-more { margin: 14px 0 0; color: var(--pf-meta); font-size: 14px; }
.profile-pill { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.profile-pill svg { width: 12px; height: 12px; }
.profile-pill.is-me { background: var(--fg); color: var(--bg); }
.profile-pill.is-friends { background: var(--card); color: var(--fg); border: 1px solid var(--pf-line); }
.profile-status { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--secondary); color: var(--fg); }
.profile-status.is-pending { background: color-mix(in srgb, #d08a10 16%, var(--card)); color: color-mix(in srgb, #8a5a00 80%, var(--fg)); }
.profile-status.is-hidden { background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); }
.profile-note { margin: 8px 0 0; font-size: 13px; color: var(--pf-meta); }
.profile-ownerbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.profile-ownerbar[hidden] { display: none; }
.profile-ownerbar p { margin: 0; font-size: 14px; color: var(--pf-meta); }
.profile-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--secondary); }
.profile-switch button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: var(--pf-meta); cursor: pointer; }
.profile-switch button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.profile-lockline { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--secondary); font-size: 14px; }
.profile-lockline[hidden] { display: none; }
.profile-side-card { background: var(--card); border: 1px solid var(--pf-line, var(--border)); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.profile-side-card[hidden] { display: none; }
.profile-side-card h2 { margin: 0 0 10px; font-size: 15px; }
.profile-chans { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.profile-vis { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.profile-vis li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.profile-vis i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); font-style: normal; font-size: 12px; font-weight: 800; }
.profile-vis small { display: block; color: var(--forum-meta, var(--muted-fg)); }
.profile-side-card .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .profile-cover { height: 96px; }
  .profile-id { padding: 0 16px; gap: 6px 12px; }
  .profile-avatar { margin-top: -40px; }
  .profile-avatar .forum-avatar.is-xl { width: 84px; height: 84px; font-size: 32px; }
  .profile-who h1 { margin-top: 4px; font-size: 24px; }
  .profile-bio { margin: 10px 16px 0; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats div { padding: 12px 16px; }
  .profile-stats div:nth-child(odd of :not([hidden])) { border-left: 0; }
  .profile-stats div:nth-child(n+3 of :not([hidden])) { border-top: 1px solid var(--pf-line); }
  .profile-rides { grid-template-columns: minmax(0, 1fr); }
  .profile-tabs { overflow-x: auto; }
}
