/* =========================================================
   user-profile.css — styles for the Public User Profile page
   ========================================================= */

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.badge-verified-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #10b981;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-role-pill {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.profile-joined {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.profile-lists-section h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* ---------- Card utilities ---------- */
.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-footer-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-grid-msg {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.draft-badge-margin {
    margin-left: 0.5rem;
}

/* Inline styles refactored from user-profile.html */
.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-stats-row {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.follower-count-link {
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.profile-bio-text {
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.pinned-badge-margin {
    margin-left: 0.5rem;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color, var(--bg-secondary));
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.follow-modal-list-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
