/* Pelitieto profile view */
.pt-profile-page { padding-block: 65px 100px; }
.pt-profile-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; margin-bottom: 2rem; padding: 2rem; border: 1px solid rgba(72,184,239,.18); border-radius: 17px; background: linear-gradient(120deg, rgba(16,28,39,.96), rgba(10,17,25,.96)); box-shadow: 0 28px 75px rgba(0,0,0,.24); }
.pt-profile-hero::before { position: absolute; inset: 0; z-index: -2; content: ""; background: linear-gradient(90deg, rgba(8,14,21,.75), rgba(8,14,21,.92)), url("assets/background-general-largeicons.png") center 44% / cover; opacity: .48; }
.pt-profile-hero::after { position: absolute; top: -180px; right: -100px; z-index: -1; width: 430px; height: 430px; border-radius: 50%; content: ""; background: rgba(43,172,232,.13); filter: blur(60px); }
.pt-profile-hero__identity { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.pt-profile-hero__avatar { flex: 0 0 auto; width: 104px; height: 104px; border: 3px solid rgba(101,203,251,.38); border-radius: 50%; object-fit: cover; box-shadow: 0 14px 38px rgba(0,0,0,.35); }
.pt-profile-hero .pt-eyebrow { margin-bottom: .2rem; }
.pt-profile-hero h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 860; line-height: 1; letter-spacing: -.06em; }
.pt-profile-handle { margin: .35rem 0 0; color: var(--pt-blue-bright); font-size: .88rem; font-weight: 750; }
.pt-profile-hero__bio { max-width: 610px; margin: .8rem 0 0; color: #a8b7c2; font-size: .8rem; line-height: 1.65; }
.pt-profile-hero__meta { display: flex; align-items: flex-end; flex-direction: column; gap: .55rem; color: #748592; font-size: .66rem; }
.pt-profile-hero__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 1.25rem; border-top: 1px solid var(--pt-line); }
.pt-profile-hero__stats > div { padding: .2rem 1.4rem; border-right: 1px solid var(--pt-line); }
.pt-profile-hero__stats > div:first-child { padding-left: 0; }
.pt-profile-hero__stats > div:last-child { border-right: 0; }
.pt-profile-hero__stats strong { display: block; color: #f3f7fa; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.04em; }
.pt-profile-hero__stats span { display: block; margin-top: .25rem; color: #728390; font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pt-profile-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 2rem; align-items: start; }
.pt-profile-sidebar { position: sticky; top: 98px !important; z-index: 1; align-self: start; }
.pt-profile-card { padding: 1.25rem; border: 1px solid var(--pt-line); border-radius: 14px; background: rgba(15,23,32,.92); box-shadow: 0 24px 55px rgba(0,0,0,.22); }
.pt-profile-side-title { margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--pt-line); font-size: .82rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.pt-profile-side-info { margin: 0; }
.pt-profile-side-info > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--pt-line); }
.pt-profile-side-info > div:last-child { border-bottom: 0; }
.pt-profile-side-info dt { color: #71828f; font-size: .63rem; font-weight: 700; }
.pt-profile-side-info dd { margin: 0; color: #c4ced6; font-size: .68rem; font-weight: 750; }
.pt-profile-identity { display: flex; align-items: center; gap: .9rem; }
.pt-profile-avatar { width: 64px; height: 64px; border: 2px solid rgba(72,184,239,.28); border-radius: 50%; object-fit: cover; }
.pt-profile-identity h2 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 800; }
.pt-visibility { display: inline-flex; padding: .22rem .45rem; border: 1px solid var(--pt-line); border-radius: 99px; color: #9aaab6; font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pt-visibility--public { border-color: rgba(70,203,146,.28); color: var(--pt-mint); background: rgba(70,203,146,.07); }
.pt-visibility--friends { border-color: rgba(72,184,239,.3); color: var(--pt-blue-bright); }
.pt-profile-bio { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pt-line); color: #9dacb8; font-size: .77rem; line-height: 1.65; }
.pt-profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1rem 0; padding-block: 1rem; border-block: 1px solid var(--pt-line); }
.pt-profile-stats div { min-width: 0; }
.pt-profile-stats strong { display: block; color: #f4f7f9; font-size: 1.25rem; line-height: 1.1; }
.pt-profile-stats span { display: block; margin-top: .25rem; color: #6f808e; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.pt-profile-card hr { border-color: var(--pt-line) !important; }
.pt-profile-card form > label { color: #aab6c0; font-size: .7rem; }
.pt-profile-card .form-check-label { color: #8999a5; font-size: .7rem; }
.pt-profile-card textarea, .pt-profile-card select { font-size: .75rem; }
.pt-profile-card .btn { min-height: 41px; border-radius: 7px; font-size: .72rem; font-weight: 800; }
.pt-profile-content { min-width: 0; }
.pt-profile-highlights { margin-bottom: 2rem; padding: 1.15rem; border: 1px solid var(--pt-line); border-radius: 13px; background: rgba(13,21,30,.78); }
.pt-profile-section-head { margin-bottom: 1rem; }
.pt-profile-section-head .pt-eyebrow { margin-bottom: .25rem; font-size: .59rem; }
.pt-profile-section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 830; }
.pt-profile-highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.pt-profile-highlight-grid article { min-width: 0; }
.pt-profile-highlight-image { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--pt-line); border-radius: 9px; background: var(--pt-card); }
.pt-profile-highlight-image::after { position: absolute; inset: auto 0 0; height: 35%; content: ""; background: linear-gradient(transparent, rgba(3,7,10,.7)); }
.pt-profile-highlight-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.pt-profile-highlight-image strong { position: absolute; right: .5rem; bottom: .45rem; z-index: 2; padding: .25rem .42rem; border-radius: 5px; background: rgba(5,9,13,.85); color: var(--pt-orange); font-size: .64rem; }
.pt-profile-highlight-grid article:hover img { transform: scale(1.035); filter: brightness(1.07); }
.pt-profile-highlight-grid h3 { margin: .55rem .05rem 0; font-size: .72rem; line-height: 1.35; }
.pt-profile-highlight-grid h3 a { display: -webkit-box; overflow: hidden; color: #e4ebf0; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pt-profile-highlight-grid h3 a:hover { color: var(--pt-blue-bright); }
.pt-profile-highlight-grid p { margin: .15rem .05rem 0; color: #71818e; font-size: .6rem; }

#ptp-profile-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--pt-line); border-radius: 11px; background: var(--pt-card); }
#ptp-profile-toolbar h2 { margin: 0 !important; padding: 0 !important; font-size: 1.35rem; font-weight: 820; }
#ptp-profile-toolbar .toolbar-controls, #ptp-profile-toolbar .toolbar-controls > div { display: flex !important; align-items: center !important; gap: .55rem !important; }
#ptp-profile-toolbar input[type="search"], #ptp-profile-toolbar select { width: auto !important; min-width: 175px; height: 39px; padding: 0 .7rem !important; border: 1px solid var(--pt-line-bright) !important; border-radius: 7px !important; background: #0b121a !important; color: #e9eef2 !important; font-size: .72rem !important; }

.ptp-table-wrapper { overflow-x: auto; border: 1px solid var(--pt-line); border-radius: 11px !important; background: var(--pt-card); -webkit-overflow-scrolling: touch; }
#ptp-profile-table { min-width: 650px; margin: 0 !important; border-collapse: collapse; background: transparent !important; }
#ptp-profile-table thead th { padding: .75rem .85rem !important; border: 0 !important; border-bottom: 1px solid var(--pt-line) !important; background: #0b121a; color: #71828f !important; font-size: .61rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#ptp-profile-table tbody tr { border-bottom: 1px solid var(--pt-line); transition: background .18s ease; }
#ptp-profile-table tbody tr:last-child { border-bottom: 0; }
#ptp-profile-table tbody tr:hover { background: rgba(255,255,255,.025); }
#ptp-profile-table td { padding: .75rem .85rem !important; border: 0 !important; color: #9eacb7; font-size: .72rem; }
#ptp-profile-table td:first-child a { color: #e6edf2; font-weight: 750; text-decoration-color: rgba(72,184,239,.35); text-underline-offset: 3px; }
#ptp-profile-table .ptp-status-cell { color: var(--pt-mint); font-size: .65rem; font-weight: 750; }
#ptp-profile-table .ptp-rating-cell { color: var(--pt-orange); }
#ptp-profile-table .ptp-edit-game { min-height: 32px; padding: .25rem .6rem; border-color: var(--pt-line-bright); border-radius: 6px; color: #aebbc4; font-size: .64rem; }

.pt-profile-content #ptp-lists-container { margin-top: 2rem; }
.pt-profile-content #ptp-lists-container > div > div, .pt-profile-content .card { border: 1px solid var(--pt-line) !important; border-radius: 11px !important; background: var(--pt-card) !important; box-shadow: none !important; }
.pt-profile-content hr { margin-block: 2.5rem !important; border-color: var(--pt-line); }
.pt-profile-content h3 { font-weight: 800; }
.pt-profile-content .pagination { gap: .35rem; }
.pt-profile-content .page-link { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 .55rem; border: 1px solid var(--pt-line) !important; border-radius: 6px !important; background: var(--pt-card) !important; color: #a9b6c0 !important; font-size: .7rem; }
.pt-profile-content .active .page-link { border-color: var(--pt-blue) !important; background: var(--pt-blue) !important; color: #06131b !important; }

.ptp-modal-content, #ptp-list-modal .modal-content { border: 1px solid var(--pt-line-bright) !important; border-radius: 13px !important; background: #0e161f !important; box-shadow: 0 30px 80px rgba(0,0,0,.55) !important; }
.ptp-modal-content label, #ptp-list-modal label { color: #93a2ae; font-size: .7rem; font-weight: 700; }

@media (max-width: 900px) {
  .pt-profile-hero { grid-template-columns: 1fr; }
  .pt-profile-hero__meta { position: absolute; top: 1.4rem; right: 1.4rem; }
  .pt-profile-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 1.2rem; }
  #ptp-profile-toolbar { align-items: stretch; flex-direction: column; }
  #ptp-profile-toolbar .toolbar-controls, #ptp-profile-toolbar .toolbar-controls > div { width: 100%; }
  #ptp-profile-toolbar input[type="search"], #ptp-profile-toolbar select { flex: 1; min-width: 0; }
}

@media (max-width: 700px) {
  .pt-profile-page { padding-block: 48px 70px; }
  .pt-profile-hero { padding: 1.25rem; }
  .pt-profile-hero__identity { align-items: flex-start; gap: 1rem; }
  .pt-profile-hero__avatar { width: 74px; height: 74px; }
  .pt-profile-hero h1 { padding-right: 0; font-size: 2.35rem; }
  .pt-profile-hero__meta { position: static; align-items: flex-start; grid-row: 2; }
  .pt-profile-hero__bio { grid-column: 1 / -1; }
  .pt-profile-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .pt-profile-hero__stats > div { padding: .8rem; border-bottom: 1px solid var(--pt-line); }
  .pt-profile-hero__stats > div:nth-child(2) { border-right: 0; }
  .pt-profile-hero__stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .pt-profile-hero__stats > div:nth-child(3) { padding-left: 0; }
  .pt-profile-layout { display: block; }
  .pt-profile-sidebar { position: static; margin-bottom: 2rem; }
  .pt-profile-card { padding: 1rem; }
  .pt-profile-stats { margin-bottom: 0; }
  #ptp-profile-toolbar .toolbar-controls > div { align-items: stretch !important; flex-direction: column; }
  #ptp-profile-toolbar input[type="search"], #ptp-profile-toolbar select { width: 100% !important; }
  .pt-profile-highlights { padding: .85rem; }
  .pt-profile-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .7rem; }
}

@media (min-width: 701px) {
  body.admin-bar .pt-profile-sidebar { top: 130px !important; }
}

@media (min-width: 701px) and (max-width: 782px) {
  body.admin-bar .pt-profile-sidebar { top: 144px !important; }
}
