﻿/* HEADER */
.ous-profile-header {
    padding: 2rem 0;
}

.ous-profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.ous-profile-avatar {
    /*width: 100%;*/
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* The animated ring */
.ous-profile-avatar-wrapper.activity::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #90ba3c;
    box-shadow: 0 0 6px 2px rgba(255, 200, 0, 0.4);
    animation: ous-glow-activity-avatar 2.5s infinite ease-in-out;
    pointer-events: none;
}
.ous-profile-name {
    font-size: 1.75rem;
    font-weight: 600;
}

.ous-profile-location {
    color: var(--ous-muted);
    font-size: 0.95rem;
}

.ous-profile-text {
    min-width: 0;
}

@keyframes ous-glow-activity-avatar {
    0% {
        box-shadow: 0 0 4px 1px rgba(144, 186, 60, 0.25);
    }

    50% {
        box-shadow: 0 0 10px 3px rgba(144, 186, 60, 0.6);
    }

    100% {
        box-shadow: 0 0 4px 1px rgba(144, 186, 60, 0.25);
    }
}

/* ACTIVITY PILL */
/* Hide desktop only popup by default */

.ous-avatar-popup {
    display: none;
    position: absolute;
    top: 100%; /* just below avatar */
    left: 90%; /* left edge of popup touches avatar's right edge */
    transform: none;
    z-index: 2000;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: max-content;
    min-width: 180px;
    white-space: nowrap; /* keep on one line if possible */
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .ous-profile-avatar-wrapper:hover .ous-avatar-popup {
        display: block;
    }

    .ous-profile-activity-wrapper {
        display: none; /* hide inline pill on desktop */
    }
}

/* Mobile / touch devices */
@media (max-width: 768px), (hover: none) {
    .ous-avatar-popup {
        display: none !important;
    }

    .ous-profile-activity-wrapper {
        display: block !important; /* show inline pill */
    }
}

.ous-profile-activity-game {
    color: var(--bs-body-color);
    text-decoration: none;
}

    .ous-profile-activity-game:hover {
        color: var(--ous-highlight);
        text-decoration: none;
    }

.ous-profile-activity-wrapper {
    margin-top: 1rem;
    width: 100%;
}

.ous-profile-activity-pill {
    display: flex;
    flex-direction: column; /* stack rows vertically */
    align-items: center; /* center all rows horizontally */
    gap: 0.25rem; /* spacing between rows */
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    width: auto; /* shrink to content */
    text-align: center; /* center text inside each row */
}

    .ous-profile-activity-pill .ous-profile-activity-text,
    .ous-profile-activity-pill .ous-profile-activity-meta {
        font-size: 0.85rem;
    }

@keyframes ous-pulse-activity-dot {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.ous-profile-activity-dot {
    min-width: 8px;
    min-height: 8px;
    background: var(--ous-highlight);
    border-radius: 50%;
    position: relative;
}

    .ous-profile-activity-dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--ous-highlight);
        opacity: 0.6;
        animation: ous-pulse-activity-dot 1.5s infinite ease-out;
    }

.ous-profile-activity-label {
    font-weight: 600;
    color: var(--ous-highlight);
}

.ous-profile-activity-meta {
    color: var(--ous-muted);
}

/* NAVBAR */
.ous-profile-nav {
    /*position: sticky;*/
    top: 0;
    z-index: 1000;
    border-top: none !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.ous-profile-nav-inner {
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.ous-profile-content-container {
    padding: 2rem 0;
    border: none !important;
}

.ous-placeholder-box {
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.ous-profile-bio,
.ous-profile-activity-text,
.ous-profile-activity-meta {
    word-break: break-word;
}

@media (max-width: 576px) {
    .ous-profile-activity-pill {
        width: 100%;
    }
}

/* Metrics */
.ous-profile-metrics-ribbon {
    margin-top: 1rem;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

    .ous-profile-metrics-ribbon .ous-metric {
        text-align: center;
        padding: .95rem .5rem;
    }

        .ous-profile-metrics-ribbon .ous-metric .value {
            font-weight: 700;
            font-size: 1.15rem;
        }

        .ous-profile-metrics-ribbon .ous-metric .label {
            font-size: .825rem;
            color: var(--ous-muted);
        }


a.ous-link-inherit {
    color: inherit !important;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

    a.ous-link-inherit:hover {
        color: var(--ous-highlight) !important;
        text-decoration: none;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    }

/* --- Widgets --- */
.ous-profile-widget {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem 1rem 1.25rem;
    position: relative;
    /* height: 100%; */
}

.ous-profile-widget:not(:nth-of-type(1)){
    margin-top: 1rem;
}

.ous-profile-widget-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    text-transform: uppercase;
}

.ous-profile-widget-link {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bs-body-color);
}

.ous-profile-widget-link:hover {
    color: var(--ous-highlight);
}

.ous-profile-widget-list-h {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .5rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

.ous-profile-widget-list-item img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: .5rem;
}

.ous-profile-blur-2p img {
    filter: blur(2px) saturate(0.7) brightness(.9);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .ous-profile-widget-list-h {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* social links */
/* Right-side social block */
.ous-profile-social {
    min-width: 220px;
}

/* Social Links List */
.ous-social-links {
    margin: 0;
    padding: 0;
}

.ous-social-item {
    /*border-top: 1px solid var(--bs-border-color);*/
    padding: 0;
    list-style: none;
}

    .ous-social-item:first-of-type {
        border-top: none;
    }

    .ous-social-item a {
        display: flex;
        align-items: center;
        gap: .5rem;
        text-decoration: none;
        color: var(--bs-body-color);
        font-weight: 500;
    }

        .ous-social-item a:hover {
            color: var(--ous-highlight);
        }

    .ous-social-item i {
        font-size: 1.2rem;
        width: 1.4rem;
        text-align: center;
    }

/* Mobile: stack under the header */
@media (max-width: 768px) {
    .ous-profile-social {
        width: 100%;
    }
}
