/* ============================================================
   NicoraX — User Profile CSS
   File: /assets/css/profile.css
   All classes use prefix "nx-pr-"
   ============================================================ */

:root {
    --nx-pr-page-pad: 28px;
    --nx-pr-avatar-size: 84px;
}

/* PAGE WRAPPER */
.nx-pr-page { min-height: 100vh; }

/* ── HERO ────────────────────────────────────────────────── */
.nx-pr-hero {
    padding: 36px var(--nx-pr-page-pad) 28px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.nx-pr-avatar {
    width: var(--nx-pr-avatar-size);
    height: var(--nx-pr-avatar-size);
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2D2D, #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,.08);
    letter-spacing: -.5px;
}
.nx-pr-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%; display: block;
}

/* Avatar wrap — positions the edit button relative to the circle */
.nx-pr-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: var(--nx-pr-avatar-size);
    height: var(--nx-pr-avatar-size);
}

/* Camera edit button — bottom-right of the avatar */
.nx-pr-avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent, #FF2D2D);
    border: 2px solid var(--color-bg, #07050e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .15s, transform .15s;
    z-index: 2;
}
.nx-pr-avatar-edit:hover {
    background: #e02020;
    transform: scale(1.1);
}

.nx-pr-info { flex: 1; min-width: 0; padding-top: 4px; }

.nx-pr-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.nx-pr-username {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.nx-pr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.nx-pr-badge--verified {
    background: rgba(29,155,240,.12);
    border: 1px solid rgba(29,155,240,.25);
    color: #1D9BF0;
}
.nx-pr-badge--pro {
    background: rgba(255,45,45,.1);
    border: 1px solid rgba(255,45,45,.25);
    color: #FF2D2D;
}
.nx-pr-badge--admin {
    background: rgba(168,85,247,.12);
    border: 1px solid rgba(168,85,247,.25);
    color: #a855f7;
}

.nx-pr-bio {
    font-size: 14px;
    color: rgba(255,255,255,.45);
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 560px;
}

/* Stats row */
.nx-pr-stats {
    display: flex;
    align-items: center;
    gap: 0;
}
.nx-pr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-sm, 8px);
    margin-right: 8px;
    min-width: 80px;
}
.nx-pr-stat__n {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.nx-pr-stat__l {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

.nx-pr-joined {
    font-size: 12px;
    color: rgba(255,255,255,.2);
    margin-left: 4px;
    align-self: flex-end;
    padding-bottom: 2px;
}

/* ── CONTROLS BAR ────────────────────────────────────────── */
.nx-pr-controls {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 var(--nx-pr-page-pad);
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: var(--color-bg);
    overflow-x: auto;
    scrollbar-width: none;
}
.nx-pr-controls::-webkit-scrollbar { display: none; }

/* Type tabs */
.nx-pr-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.3);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    position: relative;
    bottom: -1px;
}
.nx-pr-tab:hover { color: rgba(255,255,255,.65); }
.nx-pr-tab--active {
    color: #fff;
    border-bottom-color: var(--color-accent, #FF2D2D);
}
.nx-pr-tab__n {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    padding: 1px 7px;
    border-radius: 100px;
    letter-spacing: .5px;
}
.nx-pr-tab--active .nx-pr-tab__n {
    background: rgba(255,45,45,.1);
    color: rgba(255,45,45,.6);
}

/* Sort select — pushed to the right */
.nx-pr-sort-wrap {
    margin-left: auto;
    padding: 8px 0 8px 16px;
    border-left: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
}
.nx-pr-sort-wrap select {
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,.35);
    font-size: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
}
.nx-pr-sort-wrap select option { background: #140f22; }

/* ── CONTENT GRID ────────────────────────────────────────── */
.nx-pr-content {
    padding: 24px var(--nx-pr-page-pad) 60px;
}

/* Result info bar */
.nx-pr-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.nx-pr-result-info {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255,255,255,.2);
}
.nx-pr-result-info strong { color: rgba(255,255,255,.4); }

/* Empty state override for profile context */
.nx-pr-empty {
    text-align: center;
    padding: 80px 28px;
    color: rgba(255,255,255,.3);
}
.nx-pr-empty__icon { font-size: 40px; margin-bottom: 16px; }
.nx-pr-empty__title { font-size: 18px; color: #fff; margin-bottom: 8px; }

/* Pagination — reuse global .pagination__btn */
.nx-pr-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --nx-pr-avatar-size: 64px; --nx-pr-page-pad: 16px; }
    .nx-pr-hero { gap: 16px; padding: 24px var(--nx-pr-page-pad) 20px; }
    .nx-pr-username { font-size: 18px; }
    .nx-pr-stats { flex-wrap: wrap; gap: 6px; }
    .nx-pr-stat { padding: 8px 14px; min-width: 64px; }
    .nx-pr-stat__n { font-size: 15px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .nx-pr-stats { gap: 6px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
}
