/* Prev/Next navigation bar shown at the top of profile pages when the
   visitor arrived via a search/random/find-matches list. */
.profile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    margin: 10px 0 14px;
    background: #fff;
    border: 1px solid #ebe1e0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.3;
}
.profile-nav-bar .pn-arrow {
    color: #B72828;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 24px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.profile-nav-bar .pn-arrow:hover { background: #fff3f1; }
.profile-nav-bar .pn-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4ebe9;
    border: 1px solid #ebe1e0;
}
.profile-nav-bar .pn-caret {
    font-size: 18px;
    line-height: 1;
}
.profile-nav-bar .pn-disabled {
    color: #c7bfbe;
    cursor: default;
    padding: 6px 12px;
}
.profile-nav-bar .pn-center {
    color: #555;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-nav-bar .pn-back {
    color: #888;
    text-decoration: none;
}
.profile-nav-bar .pn-back:hover { color: #B72828; text-decoration: underline; }
.profile-nav-bar .pn-pos {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

/* Visited-card highlight on list pages: cards whose profile has already
   been opened in this browser session get a clearly visible but tasteful
   "viewed" treatment. We target the card itself (not just an inner
   wrapper) so the cue is visible regardless of the wrapper's structure. */
.random_user_item.pn-visited {
    position: relative;
}
.random_user_item.pn-visited .to_small_usr,
.random_user_item.pn-visited > a,
.random_user_item.pn-visited > div {
    border-radius: 12px;
}
.random_user_item.pn-visited::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid #B72828;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 0 0 3px rgba(183, 40, 40, 0.12);
    z-index: 4;
}
.random_user_item.pn-visited::after {
    content: '\2713\00a0Viewed';
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px 3px 8px;
    background: #B72828;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    pointer-events: none;
}
.random_user_item.pn-visited .card-image img {
    opacity: 0.82;
    transition: opacity .15s ease;
}
.random_user_item.pn-visited:hover .card-image img { opacity: 1; }

/* Brief pulse on the card the user came from, after clicking
   "Back to results", so they can re-orient at a glance. */
@keyframes pn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(183, 40, 40, 0.55); }
    60%  { box-shadow: 0 0 0 14px rgba(183, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 40, 40, 0); }
}
.random_user_item.pn-return-pulse {
    animation: pn-pulse 1.2s ease-out 2;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .profile-nav-bar { flex-wrap: wrap; gap: 6px; padding: 6px 10px; font-size: 13px; }
    .profile-nav-bar .pn-arrow { padding: 4px 8px; }
    .profile-nav-bar .pn-center { order: 3; flex-basis: 100%; text-align: center; }
}
