/* ===== USER LIST PAGE ===== */
.user-list-page {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.5rem 3rem;
}

.user-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.user-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.user-list-back {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}

.user-list-back:hover {
    color: #fff;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: background 0.15s;
}

.user-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.user-list-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.user-list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.user-list-avatar-img {
    display: block;
}

.user-list-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7c3aed;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.user-list-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-list-follow-form {
    flex-shrink: 0;
    margin-left: 1rem;
}

.user-list-empty {
    text-align: center;
    color: rgba(255,255,255,0.55);
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

/* ===== PROFILE SOCIAL STATS ===== */
.profile-social-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.profile-social-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    min-width: 90px;
    transition: background 0.15s, border-color 0.15s;
}

.profile-social-stat:hover {
    background: rgba(124,58,237,0.18);
    border-color: rgba(124,58,237,0.45);
}

.profile-social-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.profile-social-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.60);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== HOME SOCIAL FEED ===== */
.home-social-feed-section {
    padding: 2.5rem 2rem;
}

.home-social-feed-head {
    margin-bottom: 1.25rem;
}

.home-social-feed-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.home-social-feed-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.social-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.social-feed-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    flex-wrap: wrap;
}

.social-feed-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}

.social-feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.social-feed-avatar-img {
    display: block;
}

.social-feed-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7c3aed;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-feed-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.social-feed-user-link:hover .social-feed-username {
    color: #a78bfa;
}

.social-feed-verb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.social-feed-obra-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.15s;
}

.social-feed-obra-link:hover {
    color: #fff;
    text-decoration: underline;
}

.social-feed-score {
    font-size: 0.8rem;
    color: #f5a623;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    background: rgba(245,166,35,0.12);
    border-radius: 4px;
}

/* ===== PUBLIC PROFILE PAGE ===== */
.public-profile-page {
    padding-bottom: 3rem;
}

.public-profile-follow-actions {
    display: flex;
    justify-content: flex-start;
    padding: 0.65rem 0 0;
}

.public-profile-follow-form {
    display: inline-block;
}

.public-profile-follow-btn {
    min-height: auto;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(247, 242, 255, 0.88);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.public-profile-follow-btn:hover {
    opacity: 1;
    background: rgba(186, 158, 255, 0.1);
    border-color: rgba(186, 158, 255, 0.44);
    color: #d6c1ff;
}

.public-profile-follow-btn.is-following {
    background: transparent;
    color: rgba(247, 242, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.20);
}

.public-profile-follow-btn.is-following:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}

.public-profile-section {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.public-profile-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.public-profile-empty {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    padding: 1rem 0;
}

/* ===== OBRA FRIEND REVIEWS ===== */
.obra-friend-reviews {
    margin-bottom: 2rem;
}

.obra-friend-reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ===== REVIEW AUTHOR LINKS ===== */
.obra-review-author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.obra-review-author-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.obra-review-obra-link {
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.35rem;
    transition: color 0.15s;
}

.obra-review-obra-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== SOCIAL DIALOG ===== */
.social-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 0;
    width: min(480px, 96vw);
    max-height: 80vh;
    flex-direction: column;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    overflow: hidden;
}

.social-dialog:not([open]) {
    display: none;
}

.social-dialog::backdrop {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}

.social-dialog[open] {
    display: flex;
}

.social-dialog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    flex-shrink: 0;
}

.social-dialog-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: capitalize;
}

.social-dialog-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.social-dialog-close:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.social-dialog-body {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem 0.75rem 1rem;
}

.social-dialog-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-dialog-list .user-list-item {
    border: none;
    border-radius: 8px;
    background: transparent;
    padding: 0.55rem 0.5rem;
}

.social-dialog-list .user-list-item:hover {
    background: rgba(255,255,255,0.06);
}

.social-dialog-loading {
    display: none;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 0;
}

.social-dialog-loading:not([hidden]) {
    display: flex;
}

.social-dialog-loading-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    animation: dialog-pulse 1.2s ease-in-out infinite;
}

.social-dialog-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.social-dialog-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dialog-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40%           { opacity: 1;   transform: scale(1);    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .profile-social-stats {
        gap: 0.6rem;
    }

    .profile-social-stat {
        padding: 0.6rem 0.9rem;
        min-width: 75px;
    }

    .user-list-page {
        padding: 0 1rem 2rem;
    }

    .user-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .home-social-feed-section {
        padding: 1.5rem 1rem;
    }

    .social-feed-item {
        flex-wrap: wrap;
    }
}

.user-list-pager {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
